C# Class Kimono.KCoreConfigSkeleton

Inheritance: Qyoto.QObject, IDisposable
ファイルを表示 Open project: 0xd34df00d/Qross Class Usage Examples

Public Methods

Method Description
AddItem ( Kimono.KConfigSkeletonItem arg1 ) : void
AddItem ( Kimono.KConfigSkeletonItem arg1, string name ) : void Register a custom with a given name. If the name parameter is null, take the name from KConfigSkeletonItem.Key(). Note that all names must be unique but that multiple entries can have the same key if they reside in different groups.
AddItemBool ( string name, bool reference ) : KCoreConfigSkeleton.ItemBool
AddItemBool ( string name, bool reference, bool defaultValue ) : KCoreConfigSkeleton.ItemBool
AddItemBool ( string name, bool reference, bool defaultValue, string key ) : KCoreConfigSkeleton.ItemBool Register an item of type bool. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemDateTime ( string name, Qyoto.QDateTime reference ) : KCoreConfigSkeleton.ItemDateTime
AddItemDateTime ( string name, Qyoto.QDateTime reference, Qyoto.QDateTime defaultValue ) : KCoreConfigSkeleton.ItemDateTime
AddItemDateTime ( string name, Qyoto.QDateTime reference, Qyoto.QDateTime defaultValue, string key ) : KCoreConfigSkeleton.ItemDateTime Register an item of type QDateTime. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemDouble ( string name, double &reference ) : KCoreConfigSkeleton.ItemDouble
AddItemDouble ( string name, double &reference, double defaultValue ) : KCoreConfigSkeleton.ItemDouble
AddItemDouble ( string name, double &reference, double defaultValue, string key ) : KCoreConfigSkeleton.ItemDouble Register an item of type double. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemInt ( string name, int &reference ) : KCoreConfigSkeleton.ItemInt
AddItemInt ( string name, int &reference, int defaultValue ) : KCoreConfigSkeleton.ItemInt
AddItemInt ( string name, int &reference, int defaultValue, string key ) : KCoreConfigSkeleton.ItemInt Register an item of type qint32. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemIntList ( string name, List reference ) : KCoreConfigSkeleton.ItemIntList
AddItemIntList ( string name, List reference, List defaultValue ) : KCoreConfigSkeleton.ItemIntList
AddItemIntList ( string name, List reference, List defaultValue, string key ) : KCoreConfigSkeleton.ItemIntList Register an item of type QList. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemLongLong ( string name, long &reference ) : KCoreConfigSkeleton.ItemLongLong
AddItemLongLong ( string name, long &reference, long defaultValue ) : KCoreConfigSkeleton.ItemLongLong
AddItemLongLong ( string name, long &reference, long defaultValue, string key ) : KCoreConfigSkeleton.ItemLongLong Register an item of type qint64. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemPassword ( string name, StringBuilder reference ) : KCoreConfigSkeleton.ItemPassword
AddItemPassword ( string name, StringBuilder reference, string defaultValue ) : KCoreConfigSkeleton.ItemPassword
AddItemPassword ( string name, StringBuilder reference, string defaultValue, string key ) : KCoreConfigSkeleton.ItemPassword Register a password item of type string. The string value is written encrypted to the config file. Note that the current encryption scheme is very weak. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemPath ( string name, StringBuilder reference ) : KCoreConfigSkeleton.ItemPath
AddItemPath ( string name, StringBuilder reference, string defaultValue ) : KCoreConfigSkeleton.ItemPath
AddItemPath ( string name, StringBuilder reference, string defaultValue, string key ) : KCoreConfigSkeleton.ItemPath Register a path item of type string. The string value is interpreted as a path. This means, dollar expension is activated for this value, so that e.g. $HOME gets expanded. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemPoint ( string name, QPoint reference ) : KCoreConfigSkeleton.ItemPoint
AddItemPoint ( string name, QPoint reference, QPoint defaultValue ) : KCoreConfigSkeleton.ItemPoint
AddItemPoint ( string name, QPoint reference, QPoint defaultValue, string key ) : KCoreConfigSkeleton.ItemPoint Register an item of type QPoint. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemProperty ( string name, QVariant reference ) : KCoreConfigSkeleton.ItemProperty
AddItemProperty ( string name, QVariant reference, QVariant defaultValue ) : KCoreConfigSkeleton.ItemProperty
AddItemProperty ( string name, QVariant reference, QVariant defaultValue, string key ) : KCoreConfigSkeleton.ItemProperty Register a property item of type QVariant. Note that only the following QVariant types are allowed: String, StringList, Font, Point, Rect, Size, Color, Int, UInt, Bool, Double, DateTime and Date. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemRect ( string name, QRect reference ) : KCoreConfigSkeleton.ItemRect
AddItemRect ( string name, QRect reference, QRect defaultValue ) : KCoreConfigSkeleton.ItemRect
AddItemRect ( string name, QRect reference, QRect defaultValue, string key ) : KCoreConfigSkeleton.ItemRect Register an item of type QRect. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemSize ( string name, QSize reference ) : KCoreConfigSkeleton.ItemSize
AddItemSize ( string name, QSize reference, QSize defaultValue ) : KCoreConfigSkeleton.ItemSize
AddItemSize ( string name, QSize reference, QSize defaultValue, string key ) : KCoreConfigSkeleton.ItemSize Register an item of type QSize. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemString ( string name, StringBuilder reference ) : KCoreConfigSkeleton.ItemString
AddItemString ( string name, StringBuilder reference, string defaultValue ) : KCoreConfigSkeleton.ItemString
AddItemString ( string name, StringBuilder reference, string defaultValue, string key ) : KCoreConfigSkeleton.ItemString Register an item of type string. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemStringList ( string name, List reference ) : KCoreConfigSkeleton.ItemStringList
AddItemStringList ( string name, List reference, List defaultValue ) : KCoreConfigSkeleton.ItemStringList
AddItemStringList ( string name, List reference, List defaultValue, string key ) : KCoreConfigSkeleton.ItemStringList Register an item of type List. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemUInt ( string name, int &reference ) : KCoreConfigSkeleton.ItemUInt
AddItemUInt ( string name, int &reference, uint defaultValue ) : KCoreConfigSkeleton.ItemUInt
AddItemUInt ( string name, int &reference, uint defaultValue, string key ) : KCoreConfigSkeleton.ItemUInt Register an item of type quint32. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
AddItemULongLong ( string name, ulong &reference ) : KCoreConfigSkeleton.ItemULongLong Register an item of type quint64 name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
Config ( ) : KConfig Return the object used for reading and writing the settings.
CurrentGroup ( ) : string Returns the current group used for addItem() calls.
Dispose ( ) : void
FindItem ( string name ) : KConfigSkeletonItem Lookup item by name
IsImmutable ( string name ) : bool Return whether a certain item is immutable
Items ( ) : List Return list of items managed by this KCoreConfigSkeleton object.
KCoreConfigSkeleton ( ) : System
KCoreConfigSkeleton ( KSharedConfig config ) : System
KCoreConfigSkeleton ( KSharedConfig config, QObject parent ) : System Constructor. name="config" configuration object to use.
KCoreConfigSkeleton ( string configname ) : System
KCoreConfigSkeleton ( string configname, QObject parent ) : System Constructor. name="configname" name of config file. If no name is given, the default config file as returned by KGlobal.Config() is used.
SetCurrentGroup ( string group ) : void Set the config file group for subsequent addItem() calls. It is valid until setCurrentGroup() is called with a new argument. Call this before you add any items. The default value is "No Group".
SetSharedConfig ( KSharedConfig pConfig ) : void Set the object used for reading and writing the settings.

Protected Methods

Method Description
CreateProxy ( ) : void
KCoreConfigSkeleton ( Type dummy ) : System

Private Methods

Method Description
ReadConfig ( ) : void
SetDefaults ( ) : void
UseDefaults ( bool b ) : bool
UsrReadConfig ( ) : void
UsrSetDefaults ( ) : void
UsrUseDefaults ( bool b ) : bool
UsrWriteConfig ( ) : void
WriteConfig ( ) : void

Method Details

AddItem() public method

public AddItem ( Kimono.KConfigSkeletonItem arg1 ) : void
arg1 Kimono.KConfigSkeletonItem
return void

AddItem() public method

Register a custom with a given name. If the name parameter is null, take the name from KConfigSkeletonItem.Key(). Note that all names must be unique but that multiple entries can have the same key if they reside in different groups.
public AddItem ( Kimono.KConfigSkeletonItem arg1, string name ) : void
arg1 Kimono.KConfigSkeletonItem
name string
return void

AddItemBool() public method

public AddItemBool ( string name, bool reference ) : KCoreConfigSkeleton.ItemBool
name string
reference bool
return KCoreConfigSkeleton.ItemBool

AddItemBool() public method

public AddItemBool ( string name, bool reference, bool defaultValue ) : KCoreConfigSkeleton.ItemBool
name string
reference bool
defaultValue bool
return KCoreConfigSkeleton.ItemBool

