class KSycoca

More...

Internal Use Only
Definition#include <ksycoca.h>
InheritsDCOPObject (dcop) [public ], QObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Public Static Methods

Public Members

Protected Methods

Protected Members


Detailed Description

Read-only SYstem COnfiguration CAche

 KSycoca ( bool )

KSycoca

[protected]

Building database

 KSycoca ()

KSycoca

Read-only database

KSycocaself ()

self

[static]

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

 ~KSycoca ()

~KSycoca

[virtual]

QDataStreamfindEntry (int offset, KSycocaType &type)

findEntry

This is how factories get a stream to an entry

QDataStreamfindFactory ( 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);

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: caleb on tcdevel on Tue Jan 28 12:54:04 2003, using kdoc $.