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;
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 );
Base class for all Sycoca entries.
virtual TQString name() const =0
virtual bool isValid() const =0
virtual bool isDeleted() const
KSycocaType
A KSycocaType is a code (out of the KSycocaType enum) assigned to each class type derived from KSycoc...
TQString entryPath() const
KSycocaEntry(const TQString &path)
Default constructor.
Can be used to control the lifetime of an object that has derived TDEShared.
Reference counting for shared objects.
TDEAction * save(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0)