C# Class Kimono.KCoreConfigSkeleton

Inheritance: Qyoto.QObject, IDisposable
Afficher le fichier Open project: 0xd34df00d/Qross Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
CreateProxy ( ) : void
KCoreConfigSkeleton ( Type dummy ) : System

Private Methods

Méthode 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 méthode

public AddItem ( Kimono.KConfigSkeletonItem arg1 ) : void
arg1 Kimono.KConfigSkeletonItem
Résultat void

AddItem() public méthode

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
Résultat void

AddItemBool() public méthode

public AddItemBool ( string name, bool reference ) : KCoreConfigSkeleton.ItemBool
name string
reference bool
Résultat KCoreConfigSkeleton.ItemBool

AddItemBool() public méthode

public AddItemBool ( string name, bool reference, bool defaultValue ) : KCoreConfigSkeleton.ItemBool
name string
reference bool
defaultValue bool
Résultat KCoreConfigSkeleton.ItemBool

AddItemBool() public méthode

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
Résultat KCoreConfigSkeleton.ItemBool

AddItemDateTime() public méthode

public AddItemDateTime ( string name, Qyoto.QDateTime reference ) : KCoreConfigSkeleton.ItemDateTime
name string
reference Qyoto.QDateTime
Résultat KCoreConfigSkeleton.ItemDateTime

AddItemDateTime() public méthode

public AddItemDateTime ( string name, Qyoto.QDateTime reference, Qyoto.QDateTime defaultValue ) : KCoreConfigSkeleton.ItemDateTime
name string
reference Qyoto.QDateTime
defaultValue Qyoto.QDateTime
Résultat KCoreConfigSkeleton.ItemDateTime

AddItemDateTime() public méthode

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
Résultat KCoreConfigSkeleton.ItemDateTime

AddItemDouble() public méthode

public AddItemDouble ( string name, double &reference ) : KCoreConfigSkeleton.ItemDouble
name string
reference double
Résultat KCoreConfigSkeleton.ItemDouble

AddItemDouble() public méthode

public AddItemDouble ( string name, double &reference, double defaultValue ) : KCoreConfigSkeleton.ItemDouble
name string
reference double
defaultValue double
Résultat KCoreConfigSkeleton.ItemDouble

AddItemDouble() public méthode

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
Résultat KCoreConfigSkeleton.ItemDouble

AddItemInt() public méthode

public AddItemInt ( string name, int &reference ) : KCoreConfigSkeleton.ItemInt
name string
reference int
Résultat KCoreConfigSkeleton.ItemInt

AddItemInt() public méthode

public AddItemInt ( string name, int &reference, int defaultValue ) : KCoreConfigSkeleton.ItemInt
name string
reference int
defaultValue int
Résultat KCoreConfigSkeleton.ItemInt

AddItemInt() public méthode

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
Résultat KCoreConfigSkeleton.ItemInt

AddItemIntList() public méthode

public AddItemIntList ( string name, List reference ) : KCoreConfigSkeleton.ItemIntList
name string
reference List
Résultat KCoreConfigSkeleton.ItemIntList

AddItemIntList() public méthode

public AddItemIntList ( string name, List reference, List defaultValue ) : KCoreConfigSkeleton.ItemIntList
name string
reference List
defaultValue List
Résultat KCoreConfigSkeleton.ItemIntList

AddItemIntList() public méthode

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
Résultat KCoreConfigSkeleton.ItemIntList

AddItemLongLong() public méthode

public AddItemLongLong ( string name, long &reference ) : KCoreConfigSkeleton.ItemLongLong
name string
reference long
Résultat KCoreConfigSkeleton.ItemLongLong

AddItemLongLong() public méthode

public AddItemLongLong ( string name, long &reference, long defaultValue ) : KCoreConfigSkeleton.ItemLongLong
name string
reference long
defaultValue long
Résultat KCoreConfigSkeleton.ItemLongLong

AddItemLongLong() public méthode

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
Résultat KCoreConfigSkeleton.ItemLongLong

AddItemPassword() public méthode

public AddItemPassword ( string name, StringBuilder reference ) : KCoreConfigSkeleton.ItemPassword
name string
reference StringBuilder
Résultat KCoreConfigSkeleton.ItemPassword

AddItemPassword() public méthode

public AddItemPassword ( string name, StringBuilder reference, string defaultValue ) : KCoreConfigSkeleton.ItemPassword
name string
reference StringBuilder
defaultValue string
Résultat KCoreConfigSkeleton.ItemPassword

AddItemPassword() public méthode

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
Résultat KCoreConfigSkeleton.ItemPassword

AddItemPath() public méthode

public AddItemPath ( string name, StringBuilder reference ) : KCoreConfigSkeleton.ItemPath
name string
reference StringBuilder
Résultat KCoreConfigSkeleton.ItemPath

AddItemPath() public méthode

public AddItemPath ( string name, StringBuilder reference, string defaultValue ) : KCoreConfigSkeleton.ItemPath
name string
reference StringBuilder
defaultValue string
Résultat KCoreConfigSkeleton.ItemPath

AddItemPath() public méthode

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
Résultat KCoreConfigSkeleton.ItemPath

