KDED
Go to the documentation of this file.
28 return QString::fromLatin1(resource) + QLatin1Char(
'|') + path;
33 assert(!path.isEmpty());
34 m_hash.insert(
key(path, resource), ctime );
39 return m_hash.value(
key(path, resource), 0);
44 m_hash.remove(
key(path, resource));
55 Hash::const_iterator it = m_hash.constBegin();
56 const Hash::const_iterator
end = m_hash.constEnd();
57 for ( ; it != end; ++it ) {
59 const QString res = key.left(key.indexOf(
'|'));
60 resources.insert(res);
62 return resources.toList();
71 KSycocaEntry::read(str, key);
73 if (key.isEmpty())
break;
74 m_hash.insert(key, ctime);
80 Hash::const_iterator it = m_hash.constBegin();
81 const Hash::const_iterator
end = m_hash.constEnd();
82 for ( ; it != end; ++it ) {
83 str << it.key() << it.value();
94 QDataStream* str = stream();
95 (*str) >> m_dictOffset;
108 KSycocaFactory::saveHeader(str);
115 KSycocaFactory::save(str);
117 m_dictOffset = str.device()->pos();
118 m_ctimeDict.
save(str);
119 const int endOfFactoryData = str.device()->pos();
121 str.device()->seek(endOfFactoryData);
127 QDataStream* str = stream();
129 str->device()->seek(m_dictOffset);
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 13:08:28 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.