-rw-r--r-- | kaddressbook/kabprefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/kabprefs.h b/kaddressbook/kabprefs.h index 8f149ac..03e529f 100644 --- a/kaddressbook/kabprefs.h +++ b/kaddressbook/kabprefs.h | |||
@@ -20,71 +20,72 @@ | |||
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 | 28 | ||
29 | #include <libkdepim/kpimprefs.h> | 29 | #include <libkdepim/kpimprefs.h> |
30 | 30 | ||
31 | class KConfig; | 31 | class KConfig; |
32 | 32 | ||
33 | class KABPrefs : public KPimPrefs | 33 | class KABPrefs : public KPimPrefs |
34 | { | 34 | { |
35 | public: | 35 | public: |
36 | virtual ~KABPrefs(); | 36 | virtual ~KABPrefs(); |
37 | 37 | ||
38 | static KABPrefs *instance(); | 38 | static KABPrefs *instance(); |
39 | 39 | ||
40 | // General | 40 | // General |
41 | bool mHonorSingleClick; | 41 | bool mHonorSingleClick; |
42 | bool mAutomaticNameParsing; | 42 | bool mAutomaticNameParsing; |
43 | int mCurrentIncSearchField; | 43 | int mCurrentIncSearchField; |
44 | 44 | ||
45 | #ifdef KAB_EMBEDDED | 45 | #ifdef KAB_EMBEDDED |
46 | // US introduce a nonconst way to return the config object. | 46 | // US introduce a nonconst way to return the config object. |
47 | KConfig* getConfig(); | 47 | KConfig* getConfig(); |
48 | 48 | ||
49 | bool mToolBarHor; | 49 | bool mToolBarHor; |
50 | bool mToolBarUp; | 50 | bool mToolBarUp; |
51 | bool mAskForQuit; | 51 | bool mAskForQuit; |
52 | 52 | ||
53 | 53 | ||
54 | /** Set preferences to default values */ | 54 | /** Set preferences to default values */ |
55 | // void usrSetDefaults(); | 55 | // void usrSetDefaults(); |
56 | 56 | ||
57 | /** Read preferences from config file */ | 57 | /** Read preferences from config file */ |
58 | // void usrReadConfig(); | 58 | // void usrReadConfig(); |
59 | 59 | ||
60 | /** Write preferences to config file */ | 60 | /** Write preferences to config file */ |
61 | // void usrWriteConfig(); | 61 | // void usrWriteConfig(); |
62 | #endif //KAB_EMBEDDED | 62 | #endif //KAB_EMBEDDED |
63 | 63 | ||
64 | 64 | ||
65 | // GUI | 65 | // GUI |
66 | bool mJumpButtonBarVisible; | 66 | bool mJumpButtonBarVisible; |
67 | bool mDetailsPageVisible; | 67 | bool mDetailsPageVisible; |
68 | bool mMultipleViewsAtOnce; | ||
68 | QValueList<int> mExtensionsSplitter; | 69 | QValueList<int> mExtensionsSplitter; |
69 | QValueList<int> mDetailsSplitter; | 70 | QValueList<int> mDetailsSplitter; |
70 | 71 | ||
71 | // Extensions stuff | 72 | // Extensions stuff |
72 | int mCurrentExtension; | 73 | int mCurrentExtension; |
73 | QStringList mActiveExtensions; | 74 | QStringList mActiveExtensions; |
74 | 75 | ||
75 | // Views stuff | 76 | // Views stuff |
76 | QString mCurrentView; | 77 | QString mCurrentView; |
77 | QStringList mViewNames; | 78 | QStringList mViewNames; |
78 | 79 | ||
79 | // Filter | 80 | // Filter |
80 | int mCurrentFilter; | 81 | int mCurrentFilter; |
81 | 82 | ||
82 | void setCategoryDefaults(); | 83 | void setCategoryDefaults(); |
83 | 84 | ||
84 | private: | 85 | private: |
85 | KABPrefs(); | 86 | KABPrefs(); |
86 | 87 | ||
87 | static KABPrefs *sInstance; | 88 | static KABPrefs *sInstance; |
88 | }; | 89 | }; |
89 | 90 | ||
90 | #endif | 91 | #endif |