# class KSycocaEntry | Base class for all entries. More...
Contains pure virtuals
Definition | `#include <ksycocaentry.h>`
Inherits | KShared (kdecore) [public ]
Inherited by | KDEDesktopMimeType, KExecMimeType, KFolderType, KImageIOFormat, KMimeType, KProtocolInfo, KService, KServiceGroup, KServiceType
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Types

- typedef KSharedPtr<KSycocaEntry> Ptr
- typedef QValueList<Ptr> List

#### Public Methods

- virtual bool isType (KSycocaType t) const
- virtual KSycocaType sycocaType () const
- KSycocaEntry (const QString &path)
- KSycocaEntry ( QDataStream &_str, int offset )
- virtual QString name () const
- QString entryPath () const
- virtual bool isValid () const
- virtual bool isDeleted () const
- int offset ()
- virtual void save (QDataStream &s)
- virtual void load (QDataStream &)

#### Protected Members

- bool m_bDeleted
- QString mPath

## Detailed Description

Base class for all entries. You can't create instance of KSycocaEntry, but it provides the common functionality for servicetypes and services.

bool isType (KSycocaType t) | ### isType

[const virtual]

KSycocaType sycocaType () | ### sycocaType

[const virtual]

typedef KSharedPtr<KSycocaEntry> Ptr | ### Ptr

typedef QValueList<Ptr> List | ### List

KSycocaEntry (const QString &path) | ### KSycocaEntry

Default constructor

KSycocaEntry ( QDataStream &_str, int offset ) | ### KSycocaEntry

Restores itself from a stream.

QString name () | ### name

[const pure virtual]

Returns: the name of this entry

QString entryPath () | ### entryPath

[const]

Returns: the path of this entry The path can be aboslute or relative. The corresponding factory should know relative to what.

bool isValid () | ### isValid

[const pure virtual]

Returns: true if valid

bool isDeleted () | ### isDeleted

[const virtual]

Returns: true if deleted

int offset () | ### offset

Returns: the position of the entry in the sycoca file

void save (QDataStream &s) | ### save

[virtual]

Save ourselves to the database. Don't forget to call the parent class first if you override this function.

void load (QDataStream &) | ### load

[pure virtual]

Load ourselves from the database. Don't call the parent class!

bool m_bDeleted | ### m_bDeleted

[protected]

QString mPath | ### mPath

[protected]

Generated by: root@sparc.ports.openbsd.org on Wed May 2 09:40:40 2001, using kdoc 2.0a53.