class KSycoca

# class KSycoca | More...
Internal Use Only
Definition | `#include <ksycoca.h>`
Inherits | DCOPObject (dcop) [public ], QObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KSycoca ()
- virtual ~KSycoca ()
- QDataStream * findEntry (int offset, KSycocaType &type)
- QDataStream * findFactory ( KSycocaFactoryId id)
- QString kfsstnd_prefixes ()
- QString language ()
- Q_UINT32 timeStamp ()
- Q_UINT32 updateSignature ()
- void addFactory ( KSycocaFactory * )
- virtual bool isBuilding ()
- void disableAutoRebuild ()

#### Signals

- void databaseChanged ()

#### Public Static Methods

- static KSycoca * self ()
- static QString determineRelativePath ( const QString & _fullpath, const char *_resource )
- static bool isChanged (const char *type)
- static void flagError ()
- static bool readError ()

#### Public Members

- static KSycoca *_self

#### Protected Methods

- KSycoca ( bool )
- bool checkVersion (bool abortOnError=true)
- bool openDatabase (bool openDummyIfNotFound=true)
- void closeDatabase ()
- virtual void virtual_hook ( int id, void* data )

#### Protected Members

- KSycocaFactoryList *m_lstFactories
- QDataStream *m_str
- bool bNoDatabase
- size_t m_sycoca_size
- const char *m_sycoca_mmap
- Q_UINT32 m_timeStamp

## Detailed Description

Read-only SYstem COnfiguration CAche

KSycoca ( bool ) | ### KSycoca

[protected]

Building database

KSycoca () | ### KSycoca

Read-only database

KSycoca * self () | ### self

[static]

Get or create the only instance of KSycoca (read-only)

~KSycoca () | ### ~KSycoca

[virtual]

QDataStream * findEntry (int offset, KSycocaType &type) | ### findEntry

This is how factories get a stream to an entry

QDataStream * findFactory ( KSycocaFactoryId id) | ### findFactory

QString kfsstnd_prefixes () | ### kfsstnd_prefixes

QString language () | ### language

Q_UINT32 timeStamp () | ### timeStamp

The database contains all changes made _before_ this time and _might_ contain changes made after that.

Q_UINT32 updateSignature () | ### updateSignature

Signature that keeps track of changes to $KDEDIR/share/services/update_ksycoca

Touching this file causes the database to be recreated from scratch.

void addFactory ( KSycocaFactory * ) | ### addFactory

bool isBuilding () | ### isBuilding

[virtual]

Returns: true if building (i.e. if a KBuildSycoca);

void disableAutoRebuild () | ### disableAutoRebuild

QString determineRelativePath ( const QString & _fullpath, const char *_resource ) | ### determineRelativePath

[static]

Determine relative path for a .desktop file from a full path and a resource name

bool isChanged (const char *type) | ### isChanged

[static]

When you receive a "databaseChanged" signal, you can query here if a change has occured in a specific resource type.

See also: KStandardDirs, for, the, various, resource, types.

void flagError () | ### flagError

[static]

A read error occurs.

bool readError () | ### readError

[static]

Returns read error status and clears flag.

void notifyDatabaseChanged (const QStringList &) | ### notifyDatabaseChanged

[k_dcop]

internal function for receiving kded/kbuildsycoca's signal, when the sycoca file changes

void databaseChanged () | ### databaseChanged

[signal]

Connect to this to get notified when the database changes (Usually apps showing icons do a 'refresh' to take into account the new mimetypes)

bool checkVersion (bool abortOnError=true) | ### checkVersion

[protected]

bool openDatabase (bool openDummyIfNotFound=true) | ### openDatabase

[protected]

void closeDatabase () | ### closeDatabase

[protected]

KSycocaFactoryList * m_lstFactories | ### m_lstFactories

[protected]

QDataStream * m_str | ### m_str

[protected]

bool bNoDatabase | ### bNoDatabase

[protected]

size_t m_sycoca_size | ### m_sycoca_size

[protected]

const char * m_sycoca_mmap | ### m_sycoca_mmap

[protected]

Q_UINT32 m_timeStamp | ### m_timeStamp

[protected]

static KSycoca * _self | ### _self

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from DCOPObject.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.