summaryrefslogtreecommitdiffabout
path: root/kmicromail/koprefs.h
authorzautrix <zautrix>2004-09-15 06:15:59 (UTC)
committer zautrix <zautrix>2004-09-15 06:15:59 (UTC)
commit35b8948c6c203473866c74f1d13185a848454e04 (patch) (unidiff)
treeb6d8eca9863cbca8e24d474d8c895065faa17458 /kmicromail/koprefs.h
parentf1f43030eefa765950cb501aece6cc71fb4e9859 (diff)
downloadkdepimpi-35b8948c6c203473866c74f1d13185a848454e04.zip
kdepimpi-35b8948c6c203473866c74f1d13185a848454e04.tar.gz
kdepimpi-35b8948c6c203473866c74f1d13185a848454e04.tar.bz2
Mail config added
Diffstat (limited to 'kmicromail/koprefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/koprefs.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/kmicromail/koprefs.h b/kmicromail/koprefs.h
new file mode 100644
index 0000000..c42d787
--- a/dev/null
+++ b/kmicromail/koprefs.h
@@ -0,0 +1,81 @@
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
4
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
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
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
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution.
22*/
23#ifndef KOPREFS_H
24#define KOPREFS_H
25
26#include <qdict.h>
27
28#include <libkdepim/kpimprefs.h>
29
30class KConfig;
31class QFont;
32class QColor;
33class QStringList;
34
35class KOPrefs : public KPimPrefs
36{
37 public:
38 virtual ~KOPrefs();
39
40 /** Get instance of KOPrefs. It is made sure that there is only one
41 instance. */
42 static KOPrefs *instance();
43
44 /** Set preferences to default values */
45 void usrSetDefaults();
46
47 /** Read preferences from config file */
48 void usrReadConfig();
49
50 /** Write preferences to config file */
51 void usrWriteConfig();
52 void setCategoryDefaults(){;};
53
54 protected:
55 void setTimeZoneIdDefault();
56
57 /** Fill empty mail fields with default values. */
58 void fillMailDefaults();
59
60 private:
61 /** Constructor disabled for public. Use instance() to create a KOPrefs
62 object. */
63 KOPrefs();
64
65 static KOPrefs *mInstance;
66 QDict<QString> *mLocaleDict;
67 public:
68 // preferences data
69 KConfig* getConfig();
70 QFont mAppFont;
71 QFont mComposeFont;
72 QFont mReadFont;
73 QFont mTimeZoneId;
74 QString mName;
75 QString mEmail;
76 bool mSendLater, mViewAsHtml, mUseKapi;
77 private:
78
79};
80
81#endif