• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Related Functions

KSycocaEntry Class Reference

Base class for all Sycoca entries. More...

#include <ksycocaentry.h>

Inheritance diagram for KSycocaEntry:
Inheritance graph
[legend]

List of all members.

Public Types

typedef QList< Ptr > List
typedef KSharedPtr< KSycocaEntry > Ptr

Public Member Functions

 KSycocaEntry ()
virtual ~KSycocaEntry ()
QString entryPath () const
bool isDeleted () const
bool isSeparator () const
bool isType (KSycocaType t) const
bool isValid () const
QString name () const
int offset () const
QVariant property (const QString &name) const
QStringList propertyNames () const
void save (QDataStream &s)
void setDeleted (bool deleted)
QString storageId () const
KSycocaType sycocaType () const

Static Public Member Functions

static void read (QDataStream &s, QString &str)
static void read (QDataStream &s, QStringList &list)

Protected Member Functions

 KSycocaEntry (KSycocaEntryPrivate &d)

Protected Attributes

KSycocaEntryPrivate * d_ptr

Related Functions

(Note that these are not member functions.)
enum  KSycocaType

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.

See also:
http://techbase.kde.org/Development/Architecture/KDE3/System_Configuration_Cache

Definition at line 41 of file ksycocaentry.h.


Member Typedef Documentation

typedef QList<Ptr> KSycocaEntry::List

Reimplemented in KMimeType, KService, KServiceGroup, KServiceType, and KProtocolInfo.

Definition at line 62 of file ksycocaentry.h.

typedef KSharedPtr<KSycocaEntry> KSycocaEntry::Ptr

Reimplemented in KMimeType, KMimeTypeFactory::MimeTypeEntry, KService, KServiceGroup, KServiceSeparator, KServiceType, and KProtocolInfo.

Definition at line 61 of file ksycocaentry.h.


Constructor & Destructor Documentation

KSycocaEntry::KSycocaEntry ( )

Definition at line 31 of file ksycocaentry.cpp.

KSycocaEntry::~KSycocaEntry ( ) [virtual]

Definition at line 41 of file ksycocaentry.cpp.

KSycocaEntry::KSycocaEntry ( KSycocaEntryPrivate &  d) [protected]

Definition at line 36 of file ksycocaentry.cpp.


Member Function Documentation

QString KSycocaEntry::entryPath ( ) const
Returns:
the path of this entry The path can be absolute or relative. The corresponding factory should know relative to what.

Definition at line 104 of file ksycocaentry.cpp.

bool KSycocaEntry::isDeleted ( ) const
Returns:
true if deleted

Definition at line 116 of file ksycocaentry.cpp.

bool KSycocaEntry::isSeparator ( ) const

Definition at line 128 of file ksycocaentry.cpp.

bool KSycocaEntry::isType ( KSycocaType  t) const

internal

Definition at line 94 of file ksycocaentry.cpp.

bool KSycocaEntry::isValid ( ) const
Returns:
true if valid

Definition at line 151 of file ksycocaentry.cpp.

QString KSycocaEntry::name ( ) const
Returns:
the name of this entry

Definition at line 157 of file ksycocaentry.cpp.

int KSycocaEntry::offset ( ) const
Returns:
the position of the entry in the sycoca file

Definition at line 133 of file ksycocaentry.cpp.

QVariant KSycocaEntry::property ( const QString &  name) const

Returns the requested property.

Some often used properties have convenience access functions like exec(), serviceTypes etc.

Parameters:
namethe name of the property
Returns:
the property, or invalid if not found

Definition at line 169 of file ksycocaentry.cpp.

QStringList KSycocaEntry::propertyNames ( ) const

Returns the list of all properties that this service can have.

That means, that some of these properties may be empty.

Returns:
the list of supported properties

Definition at line 163 of file ksycocaentry.cpp.

void KSycocaEntry::read ( QDataStream &  s,
QStringList &  list 
) [static]

Definition at line 71 of file ksycocaentry.cpp.

void KSycocaEntry::read ( QDataStream &  s,
QString &  str 
) [static]

Default constructor.

Safe demarshalling functions.

Definition at line 46 of file ksycocaentry.cpp.

void KSycocaEntry::save ( QDataStream &  s)

Save ourselves to the database.

Definition at line 145 of file ksycocaentry.cpp.

void KSycocaEntry::setDeleted ( bool  deleted)

Sets whether or not this service is deleted.

Definition at line 122 of file ksycocaentry.cpp.

QString KSycocaEntry::storageId ( ) const
Returns:
the unique ID for this entry In practice, this is storageId() for KService and name() for everything else.
Since:
4.2.1

Reimplemented in KService.

Definition at line 110 of file ksycocaentry.cpp.

KSycocaType KSycocaEntry::sycocaType ( ) const

internal

Definition at line 99 of file ksycocaentry.cpp.


Friends And Related Function Documentation

enum KSycocaType [related]

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.


Member Data Documentation

KSycocaEntryPrivate* KSycocaEntry::d_ptr [protected]

Definition at line 149 of file ksycocaentry.h.


The documentation for this class was generated from the following files:
  • ksycocaentry.h
  • ksycocatype.h
  • ksycocaentry.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal