summaryrefslogtreecommitdiffabout
path: root/kaddressbook/kabprefs.h
Unidiff
Diffstat (limited to 'kaddressbook/kabprefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabprefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kaddressbook/kabprefs.h b/kaddressbook/kabprefs.h
index 4a3b6e2..1098f4c 100644
--- a/kaddressbook/kabprefs.h
+++ b/kaddressbook/kabprefs.h
@@ -12,32 +12,33 @@
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23 23
24#ifndef KABPREFS_H 24#ifndef KABPREFS_H
25#define KABPREFS_H 25#define KABPREFS_H
26 26
27#include <qstringlist.h> 27#include <qstringlist.h>
28#include <qdict.h>
28 29
29#include <libkdepim/kpimprefs.h> 30#include <libkdepim/kpimprefs.h>
30 31
31class KConfig; 32class KConfig;
32 33
33class KABPrefs : public KPimPrefs 34class KABPrefs : public KPimPrefs
34{ 35{
35 public: 36 public:
36 virtual ~KABPrefs(); 37 virtual ~KABPrefs();
37 38
38 static KABPrefs *instance(); 39 static KABPrefs *instance();
39 40
40 // General 41 // General
41 bool mHonorSingleClick; 42 bool mHonorSingleClick;
42 bool mAutomaticNameParsing; 43 bool mAutomaticNameParsing;
43 int mCurrentIncSearchField; 44 int mCurrentIncSearchField;
@@ -47,47 +48,49 @@ class KABPrefs : public KPimPrefs
47 KConfig* getConfig(); 48 KConfig* getConfig();
48 49
49 bool mToolBarHor; 50 bool mToolBarHor;
50 bool mToolBarUp; 51 bool mToolBarUp;
51 bool mAskForQuit; 52 bool mAskForQuit;
52 53
53 54
54 /** Set preferences to default values */ 55 /** Set preferences to default values */
55// void usrSetDefaults(); 56// void usrSetDefaults();
56 57
57 /** Read preferences from config file */ 58 /** Read preferences from config file */
58// void usrReadConfig(); 59// void usrReadConfig();
59 60
60 /** Write preferences to config file */ 61 /** Write preferences to config file */
61// void usrWriteConfig(); 62// void usrWriteConfig();
62#endif //KAB_EMBEDDED 63#endif //KAB_EMBEDDED
64 void usrReadConfig();
63 65
64 66
65 // GUI 67 // GUI
66 bool mJumpButtonBarVisible; 68 bool mJumpButtonBarVisible;
67 bool mDetailsPageVisible; 69 bool mDetailsPageVisible;
68 bool mMultipleViewsAtOnce; 70 bool mMultipleViewsAtOnce;
69 bool mSearchWithReturn; 71 bool mSearchWithReturn;
70 QValueList<int> mExtensionsSplitter; 72 QValueList<int> mExtensionsSplitter;
71 QValueList<int> mDetailsSplitter; 73 QValueList<int> mDetailsSplitter;
72 74
73 // Extensions stuff 75 // Extensions stuff
74 int mCurrentExtension; 76 int mCurrentExtension;
75 QStringList mActiveExtensions; 77 QStringList mActiveExtensions;
76 78
77 // Views stuff 79 // Views stuff
78 QString mCurrentView; 80 QString mCurrentView;
79 QStringList mViewNames; 81 QStringList mViewNames;
80 82
81 // Filter 83 // Filter
82 int mCurrentFilter; 84 int mCurrentFilter;
83 85
84 void setCategoryDefaults(); 86 void setCategoryDefaults();
85 QFont mDetailsFont; 87 QFont mDetailsFont;
86 88
87 private: 89 private:
88 KABPrefs(); 90 KABPrefs();
89 91
92 QDict<QString> *mLocaleDict;
90 static KABPrefs *sInstance; 93 static KABPrefs *sInstance;
91}; 94};
92 95
93#endif 96#endif