KSycocaEntry Class Reference
Base class for all Sycoca entries. More...
#include <ksycocaentry.h>
Inheritance diagram for KSycocaEntry:

Public Types | |
typedef KSharedPtr< KSycocaEntry > | Ptr |
typedef QValueList< Ptr > | List |
Public Member Functions | |
virtual bool | isType (KSycocaType t) const |
virtual KSycocaType | sycocaType () const |
KSycocaEntry (const QString &path) | |
KSycocaEntry (QDataStream &_str, int offset) | |
virtual QString | name () const =0 |
QString | entryPath () const |
virtual bool | isValid () const =0 |
virtual bool | isDeleted () const |
int | offset () |
virtual void | save (QDataStream &s) |
virtual void | load (QDataStream &)=0 |
Static Public Member Functions | |
static void | read (QDataStream &s, QString &str) |
static void | read (QDataStream &s, QStringList &list) |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
bool | m_bDeleted |
QString | mPath |
Related Functions | |
(Note that these are not member functions.) | |
enum | KSycocaType { KST_KSycocaEntry = 0, KST_KService = 1, KST_KServiceType = 2, KST_KMimeType = 3, KST_KFolderType = 4, KST_KDEDesktopMimeType = 5, KST_KExecMimeType = 6, KST_KServiceGroup = 7, KST_KImageIOFormat = 8, KST_KProtocolInfo = 9, KST_KServiceSeparator = 10, KST_KCustom = 1000 } |
Detailed Description
Base class for all Sycoca entries.You can't create an instance of KSycocaEntry, but it provides the common functionality for servicetypes and services.
Definition at line 37 of file ksycocaentry.h.
Constructor & Destructor Documentation
|
Default constructor.
Definition at line 51 of file ksycocaentry.h. |
Member Function Documentation
|
Safe demarshalling functions.
Definition at line 465 of file ksycoca.cpp. |
|
Implemented in KProtocolInfo, KService, KServiceGroup, and KServiceType. |
|
Definition at line 79 of file ksycocaentry.h. |
|
Implemented in KProtocolInfo, KService, KServiceGroup, and KServiceType. |
|
Definition at line 89 of file ksycocaentry.h. |
Friends And Related Function Documentation
|
A KSycocaType is a code (out of the KSycocaType enum) assigned to each class type derived from KSycocaEntry . To use it, call the macro K_SYCOCATYPE( your_typecode, parent_class ) at the top of your class definition. Definition at line 31 of file ksycocatype.h. |
The documentation for this class was generated from the following files: