19 #ifndef __tdesycocaentry_h__ 20 #define __tdesycocaentry_h__ 22 #include "tdesycocatype.h" 24 #include <tqstringlist.h> 25 #include <ksharedptr.h> 41 virtual bool isType(
KSycocaType t)
const {
return (t == KST_KSycocaEntry); }
42 virtual KSycocaType sycocaType()
const {
return KST_KSycocaEntry; }
46 typedef TQValueList<Ptr> List;
51 KSycocaEntry(
const TQString &path) : mOffset(0), m_bDeleted(false), mPath(path) { }
56 static void read( TQDataStream &s, TQString &str );
57 static void read( TQDataStream &s, TQStringList &list );
64 mOffset( offset ), m_bDeleted(
false)
72 virtual TQString name()
const = 0;
84 virtual bool isValid()
const = 0;
89 virtual bool isDeleted()
const {
return m_bDeleted; }
95 int offset() {
return mOffset; }
102 virtual void save(TQDataStream &s)
104 mOffset = s.device()->at();
105 s << (TQ_INT32) sycocaType() << mPath;
112 virtual void load(TQDataStream &) = 0;
120 virtual void virtual_hook(
int id,
void* data );
TQString entryPath() const
Base class for all Sycoca entries.
KSycocaEntry(const TQString &path)
Default constructor.
Reference counting for shared objects.
virtual bool isDeleted() const
Can be used to control the lifetime of an object that has derived TDEShared.