AddItemBool() public method

Register an item of type bool. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemBool ( string name, bool reference, bool defaultValue, string key ) : KCoreConfigSkeleton.ItemBool
name string
reference bool
defaultValue bool
key string
return KCoreConfigSkeleton.ItemBool

AddItemDateTime() public method

public AddItemDateTime ( string name, Qyoto.QDateTime reference ) : KCoreConfigSkeleton.ItemDateTime
name string
reference Qyoto.QDateTime
return KCoreConfigSkeleton.ItemDateTime

AddItemDateTime() public method

public AddItemDateTime ( string name, Qyoto.QDateTime reference, Qyoto.QDateTime defaultValue ) : KCoreConfigSkeleton.ItemDateTime
name string
reference Qyoto.QDateTime
defaultValue Qyoto.QDateTime
return KCoreConfigSkeleton.ItemDateTime

AddItemDateTime() public method

Register an item of type QDateTime. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemDateTime ( string name, Qyoto.QDateTime reference, Qyoto.QDateTime defaultValue, string key ) : KCoreConfigSkeleton.ItemDateTime
name string
reference Qyoto.QDateTime
defaultValue Qyoto.QDateTime
key string
return KCoreConfigSkeleton.ItemDateTime

AddItemDouble() public method

public AddItemDouble ( string name, double &reference ) : KCoreConfigSkeleton.ItemDouble
name string
reference double
return KCoreConfigSkeleton.ItemDouble

AddItemDouble() public method

public AddItemDouble ( string name, double &reference, double defaultValue ) : KCoreConfigSkeleton.ItemDouble
name string
reference double
defaultValue double
return KCoreConfigSkeleton.ItemDouble

AddItemDouble() public method

Register an item of type double. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemDouble ( string name, double &reference, double defaultValue, string key ) : KCoreConfigSkeleton.ItemDouble
name string
reference double
defaultValue double
key string
return KCoreConfigSkeleton.ItemDouble

AddItemInt() public method

public AddItemInt ( string name, int &reference ) : KCoreConfigSkeleton.ItemInt
name string
reference int
return KCoreConfigSkeleton.ItemInt

AddItemInt() public method

public AddItemInt ( string name, int &reference, int defaultValue ) : KCoreConfigSkeleton.ItemInt
name string
reference int
defaultValue int
return KCoreConfigSkeleton.ItemInt

AddItemInt() public method

Register an item of type qint32. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemInt ( string name, int &reference, int defaultValue, string key ) : KCoreConfigSkeleton.ItemInt
name string
reference int
defaultValue int
key string
return KCoreConfigSkeleton.ItemInt

AddItemIntList() public method

public AddItemIntList ( string name, List reference ) : KCoreConfigSkeleton.ItemIntList
name string
reference List
return KCoreConfigSkeleton.ItemIntList

AddItemIntList() public method

public AddItemIntList ( string name, List reference, List defaultValue ) : KCoreConfigSkeleton.ItemIntList
name string
reference List
defaultValue List
return KCoreConfigSkeleton.ItemIntList

AddItemIntList() public method

Register an item of type QList. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemIntList ( string name, List reference, List defaultValue, string key ) : KCoreConfigSkeleton.ItemIntList
name string
reference List
defaultValue List
key string
return KCoreConfigSkeleton.ItemIntList

AddItemLongLong() public method

public AddItemLongLong ( string name, long &reference ) : KCoreConfigSkeleton.ItemLongLong
name string
reference long
return KCoreConfigSkeleton.ItemLongLong

AddItemLongLong() public method

public AddItemLongLong ( string name, long &reference, long defaultValue ) : KCoreConfigSkeleton.ItemLongLong
name string
reference long
defaultValue long
return KCoreConfigSkeleton.ItemLongLong

AddItemLongLong() public method

Register an item of type qint64. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemLongLong ( string name, long &reference, long defaultValue, string key ) : KCoreConfigSkeleton.ItemLongLong
name string
reference long
defaultValue long
key string
return KCoreConfigSkeleton.ItemLongLong

AddItemPassword() public method

public AddItemPassword ( string name, StringBuilder reference ) : KCoreConfigSkeleton.ItemPassword
name string
reference StringBuilder
return KCoreConfigSkeleton.ItemPassword

AddItemPassword() public method

public AddItemPassword ( string name, StringBuilder reference, string defaultValue ) : KCoreConfigSkeleton.ItemPassword
name string
reference StringBuilder
defaultValue string
return KCoreConfigSkeleton.ItemPassword

