# class KSharedConfig

###

Module | kdecore
Namespace |
Class | KSharedConfig
Inherits | KConfig

\class KSharedConfig ksharedconfig.h <KSharedConfig>

KConfig variant using shared memory

KSharedConfig provides a reference counted, shared memory variant of KConfig.

### methods

- KSharedConfig (componentData, file, mode, resourceType)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  componentData | KComponentData |
  file | QString |
  mode | KConfig.OpenFlags |
  resourceType | char |

- openConfig (fileName, mode, resourceType)

  returns KSharedConfig.Ptr
  static

  Argument | Type | Default
  --- | --- | ---
  fileName | QString | QString()
  mode | KConfig.OpenFlags | KConfig.FullConfig
  resourceType | char | "config"

  Constructs a KSharedConfig object.

  fileName - A file to parse in addition to the system-wide file(s). If it is not provided, only global KDE configuration data will be read (depending on the value of mode).

  mode -

  resourceType - the place to look in (config, data, etc)

  See also KStandardDirs.

  backend -

- openConfig (componentData, fileName, mode, resourceType)

  returns KSharedConfig.Ptr
  static

  Argument | Type | Default
  --- | --- | ---
  componentData | KComponentData |
  fileName | QString | QString()
  mode | KConfig.OpenFlags | KConfig.FullConfig
  resourceType | char | "config"