summaryrefslogtreecommitdiffabout
path: root/kmicromail/koprefs.h
authorzautrix <zautrix>2004-10-23 11:40:59 (UTC)
committer zautrix <zautrix>2004-10-23 11:40:59 (UTC)
commit25b0233d54a6d4bea457fd843073e57183d8bea0 (patch) (unidiff)
tree4d85c3cec59e8b085738be7111c7e2bb0ee7219e /kmicromail/koprefs.h
parentba2583db0431059cd7368be23c9653e81af16d29 (diff)
downloadkdepimpi-25b0233d54a6d4bea457fd843073e57183d8bea0.zip
kdepimpi-25b0233d54a6d4bea457fd843073e57183d8bea0.tar.gz
kdepimpi-25b0233d54a6d4bea457fd843073e57183d8bea0.tar.bz2
global settings bugfixes
Diffstat (limited to 'kmicromail/koprefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/koprefs.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/kmicromail/koprefs.h b/kmicromail/koprefs.h
index a47642b..f0a4463 100644
--- a/kmicromail/koprefs.h
+++ b/kmicromail/koprefs.h
@@ -1,79 +1,77 @@
1/* 1/*
2 This file is part of KOrganizer. 2 This file is part of KOrganizer.
3 Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> 3 Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
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#ifndef KOPREFS_H 23#ifndef KOPREFS_H
24#define KOPREFS_H 24#define KOPREFS_H
25 25
26#include <qdict.h>
27 26
28#include <libkdepim/kpimprefs.h> 27#include <libkdepim/kpimprefs.h>
29 28
30class KConfig; 29class KConfig;
31class QFont; 30class QFont;
32class QColor; 31class QColor;
33class QStringList; 32class QStringList;
34 33
35class KOPrefs : public KPimPrefs 34class KOPrefs : public KPimPrefs
36{ 35{
37 public: 36 public:
38 virtual ~KOPrefs(); 37 virtual ~KOPrefs();
39 38
40 /** Get instance of KOPrefs. It is made sure that there is only one 39 /** Get instance of KOPrefs. It is made sure that there is only one
41 instance. */ 40 instance. */
42 static KOPrefs *instance(); 41 static KOPrefs *instance();
43 42
44 /** Set preferences to default values */ 43 /** Set preferences to default values */
45 void usrSetDefaults(); 44 void usrSetDefaults();
46 45
47 /** Read preferences from config file */ 46 /** Read preferences from config file */
48 void usrReadConfig(); 47 void usrReadConfig();
49 48
50 /** Write preferences to config file */ 49 /** Write preferences to config file */
51 void usrWriteConfig(); 50 void usrWriteConfig();
52 void setCategoryDefaults(){;}; 51 void setCategoryDefaults(){;};
53 52
54 protected: 53 protected:
55 54
56 /** Fill empty mail fields with default values. */ 55 /** Fill empty mail fields with default values. */
57 void fillMailDefaults(); 56 void fillMailDefaults();
58 57
59 private: 58 private:
60 /** Constructor disabled for public. Use instance() to create a KOPrefs 59 /** Constructor disabled for public. Use instance() to create a KOPrefs
61 object. */ 60 object. */
62 KOPrefs(); 61 KOPrefs();
63 62
64 static KOPrefs *mInstance; 63 static KOPrefs *mInstance;
65 QDict<QString> *mLocaleDict;
66 public: 64 public:
67 // preferences data 65 // preferences data
68 KConfig* getConfig(); 66 KConfig* getConfig();
69 QFont mAppFont; 67 QFont mAppFont;
70 QFont mComposeFont; 68 QFont mComposeFont;
71 QFont mReadFont; 69 QFont mReadFont;
72 QString mName; 70 QString mName;
73 QString mEmail; 71 QString mEmail;
74 bool mSendLater, mViewAsHtml, mUseKapi; 72 bool mSendLater, mViewAsHtml, mUseKapi;
75 private: 73 private:
76 74
77}; 75};
78 76
79#endif 77#endif