AddItemPassword() public method

Register a password item of type string. The string value is written encrypted to the config file. Note that the current encryption scheme is very weak. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemPassword ( string name, StringBuilder reference, string defaultValue, string key ) : KCoreConfigSkeleton.ItemPassword
name string
reference StringBuilder
defaultValue string
key string
return KCoreConfigSkeleton.ItemPassword

AddItemPath() public method

public AddItemPath ( string name, StringBuilder reference ) : KCoreConfigSkeleton.ItemPath
name string
reference StringBuilder
return KCoreConfigSkeleton.ItemPath

AddItemPath() public method

public AddItemPath ( string name, StringBuilder reference, string defaultValue ) : KCoreConfigSkeleton.ItemPath
name string
reference StringBuilder
defaultValue string
return KCoreConfigSkeleton.ItemPath

AddItemPath() public method

Register a path item of type string. The string value is interpreted as a path. This means, dollar expension is activated for this value, so that e.g. $HOME gets expanded. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemPath ( string name, StringBuilder reference, string defaultValue, string key ) : KCoreConfigSkeleton.ItemPath
name string
reference StringBuilder
defaultValue string
key string
return KCoreConfigSkeleton.ItemPath

AddItemPoint() public method

public AddItemPoint ( string name, QPoint reference ) : KCoreConfigSkeleton.ItemPoint
name string
reference QPoint
return KCoreConfigSkeleton.ItemPoint

AddItemPoint() public method

public AddItemPoint ( string name, QPoint reference, QPoint defaultValue ) : KCoreConfigSkeleton.ItemPoint
name string
reference QPoint
defaultValue QPoint
return KCoreConfigSkeleton.ItemPoint

AddItemPoint() public method

Register an item of type QPoint. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemPoint ( string name, QPoint reference, QPoint defaultValue, string key ) : KCoreConfigSkeleton.ItemPoint
name string
reference QPoint
defaultValue QPoint
key string
return KCoreConfigSkeleton.ItemPoint

AddItemProperty() public method

public AddItemProperty ( string name, QVariant reference ) : KCoreConfigSkeleton.ItemProperty
name string
reference QVariant
return KCoreConfigSkeleton.ItemProperty

AddItemProperty() public method

public AddItemProperty ( string name, QVariant reference, QVariant defaultValue ) : KCoreConfigSkeleton.ItemProperty
name string
reference QVariant
defaultValue QVariant
return KCoreConfigSkeleton.ItemProperty

AddItemProperty() public method

Register a property item of type QVariant. Note that only the following QVariant types are allowed: String, StringList, Font, Point, Rect, Size, Color, Int, UInt, Bool, Double, DateTime and Date. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemProperty ( string name, QVariant reference, QVariant defaultValue, string key ) : KCoreConfigSkeleton.ItemProperty
name string
reference QVariant
defaultValue QVariant
key string
return KCoreConfigSkeleton.ItemProperty

AddItemRect() public method

public AddItemRect ( string name, QRect reference ) : KCoreConfigSkeleton.ItemRect
name string
reference QRect
return KCoreConfigSkeleton.ItemRect

AddItemRect() public method

public AddItemRect ( string name, QRect reference, QRect defaultValue ) : KCoreConfigSkeleton.ItemRect
name string
reference QRect
defaultValue QRect
return KCoreConfigSkeleton.ItemRect

AddItemRect() public method

Register an item of type QRect. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemRect ( string name, QRect reference, QRect defaultValue, string key ) : KCoreConfigSkeleton.ItemRect
name string
reference QRect
defaultValue QRect
key string
return KCoreConfigSkeleton.ItemRect

AddItemSize() public method

public AddItemSize ( string name, QSize reference ) : KCoreConfigSkeleton.ItemSize
name string
reference QSize
return KCoreConfigSkeleton.ItemSize

AddItemSize() public method

public AddItemSize ( string name, QSize reference, QSize defaultValue ) : KCoreConfigSkeleton.ItemSize
name string
reference QSize
defaultValue QSize
return KCoreConfigSkeleton.ItemSize

AddItemSize() public method

Register an item of type QSize. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemSize ( string name, QSize reference, QSize defaultValue, string key ) : KCoreConfigSkeleton.ItemSize
name string
reference QSize
defaultValue QSize
key string
return KCoreConfigSkeleton.ItemSize

AddItemString() public method

public AddItemString ( string name, StringBuilder reference ) : KCoreConfigSkeleton.ItemString
name string
reference StringBuilder
return KCoreConfigSkeleton.ItemString

