KSharedConfig Class Reference
from PyKDE4.kdecore import *
Inherits: KConfig → KConfigBase
Detailed Description
\class KSharedConfig ksharedconfig.h <KSharedConfig>
KConfig variant using shared memory
KSharedConfig provides a reference counted, shared memory variant of KConfig.
Methods | |
__init__ (self, KComponentData componentData, QString file, KConfig.OpenFlags mode, QString resourceType) | |
Static Methods | |
KSharedConfig.Ptr | openConfig (QString fileName=QString(), KConfig.OpenFlags mode=KConfig.FullConfig, QString resourceType="config") |
KSharedConfig.Ptr | openConfig (KComponentData componentData, QString fileName=QString(), KConfig.OpenFlags mode=KConfig.FullConfig, QString resourceType="config") |
Method Documentation
__init__ | ( | self, | ||
KComponentData | componentData, | |||
QString | file, | |||
KConfig.OpenFlags | mode, | |||
QString | resourceType | |||
) |
KSharedConfig.Ptr openConfig | ( | QString | fileName=QString(), | |
KConfig.OpenFlags | mode=KConfig.FullConfig, | |||
QString | resourceType="config" | |||
) |
Constructs a KSharedConfig object.
- Parameters:
-
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.
- Parameters:
-
backend
KSharedConfig.Ptr openConfig ( KComponentData componentData, QString fileName=QString(), KConfig.OpenFlags mode=KConfig.FullConfig, QString resourceType="config" )