-rw-r--r-- | microkde/kconfig.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/microkde/kconfig.h b/microkde/kconfig.h index a01b1a5..1a1038f 100644 --- a/microkde/kconfig.h +++ b/microkde/kconfig.h | |||
@@ -53,48 +53,49 @@ class KConfig | |||
53 | */ | 53 | */ |
54 | bool hasGroup(const QString &group) const; | 54 | bool hasGroup(const QString &group) const; |
55 | 55 | ||
56 | 56 | ||
57 | QString getFileName(); | 57 | QString getFileName(); |
58 | 58 | ||
59 | //US added method readIntListEntry | 59 | //US added method readIntListEntry |
60 | QValueList<int> readIntListEntry( const QString &); | 60 | QValueList<int> readIntListEntry( const QString &); |
61 | 61 | ||
62 | int readNumEntry( const QString &, int def=0 ); | 62 | int readNumEntry( const QString &, int def=0 ); |
63 | QString readEntry( const QString &, const QString &def=QString::null ); | 63 | QString readEntry( const QString &, const QString &def=QString::null ); |
64 | QStringList readListEntry( const QString & ); | 64 | QStringList readListEntry( const QString & ); |
65 | bool readBoolEntry( const QString &, bool def=false ); | 65 | bool readBoolEntry( const QString &, bool def=false ); |
66 | QColor readColorEntry( const QString &, QColor * ); | 66 | QColor readColorEntry( const QString &, QColor * ); |
67 | QFont readFontEntry( const QString &, QFont * ); | 67 | QFont readFontEntry( const QString &, QFont * ); |
68 | QDateTime readDateTimeEntry( const QString &, const QDateTime *pDefault = 0 ); | 68 | QDateTime readDateTimeEntry( const QString &, const QDateTime *pDefault = 0 ); |
69 | 69 | QSize readSizeEntry(const QString &, QSize* ); | |
70 | bool hasKey( const QString &); | 70 | bool hasKey( const QString &); |
71 | 71 | ||
72 | void writeEntry( const QString &, const QValueList<int>& ); | 72 | void writeEntry( const QString &, const QValueList<int>& ); |
73 | void writeEntry( const QString &, int ); | 73 | void writeEntry( const QString &, int ); |
74 | void writeEntry( const QString &key , unsigned int value) { writeEntry( key, int( value ) ); } | 74 | void writeEntry( const QString &key , unsigned int value) { writeEntry( key, int( value ) ); } |
75 | void writeEntry( const char *key , unsigned int value) { writeEntry( QString( key ), value ); } | 75 | void writeEntry( const char *key , unsigned int value) { writeEntry( QString( key ), value ); } |
76 | void writeEntry( const char *key, int value ) { writeEntry( QString( key ), value ); } | 76 | void writeEntry( const char *key, int value ) { writeEntry( QString( key ), value ); } |
77 | void writeEntry( const QString &, const QString & ); | 77 | void writeEntry( const QString &, const QString & ); |
78 | void writeEntry( const char *key, const QString &value ) { writeEntry( QString( key ), value ); } | 78 | void writeEntry( const char *key, const QString &value ) { writeEntry( QString( key ), value ); } |
79 | void writeEntry( const QString &, const QStringList & ); | 79 | void writeEntry( const QString &, const QStringList & ); |
80 | void writeEntry( const QString &, bool ); | 80 | void writeEntry( const QString &, bool ); |
81 | void writeEntry( const char *key, bool value ) { writeEntry( QString( key ), value ); } | 81 | void writeEntry( const char *key, bool value ) { writeEntry( QString( key ), value ); } |
82 | void writeEntry( const QString &, const QColor & ); | 82 | void writeEntry( const QString &, const QColor & ); |
83 | void writeEntry( const QString &, const QFont & ); | 83 | void writeEntry( const QString &, const QFont & ); |
84 | void writeEntry( const QString &, const QDateTime & ); | 84 | void writeEntry( const QString &, const QDateTime & ); |
85 | void writeEntry( const QString &, const QSize & ); | ||
85 | 86 | ||
86 | void deleteEntry( const QString &); | 87 | void deleteEntry( const QString &); |
87 | 88 | ||
88 | void load(); | 89 | void load(); |
89 | void sync(); | 90 | void sync(); |
90 | 91 | ||
91 | private: | 92 | private: |
92 | static QString mGroup; | 93 | static QString mGroup; |
93 | QString mTempGroup; | 94 | QString mTempGroup; |
94 | 95 | ||
95 | QString mFileName; | 96 | QString mFileName; |
96 | 97 | ||
97 | QMap<QString,bool> mBoolMap; | 98 | QMap<QString,bool> mBoolMap; |
98 | QMap<QString,QString> mStringMap; | 99 | QMap<QString,QString> mStringMap; |
99 | QMap<QString,QDateTime> mDateTimeMap; | 100 | QMap<QString,QDateTime> mDateTimeMap; |
100 | 101 | ||