AddItemString() public method

public AddItemString ( string name, StringBuilder reference, string defaultValue ) : KCoreConfigSkeleton.ItemString
name string
reference StringBuilder
defaultValue string
return KCoreConfigSkeleton.ItemString

AddItemString() public method

Register an item of type string. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemString ( string name, StringBuilder reference, string defaultValue, string key ) : KCoreConfigSkeleton.ItemString
name string
reference StringBuilder
defaultValue string
key string
return KCoreConfigSkeleton.ItemString

AddItemStringList() public method

public AddItemStringList ( string name, List reference ) : KCoreConfigSkeleton.ItemStringList
name string
reference List
return KCoreConfigSkeleton.ItemStringList

AddItemStringList() public method

public AddItemStringList ( string name, List reference, List defaultValue ) : KCoreConfigSkeleton.ItemStringList
name string
reference List
defaultValue List
return KCoreConfigSkeleton.ItemStringList

AddItemStringList() public method

Register an item of type List. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemStringList ( string name, List reference, List defaultValue, string key ) : KCoreConfigSkeleton.ItemStringList
name string
reference List
defaultValue List
key string
return KCoreConfigSkeleton.ItemStringList

AddItemUInt() public method

public AddItemUInt ( string name, int &reference ) : KCoreConfigSkeleton.ItemUInt
name string
reference int
return KCoreConfigSkeleton.ItemUInt

AddItemUInt() public method

public AddItemUInt ( string name, int &reference, uint defaultValue ) : KCoreConfigSkeleton.ItemUInt
name string
reference int
defaultValue uint
return KCoreConfigSkeleton.ItemUInt

AddItemUInt() public method

Register an item of type quint32. name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemUInt ( string name, int &reference, uint defaultValue, string key ) : KCoreConfigSkeleton.ItemUInt
name string
reference int
defaultValue uint
key string
return KCoreConfigSkeleton.ItemUInt

AddItemULongLong() public method

Register an item of type quint64 name="name" Name used to identify this setting. Names must be unique. name="reference" Pointer to the variable, which is set by readConfig() calls and read by writeConfig() calls. name="defaultValue" Default value, which is used when the config file does not yet contain the key of this item. name="key" Key used in config file. If key is null, name is used as key.
public AddItemULongLong ( string name, ulong &reference ) : KCoreConfigSkeleton.ItemULongLong
name string
reference ulong
return KCoreConfigSkeleton.ItemULongLong

Config() public method

Return the object used for reading and writing the settings.
public Config ( ) : KConfig
return KConfig

CreateProxy() protected method

protected CreateProxy ( ) : void
return void

CurrentGroup() public method

Returns the current group used for addItem() calls.
public CurrentGroup ( ) : string
return string

Dispose() public method

public Dispose ( ) : void
return void

FindItem() public method

Lookup item by name
public FindItem ( string name ) : KConfigSkeletonItem
name string
return KConfigSkeletonItem

IsImmutable() public method

Return whether a certain item is immutable
public IsImmutable ( string name ) : bool
name string
return bool

Items() public method

Return list of items managed by this KCoreConfigSkeleton object.
public Items ( ) : List
return List

KCoreConfigSkeleton() public method

public KCoreConfigSkeleton ( ) : System
return System

KCoreConfigSkeleton() public method

public KCoreConfigSkeleton ( KSharedConfig config ) : System
config KSharedConfig
return System

KCoreConfigSkeleton() public method

Constructor. name="config" configuration object to use.
public KCoreConfigSkeleton ( KSharedConfig config, QObject parent ) : System
config KSharedConfig
parent QObject
return System

KCoreConfigSkeleton() protected method

protected KCoreConfigSkeleton ( Type dummy ) : System
dummy Type
return System

KCoreConfigSkeleton() public method

public KCoreConfigSkeleton ( string configname ) : System
configname string
return System

KCoreConfigSkeleton() public method

Constructor. name="configname" name of config file. If no name is given, the default config file as returned by KGlobal.Config() is used.
public KCoreConfigSkeleton ( string configname, QObject parent ) : System
configname string
parent QObject
return System

SetCurrentGroup() public method

Set the config file group for subsequent addItem() calls. It is valid until setCurrentGroup() is called with a new argument. Call this before you add any items. The default value is "No Group".
public SetCurrentGroup ( string group ) : void
group string
return void

SetSharedConfig() public method

Set the object used for reading and writing the settings.
public SetSharedConfig ( KSharedConfig pConfig ) : void
pConfig KSharedConfig
return void