tdeconfigskeleton.cpp
997 TDEConfigSkeleton::ItemString *TDEConfigSkeleton::addItemString( const TQString &name, TQString &reference,
1008 TDEConfigSkeleton::ItemPassword *TDEConfigSkeleton::addItemPassword( const TQString &name, TQString &reference,
1018 TDEConfigSkeleton::ItemPath *TDEConfigSkeleton::addItemPath( const TQString &name, TQString &reference,
1028 TDEConfigSkeleton::ItemProperty *TDEConfigSkeleton::addItemProperty( const TQString &name, TQVariant &reference,
1038 TDEConfigSkeleton::ItemBool *TDEConfigSkeleton::addItemBool( const TQString &name, bool &reference,
1048 TDEConfigSkeleton::ItemInt *TDEConfigSkeleton::addItemInt( const TQString &name, int &reference,
1058 TDEConfigSkeleton::ItemUInt *TDEConfigSkeleton::addItemUInt( const TQString &name, unsigned int &reference,
1068 TDEConfigSkeleton::ItemInt64 *TDEConfigSkeleton::addItemInt64( const TQString &name, TQ_INT64 &reference,
1078 TDEConfigSkeleton::ItemUInt64 *TDEConfigSkeleton::addItemUInt64( const TQString &name, TQ_UINT64 &reference,
1088 TDEConfigSkeleton::ItemLong *TDEConfigSkeleton::addItemLong( const TQString &name, long &reference,
1098 TDEConfigSkeleton::ItemULong *TDEConfigSkeleton::addItemULong( const TQString &name, unsigned long &reference,
1108 TDEConfigSkeleton::ItemDouble *TDEConfigSkeleton::addItemDouble( const TQString &name, double &reference,
1118 TDEConfigSkeleton::ItemColor *TDEConfigSkeleton::addItemColor( const TQString &name, TQColor &reference,
1128 TDEConfigSkeleton::ItemFont *TDEConfigSkeleton::addItemFont( const TQString &name, TQFont &reference,
1138 TDEConfigSkeleton::ItemRect *TDEConfigSkeleton::addItemRect( const TQString &name, TQRect &reference,
1148 TDEConfigSkeleton::ItemPoint *TDEConfigSkeleton::addItemPoint( const TQString &name, TQPoint &reference,
1158 TDEConfigSkeleton::ItemSize *TDEConfigSkeleton::addItemSize( const TQString &name, TQSize &reference,
1168 TDEConfigSkeleton::ItemDateTime *TDEConfigSkeleton::addItemDateTime( const TQString &name, TQDateTime &reference,
1178 TDEConfigSkeleton::ItemStringList *TDEConfigSkeleton::addItemStringList( const TQString &name, TQStringList &reference,
1188 TDEConfigSkeleton::ItemIntList *TDEConfigSkeleton::addItemIntList( const TQString &name, TQValueList<int> &reference,
static TQString obscure(const TQString &str)
Obscure string by using a simple symmetric encryption.
Definition: kstringhandler.cpp:556
unsigned long readUnsignedLongNumEntry(const TQString &pKey, unsigned long nDefault=0) const
Read an unsigned numerical value.
Definition: tdeconfigbase.cpp:672
bool hasDefault(const TQString &key) const
Returns whether a default is specified for an entry in either the system wide configuration file or t...
Definition: tdeconfigbase.cpp:1804
TQString readEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
Reads the value of an entry specified by pKey in the current group.
Definition: tdeconfigbase.cpp:221
void revertToDefault(const TQString &key)
Reverts the entry with key key in the current group in the application specific config file to either...
Definition: tdeconfigbase.cpp:1777
TQColor readColorEntry(const TQString &pKey, const TQColor *pDefault=0L) const
Reads a TQColor entry.
Definition: tdeconfigbase.cpp:947
TQ_UINT64 readUnsignedNum64Entry(const TQString &pKey, TQ_UINT64 nDefault=0) const
Read an 64-bit unsigned numerical value.
Definition: tdeconfigbase.cpp:710
TQ_INT64 readNum64Entry(const TQString &pKey, TQ_INT64 nDefault=0) const
Reads a 64-bit numerical value.
Definition: tdeconfigbase.cpp:690
int readNumEntry(const TQString &pKey, int nDefault=0) const
Reads a numerical value.
Definition: tdeconfigbase.cpp:613
bool readBoolEntry(const TQString &pKey, bool bDefault=false) const
Reads a boolean entry.
Definition: tdeconfigbase.cpp:748
TQSize readSizeEntry(const TQString &pKey, const TQSize *pDefault=0L) const
Reads a TQSize entry.
Definition: tdeconfigbase.cpp:921
void writePathEntry(const TQString &pKey, const TQString &path, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
Writes a file path.
Definition: tdeconfigbase.cpp:1093
bool entryIsImmutable(const TQString &key) const
Checks whether it is possible to change the given entry.
Definition: tdeconfigbase.cpp:182
unsigned int readUnsignedNumEntry(const TQString &pKey, unsigned int nDefault=0) const
Reads an unsigned numerical value.
Definition: tdeconfigbase.cpp:634
double readDoubleNumEntry(const TQString &pKey, double nDefault=0.0) const
Reads a floating point value.
Definition: tdeconfigbase.cpp:729
TQValueList< int > readIntListEntry(const TQString &pKey) const
Reads a list of Integers.
Definition: tdeconfigbase.cpp:567
TQPoint readPointEntry(const TQString &pKey, const TQPoint *pDefault=0L) const
Reads a TQPoint entry.
Definition: tdeconfigbase.cpp:896
TQString group() const
Returns the name of the group in which we are searching for keys and from which we are retrieving ent...
Definition: tdeconfigbase.cpp:100
TQRect readRectEntry(const TQString &pKey, const TQRect *pDefault=0L) const
Reads a TQRect entry.
Definition: tdeconfigbase.cpp:872
int readListEntry(const TQString &pKey, TQStrList &list, char sep=',') const
Reads a list of strings.
Definition: tdeconfigbase.cpp:467
virtual void sync()
Flushes all changes that currently reside only in memory back to disk / permanent storage.
Definition: tdeconfigbase.cpp:1738
TQStringList readPathListEntry(const TQString &pKey, char sep=',') const
Reads a list of string paths.
Definition: tdeconfigbase.cpp:599
long readLongNumEntry(const TQString &pKey, long nDefault=0) const
Reads a numerical value.
Definition: tdeconfigbase.cpp:653
bool hasKey(const TQString &key) const
Checks whether the key has an entry in the currently active group.
Definition: tdeconfigbase.cpp:109
void writeEntry(const TQString &pKey, const TQString &pValue, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
Writes a key/value pair.
Definition: tdeconfigbase.cpp:1044
TQDateTime readDateTimeEntry(const TQString &pKey, const TQDateTime *pDefault=0L) const
Reads a TQDateTime entry.
Definition: tdeconfigbase.cpp:1012
TQString readPathEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
Reads a path.
Definition: tdeconfigbase.cpp:585
TQFont readFontEntry(const TQString &pKey, const TQFont *pDefault=0L) const
Reads a TQFont value.
Definition: tdeconfigbase.cpp:775
void setGroup(const TQString &group)
Specifies the group in which keys will be read and written.
Definition: tdeconfigbase.cpp:79
TQVariant readPropertyEntry(const TQString &pKey, TQVariant::Type) const
Reads the value of an entry specified by pKey in the current group.
Definition: tdeconfigbase.cpp:365
virtual void readConfig(TDEConfig *)=0
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
void readImmutability(TDEConfig *config)
sets mIsImmutable to true if mKey in config is immutable
Definition: tdeconfigskeleton.cpp:35
Class for handling a bool preferences item.
Definition: tdeconfigskeleton.h:433
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:148
Class for handling a color preferences item.
Definition: tdeconfigskeleton.h:654
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:631
Class for handling a TQDateTime preferences item.
Definition: tdeconfigskeleton.h:730
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:766
Class for handling a floating point preference item.
Definition: tdeconfigskeleton.h:628
TQVariant minValue() const
Return minimum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:597
TQVariant maxValue() const
Return maximum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:604
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:574
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:289
void writeConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to write the value of this setting to a config file.
Definition: tdeconfigskeleton.cpp:318
Class for handling a font preferences item.
Definition: tdeconfigskeleton.h:670
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:658
Class for handling an 64-bit integer preferences item.
Definition: tdeconfigskeleton.h:473
TQVariant maxValue() const
Return maximum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:262
TQVariant minValue() const
Return minimum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:255
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:232
Class for handling an integer list preferences item.
Definition: tdeconfigskeleton.h:777
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:857
Class for handling an integer preferences item.
Definition: tdeconfigskeleton.h:448
TQVariant minValue() const
Return minimum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:198
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:175
TQVariant maxValue() const
Return maximum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:205
Class for hanlding a long integer preferences item.
Definition: tdeconfigskeleton.h:551
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:459
TQVariant maxValue() const
Return maximum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:489
TQVariant minValue() const
Return minimum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:482
Class for handling a password preferences item.
Definition: tdeconfigskeleton.h:395
void writeConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to write the value of this setting to a config file.
Definition: tdeconfigskeleton.cpp:835
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:823
Class for handling a path preferences item.
Definition: tdeconfigskeleton.h:406
Class for handling a TQPoint preferences item.
Definition: tdeconfigskeleton.h:700
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:712
Class for handling a TQVariant preferences item.
Definition: tdeconfigskeleton.h:418
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:123
Class for handling a TQRect preferences item.
Definition: tdeconfigskeleton.h:685
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:685
Class for handling a TQSize preferences item.
Definition: tdeconfigskeleton.h:715
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:739
Class for handling a string list preferences item.
Definition: tdeconfigskeleton.h:746
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:793
Class for handling a string preferences item.
Definition: tdeconfigskeleton.h:373
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:67
void writeConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to write the value of this setting to a config file.
Definition: tdeconfigskeleton.cpp:50
Class for handling unsigned 64-bit integer preferences item.
Definition: tdeconfigskeleton.h:602
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:403
TQVariant maxValue() const
Return maximum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:433
TQVariant minValue() const
Return minimum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:426
Class for handling an unsingend integer preferences item.
Definition: tdeconfigskeleton.h:525
TQVariant maxValue() const
Return maximum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:376
TQVariant minValue() const
Return minimum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:369
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:346
Class for handling an unsigned long integer preferences item.
Definition: tdeconfigskeleton.h:577
TQVariant maxValue() const
Return maximum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:547
TQVariant minValue() const
Return minimum value of item or invalid if not specified.
Definition: tdeconfigskeleton.cpp:540
void readConfig(TDEConfig *config)
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
Definition: tdeconfigskeleton.cpp:517
TDEConfigSkeletonItem * findItem(const TQString &name)
Lookup item by name.
Definition: tdeconfigskeleton.cpp:1204
virtual void usrUseDefaults(bool)
Implemented by subclasses that use special defaults.
Definition: tdeconfigskeleton.h:1193
ItemLong * addItemLong(const TQString &name, long &reference, long defaultValue=0, const TQString &key=TQString::null)
Register an item of type long.
Definition: tdeconfigskeleton.cpp:1088
ItemPath * addItemPath(const TQString &name, TQString &reference, const TQString &defaultValue=TQString::fromLatin1(""), const TQString &key=TQString::null)
Register a path item of type TQString.
Definition: tdeconfigskeleton.cpp:1018
ItemStringList * addItemStringList(const TQString &name, TQStringList &reference, const TQStringList &defaultValue=TQStringList(), const TQString &key=TQString::null)
Register an item of type TQStringList.
Definition: tdeconfigskeleton.cpp:1178
ItemUInt * addItemUInt(const TQString &name, unsigned int &reference, unsigned int defaultValue=0, const TQString &key=TQString::null)
Register an item of type unsigned int.
Definition: tdeconfigskeleton.cpp:1058
ItemULong * addItemULong(const TQString &name, unsigned long &reference, unsigned long defaultValue=0, const TQString &key=TQString::null)
Register an item of type unsigned long.
Definition: tdeconfigskeleton.cpp:1098
ItemColor * addItemColor(const TQString &name, TQColor &reference, const TQColor &defaultValue=TQColor(128, 128, 128), const TQString &key=TQString::null)
Register an item of type TQColor.
Definition: tdeconfigskeleton.cpp:1118
ItemRect * addItemRect(const TQString &name, TQRect &reference, const TQRect &defaultValue=TQRect(), const TQString &key=TQString::null)
Register an item of type TQRect.
Definition: tdeconfigskeleton.cpp:1138
bool useDefaults(bool b)
Indicate whether this object should reflect the actual values or the default values.
Definition: tdeconfigskeleton.cpp:923
ItemSize * addItemSize(const TQString &name, TQSize &reference, const TQSize &defaultValue=TQSize(), const TQString &key=TQString::null)
Register an item of type TQSize.
Definition: tdeconfigskeleton.cpp:1158
ItemInt * addItemInt(const TQString &name, int &reference, int defaultValue=0, const TQString &key=TQString::null)
Register an item of type int.
Definition: tdeconfigskeleton.cpp:1048
void setDefaults()
Set all registered items to their default values.
Definition: tdeconfigskeleton.cpp:939
ItemProperty * addItemProperty(const TQString &name, TQVariant &reference, const TQVariant &defaultValue=TQVariant(), const TQString &key=TQString::null)
Register a property item of type TQVariant.
Definition: tdeconfigskeleton.cpp:1028
virtual void usrWriteConfig()
Implemented by subclasses that write special config values.
Definition: tdeconfigskeleton.h:1211
bool isImmutable(const TQString &name)
Return whether a certain item is immutable.
Definition: tdeconfigskeleton.cpp:1198
ItemBool * addItemBool(const TQString &name, bool &reference, bool defaultValue=false, const TQString &key=TQString::null)
Register an item of type bool.
Definition: tdeconfigskeleton.cpp:1038
void setCurrentGroup(const TQString &group)
Set the config file group for subsequent addItem() calls.
Definition: tdeconfigskeleton.cpp:913
void addItem(TDEConfigSkeletonItem *, const TQString &name=TQString::null)
Register a custom TDEConfigSkeletonItem with a given name.
Definition: tdeconfigskeleton.cpp:988
ItemPassword * addItemPassword(const TQString &name, TQString &reference, const TQString &defaultValue=TQString::fromLatin1(""), const TQString &key=TQString::null)
Register a password item of type TQString.
Definition: tdeconfigskeleton.cpp:1008
TDEConfig * config() const
Return the TDEConfig object used for reading and writing the settings.
Definition: tdeconfigskeleton.cpp:918
ItemIntList * addItemIntList(const TQString &name, TQValueList< int > &reference, const TQValueList< int > &defaultValue=TQValueList< int >(), const TQString &key=TQString::null)
Register an item of type TQValueList<int>.
Definition: tdeconfigskeleton.cpp:1188
ItemDouble * addItemDouble(const TQString &name, double &reference, double defaultValue=0.0, const TQString &key=TQString::null)
Register an item of type double.
Definition: tdeconfigskeleton.cpp:1108
ItemDateTime * addItemDateTime(const TQString &name, TQDateTime &reference, const TQDateTime &defaultValue=TQDateTime(), const TQString &key=TQString::null)
Register an item of type TQDateTime.
Definition: tdeconfigskeleton.cpp:1168
ItemInt64 * addItemInt64(const TQString &name, TQ_INT64 &reference, TQ_INT64 defaultValue=0, const TQString &key=TQString::null)
Register an item of type TQ_INT64.
Definition: tdeconfigskeleton.cpp:1068
ItemString * addItemString(const TQString &name, TQString &reference, const TQString &defaultValue=TQString::fromLatin1(""), const TQString &key=TQString::null)
Register an item of type TQString.
Definition: tdeconfigskeleton.cpp:997
virtual void usrReadConfig()
Implemented by subclasses that read special config values.
Definition: tdeconfigskeleton.h:1204
ItemPoint * addItemPoint(const TQString &name, TQPoint &reference, const TQPoint &defaultValue=TQPoint(), const TQString &key=TQString::null)
Register an item of type TQPoint.
Definition: tdeconfigskeleton.cpp:1148
ItemUInt64 * addItemUInt64(const TQString &name, TQ_UINT64 &reference, TQ_UINT64 defaultValue=0, const TQString &key=TQString::null)
Register an item of type TQ_UINT64.
Definition: tdeconfigskeleton.cpp:1078
ItemFont * addItemFont(const TQString &name, TQFont &reference, const TQFont &defaultValue=TDEGlobalSettings::generalFont(), const TQString &key=TQString::null)
Register an item of type TQFont.
Definition: tdeconfigskeleton.cpp:1128
TDEConfigSkeleton(const TQString &configname=TQString::null)
Constructor.
Definition: tdeconfigskeleton.cpp:881
virtual void reparseConfiguration()
Clears all internal data structures and then reread configuration information from disk.
Definition: tdeconfig.cpp:161
static TDESharedConfig * sharedConfig()
Returns the general config object.
Definition: tdeglobal.cpp:72