AddItemPoint() public méthode

public AddItemPoint ( string name, QPoint reference ) : KCoreConfigSkeleton.ItemPoint
name string
reference QPoint
Résultat KCoreConfigSkeleton.ItemPoint

AddItemPoint() public méthode

public AddItemPoint ( string name, QPoint reference, QPoint defaultValue ) : KCoreConfigSkeleton.ItemPoint
name string
reference QPoint
defaultValue QPoint
Résultat KCoreConfigSkeleton.ItemPoint

AddItemPoint() public méthode

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
Résultat KCoreConfigSkeleton.ItemPoint

AddItemProperty() public méthode

public AddItemProperty ( string name, QVariant reference ) : KCoreConfigSkeleton.ItemProperty
name string
reference QVariant
Résultat KCoreConfigSkeleton.ItemProperty

AddItemProperty() public méthode

public AddItemProperty ( string name, QVariant reference, QVariant defaultValue ) : KCoreConfigSkeleton.ItemProperty
name string
reference QVariant
defaultValue QVariant
Résultat KCoreConfigSkeleton.ItemProperty

AddItemProperty() public méthode

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
Résultat KCoreConfigSkeleton.ItemProperty

AddItemRect() public méthode

public AddItemRect ( string name, QRect reference ) : KCoreConfigSkeleton.ItemRect
name string
reference QRect
Résultat KCoreConfigSkeleton.ItemRect

AddItemRect() public méthode

public AddItemRect ( string name, QRect reference, QRect defaultValue ) : KCoreConfigSkeleton.ItemRect
name string
reference QRect
defaultValue QRect
Résultat KCoreConfigSkeleton.ItemRect

AddItemRect() public méthode

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
Résultat KCoreConfigSkeleton.ItemRect

AddItemSize() public méthode

public AddItemSize ( string name, QSize reference ) : KCoreConfigSkeleton.ItemSize
name string
reference QSize
Résultat KCoreConfigSkeleton.ItemSize

AddItemSize() public méthode

public AddItemSize ( string name, QSize reference, QSize defaultValue ) : KCoreConfigSkeleton.ItemSize
name string
reference QSize
defaultValue QSize
Résultat KCoreConfigSkeleton.ItemSize

AddItemSize() public méthode

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
Résultat KCoreConfigSkeleton.ItemSize

AddItemString() public méthode

public AddItemString ( string name, StringBuilder reference ) : KCoreConfigSkeleton.ItemString
name string
reference StringBuilder
Résultat KCoreConfigSkeleton.ItemString

AddItemString() public méthode

public AddItemString ( string name, StringBuilder reference, string defaultValue ) : KCoreConfigSkeleton.ItemString
name string
reference StringBuilder
defaultValue string
Résultat KCoreConfigSkeleton.ItemString

AddItemString() public méthode

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
Résultat KCoreConfigSkeleton.ItemString

AddItemStringList() public méthode

public AddItemStringList ( string name, List reference ) : KCoreConfigSkeleton.ItemStringList
name string
reference List
Résultat KCoreConfigSkeleton.ItemStringList

AddItemStringList() public méthode

public AddItemStringList ( string name, List reference, List defaultValue ) : KCoreConfigSkeleton.ItemStringList
name string
reference List
defaultValue List
Résultat KCoreConfigSkeleton.ItemStringList

AddItemStringList() public méthode

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
Résultat KCoreConfigSkeleton.ItemStringList

AddItemUInt() public méthode

public AddItemUInt ( string name, int &reference ) : KCoreConfigSkeleton.ItemUInt
name string
reference int
Résultat KCoreConfigSkeleton.ItemUInt

AddItemUInt() public méthode

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

AddItemUInt() public méthode

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
Résultat KCoreConfigSkeleton.ItemUInt

AddItemULongLong() public méthode

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
Résultat KCoreConfigSkeleton.ItemULongLong

Config() public méthode

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

CreateProxy() protected méthode

protected CreateProxy ( ) : void
Résultat void

CurrentGroup() public méthode

Returns the current group used for addItem() calls.
public CurrentGroup ( ) : string
Résultat string

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FindItem() public méthode

Lookup item by name
public FindItem ( string name ) : KConfigSkeletonItem
name string
Résultat KConfigSkeletonItem

IsImmutable() public méthode

Return whether a certain item is immutable
public IsImmutable ( string name ) : bool
name string
Résultat bool

Items() public méthode

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

KCoreConfigSkeleton() public méthode

public KCoreConfigSkeleton ( ) : System
Résultat System

KCoreConfigSkeleton() public méthode

public KCoreConfigSkeleton ( KSharedConfig config ) : System
config KSharedConfig
Résultat System

KCoreConfigSkeleton() public méthode

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

KCoreConfigSkeleton() protected méthode

protected KCoreConfigSkeleton ( Type dummy ) : System
dummy Type
Résultat System

KCoreConfigSkeleton() public méthode

public KCoreConfigSkeleton ( string configname ) : System
configname string
Résultat System

KCoreConfigSkeleton() public méthode

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
Résultat System

SetCurrentGroup() public méthode

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
Résultat void

SetSharedConfig() public méthode

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