class KSycocaFactory

More...

Internal Use Only
Contains pure virtuals
Definition#include <ksycocafactory.h>
Inherited byKServiceFactory, KServiceTypeFactory
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

Base class for sycoca factories

 KSycocaFactory ( KSycocaFactoryId factory_id )

[protected]

Create a factory which can be used to lookup from/create a database (depending on KSycoca::isBuilding())

int  offset ()

Returns: the position of the factory in the sycoca file

KSycocaEntryDict *  entryDict ()

Returns: the dict, for special use by KBuildSycoca

KSycocaEntrycreateEntry (const QString &file, const char *resource)

[pure virtual]

Construct an entry from a config file. To be implemented in the real factories.

void  addEntry (KSycocaEntry *newEntry)

[virtual]

Add an entry

void  save (QDataStream &str)

[virtual]

Saves all entries it maintains as well as index files for these entries to the stream 'str'.

Also sets mOffset to the starting position.

The stream is positioned at the end of the last index.

Don't forget to call the parent first when you override this function.

void  saveHeader (QDataStream &str)

[virtual]

Writes out a header to the stream 'str'. The baseclass positions the stream correctly.

Don't forget to call the parent first when you override this function.

const QStringList *  resourceList ()

[const virtual]

Returns: the resources for which this factory is responsible.


Generated by: dfaure@faure on Sun Mar 26 14:24:43 2000, using kdoc 2.0a35.