summaryrefslogtreecommitdiffabout
path: root/kaddressbook/kabprefs.h
Unidiff
Diffstat (limited to 'kaddressbook/kabprefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabprefs.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/kaddressbook/kabprefs.h b/kaddressbook/kabprefs.h
index c81a9a9..8f149ac 100644
--- a/kaddressbook/kabprefs.h
+++ b/kaddressbook/kabprefs.h
@@ -1,100 +1,90 @@
1/* 1/*
2 This file is part of KAddressBook. 2 This file is part of KAddressBook.
3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
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 28
29#include <libkdepim/kpimprefs.h> 29#include <libkdepim/kpimprefs.h>
30 30
31class KConfig; 31class KConfig;
32 32
33class KABPrefs : public KPimPrefs 33class 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 enum EMailClients {
41 OMPI = 0,
42 QTOPIA = 1,
43 OPIE = 2,
44 OTHER = 3
45 };
46
47
48 // General 40 // General
49 bool mHonorSingleClick; 41 bool mHonorSingleClick;
50 bool mAutomaticNameParsing; 42 bool mAutomaticNameParsing;
51 int mCurrentIncSearchField; 43 int mCurrentIncSearchField;
52 44
53#ifdef KAB_EMBEDDED 45#ifdef KAB_EMBEDDED
54 // US introduce a nonconst way to return the config object. 46 // US introduce a nonconst way to return the config object.
55 KConfig* getConfig(); 47 KConfig* getConfig();
56 48
57 bool mToolBarHor; 49 bool mToolBarHor;
58 bool mToolBarUp; 50 bool mToolBarUp;
59 bool mAskForQuit; 51 bool mAskForQuit;
60 52
61 int mEmailClient;
62 QString mEmailChannel;
63 53
64 /** Set preferences to default values */ 54 /** Set preferences to default values */
65// void usrSetDefaults(); 55// void usrSetDefaults();
66 56
67 /** Read preferences from config file */ 57 /** Read preferences from config file */
68// void usrReadConfig(); 58// void usrReadConfig();
69 59
70 /** Write preferences to config file */ 60 /** Write preferences to config file */
71// void usrWriteConfig(); 61// void usrWriteConfig();
72#endif //KAB_EMBEDDED 62#endif //KAB_EMBEDDED
73 63
74 64
75 // GUI 65 // GUI
76 bool mJumpButtonBarVisible; 66 bool mJumpButtonBarVisible;
77 bool mDetailsPageVisible; 67 bool mDetailsPageVisible;
78 QValueList<int> mExtensionsSplitter; 68 QValueList<int> mExtensionsSplitter;
79 QValueList<int> mDetailsSplitter; 69 QValueList<int> mDetailsSplitter;
80 70
81 // Extensions stuff 71 // Extensions stuff
82 int mCurrentExtension; 72 int mCurrentExtension;
83 QStringList mActiveExtensions; 73 QStringList mActiveExtensions;
84 74
85 // Views stuff 75 // Views stuff
86 QString mCurrentView; 76 QString mCurrentView;
87 QStringList mViewNames; 77 QStringList mViewNames;
88 78
89 // Filter 79 // Filter
90 int mCurrentFilter; 80 int mCurrentFilter;
91 81
92 void setCategoryDefaults(); 82 void setCategoryDefaults();
93 83
94 private: 84 private:
95 KABPrefs(); 85 KABPrefs();
96 86
97 static KABPrefs *sInstance; 87 static KABPrefs *sInstance;
98}; 88};
99 89
100#endif 90#endif