# class KSycoca

###

Module | kdecore
Namespace |
Class | KSycoca
Inherits | QObject

Internal Read-only SYstem COnfiguration CAche

### enums

- DatabaseType { LocalDatabase, GlobalDatabase }

enum details

### methods

- KSycoca (a0)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  Internal Building database

- KSycoca ( )

  returns ctor

  Read-only database

- KSycoca (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KSycoca |

- KSycoca (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- absoluteFilePath (type)

  returns QString
  static
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  type | KSycoca.DatabaseType | KSycoca.LocalDatabase

  Internal - returns absolute file path of the database

  for global database type the database is searched under the 'services' install path. Otherwise, the value from the environment variable KDESYCOCA is returned if set. If not set the path is build based on KStandardDirs cache save location.

- addFactory (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KSycocaFactory |

  Internal - add a factory

- allResourceDirs ( )

  returns QStringList

  Internal - returns all directories with information stored inside sycoca.

- databaseChanged ( )

  returns Nothing
  SIGNAL ("databaseChanged ()")

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

- disableAutoRebuild ( )

  returns Nothing

  Internal - disables launching of kbuildsycoca

- factories ( )

  returns KSycocaFactoryList
  Not implemented

- findEntry (offset, type)

  returns QDataStream

  Argument | Type | Default
  --- | --- | ---
  offset | int |
  type | KSycocaType |

  Internal - called by factories in read-only mode This is how factories get a stream to an entry

- findFactory (id)

  returns QDataStream

  Argument | Type | Default
  --- | --- | ---
  id | KSycocaFactoryId |

  Internal - called by factories in read-only mode

- flagError ( )

  returns Nothing
  static

  A read error occurs.

- isAvailable ( )

  returns bool
  static

  Returns true if the ksycoca database is available This is usually the case, except if KDE isn't installed yet, or before kded is started.

- isBuilding ( )

  returns bool

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

- isChanged (type)

  returns bool
  static

  Argument | Type | Default
  --- | --- | ---
  type | char |

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

  See also KStandardDirs for the various resource types.

- kfsstnd_prefixes ( )

  returns QString

  Internal - returns kfsstnd stored inside database

- language ( )

  returns QString

  Internal - returns language stored inside database

- readError ( )

  returns bool
  static

  Returns read error status and clears flag.

- self ( )

  returns KSycoca
  static

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

- timeStamp ( )

  returns quint32

  Internal - returns timestamp of database

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

- updateSignature ( )

  returns quint32

  Internal - returns update signature of database

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

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

- version ( )

  returns int
  static

  Returns the compiled-in version, i.e. the one used when writing a new ksycoca

### enums - detail

- DatabaseType { LocalDatabase, GlobalDatabase }

  type of database

  See also absoluteFilePath()

  | LocalDatabase | - | - |
  | GlobalDatabase | - | - |