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.h~304
1 files changed, 304 insertions, 0 deletions
diff --git a/kmicromail/koprefs.h~ b/kmicromail/koprefs.h~
new file mode 100644
index 0000000..a9ac52f
--- a/dev/null
+++ b/kmicromail/koprefs.h~
@@ -0,0 +1,304 @@
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 enum { FormatVCalendar, FormatICalendar };
39 enum { MailClientKMail, MailClientSendmail };
40 enum { IMIPDummy, IMIPKMail };
41 enum { IMIPOutbox, IMIPdirectsend };
42 enum { neverAuto, addressbookAuto, selectedAuto };
43 enum { standardDestination, askDestination };
44
45 virtual ~KOPrefs();
46
47 /** Get instance of KOPrefs. It is made sure that there is only one
48 instance. */
49 static KOPrefs *instance();
50
51 /** Set preferences to default values */
52 void usrSetDefaults();
53
54 /** Read preferences from config file */
55 void usrReadConfig();
56
57 /** Write preferences to config file */
58 void usrWriteConfig();
59 void setCategoryDefaults();
60
61 protected:
62 void setTimeZoneIdDefault();
63
64 /** Fill empty mail fields with default values. */
65 void fillMailDefaults();
66
67 private:
68 /** Constructor disabled for public. Use instance() to create a KOPrefs
69 object. */
70 KOPrefs();
71
72 static KOPrefs *mInstance;
73 QDict<QString> *mLocaleDict;
74 QStringList getDefaultList();
75 public:
76 // preferences data
77 KConfig* getConfig();
78 void setFullName(const QString &);
79 QString fullName();
80 void setEmail(const QString &);
81 QString email();
82
83 QString mAdditional;
84
85 bool mEmailControlCenter;
86
87 bool mBcc;
88 bool mAutoSave;
89 int mAutoSaveInterval;
90 bool mConfirm;
91
92 bool mEnableGroupScheduling;
93 bool mEnableProjectView;
94
95 int mDefaultFormat;
96 int mMailClient;
97
98 QString mTimeZone;
99 QString mTimeZoneId;
100 //QString mTimeZoneName; // e.g. +00:04:00 Indian/Mauritius
101 //int mTimeZoneOffset; // e.g. -240 min
102 bool mUseDaylightsaving;
103 int mDaylightsavingStart;
104 int mDaylightsavingEnd;
105 int mStartTime;
106 int mDefaultDuration;
107 int mAlarmTime;
108 int mDaylightSavings;
109
110 int mWorkingHoursStart;
111 int mWorkingHoursEnd;
112 bool mExcludeHolidays;
113 bool mExcludeSaturdays;
114 bool mMarcusBainsShowSeconds;
115
116 QFont mTimeBarFont;
117 QFont mMonthViewFont;
118 QFont mAgendaViewFont;
119 QFont mMarcusBainsFont;
120 QFont mTimeLabelsFont;
121 QFont mTodoViewFont;
122 QFont mListViewFont;
123 QFont mDateNavigatorFont;
124 QFont mEditBoxFont;
125 QFont mJornalViewFont;
126 QFont mWhatsNextFont;
127 QFont mEventViewFont;
128
129
130
131
132 QColor mHolidayColor;
133 QColor mHighlightColor;
134 QColor mEventColor;
135 QColor mAgendaBgColor;
136 QColor mWorkingHoursColor;
137 QColor mTodoDueTodayColor;
138 QColor mTodoOverdueColor;
139 QColor mMonthViewEvenColor;
140 QColor mMonthViewOddColor;
141 QColor mMonthViewHolidayColor;
142 bool mMonthViewUsesDayColors;
143 bool mMonthViewSatSunTog;
144 QColor mAppColor1;
145 QColor mAppColor2;
146 bool mUseAppColors;
147
148 int mDayBegins;
149 int mHourSize;
150 int mAllDaySize;
151 bool mShowFullMenu;
152 bool mDailyRecur;
153 bool mWeeklyRecur;
154 bool mMonthDailyRecur;
155 bool mMonthWeeklyRecur;
156 bool mMonthShowIcons;
157 bool mMonthShowShort;
158 bool mEnableToolTips;
159 bool mEnableMonthScroll;
160 bool mFullViewMonth;
161 bool mMonthViewUsesCategoryColor;
162 bool mFullViewTodo;
163 bool mShowCompletedTodo;
164 bool mMarcusBainsEnabled;
165 int mNextXDays;
166 int mWhatsNextDays;
167 int mWhatsNextPrios;
168 bool mEnableQuickTodo;
169 bool mLanguageChanged;
170
171 bool mCompactDialogs;
172 bool mVerticalScreen;
173
174 bool mShowIconNewTodo;
175 bool mShowIconNewEvent;
176 bool mShowIconSearch;
177 bool mShowIconList;
178 bool mShowIconDay1;
179 bool mShowIconDay5;
180 bool mShowIconDay7;
181 bool mShowIconMonth;
182 bool mShowIconTodoview;
183 bool mShowIconBackFast;
184 bool mShowIconBack;
185 bool mShowIconToday;
186 bool mShowIconForward;
187 bool mShowIconForwardFast;
188 bool mShowIconWhatsThis;
189 bool mShowIconNextDays;
190 bool mShowIconNext;
191 bool mShowIconJournal;
192
193 bool mShowIconStretch;
194
195 bool mToolBarHor;
196 bool mToolBarUp;
197 bool mToolBarMiniIcons;
198
199 bool mAskForQuit;
200 bool mUsePassWd;
201 bool mWriteBackFile;
202 int mWriteBackInFuture;
203 bool mAskForPreferences;
204 bool mShowSyncSummary;
205 bool mShowSyncEvents;
206 bool mShowTodoInAgenda;
207 bool mWriteBackExistingOnly;
208
209 QString mRemoteIP;
210 QString mRemoteUser;
211 QString mRemotePassWd;
212 QString mRemoteFile;
213 QString mLocalTempFile;
214 QString mPhoneDevice;
215 QString mPhoneConnection;
216 QString mPhoneModel;
217
218 int mLastSyncTime;
219 int mSyncAlgoPrefs;
220 int mRingSyncAlgoPrefs;
221 QStringList mSyncProfileNames;
222 QStringList mExternSyncProfiles;
223 QString mLocalMachineName;
224 void setCategoryColor(QString cat,const QColor & color);
225 QColor *categoryColor(QString cat);
226
227 QString mArchiveFile;
228 QString mHtmlExportFile;
229 bool mHtmlWithSave;
230
231 QStringList mSelectedPlugins;
232
233 QString mLastImportFile;
234 QString mLastVcalFile;
235 QString mLastSaveFile;
236 QString mLastLoadFile;
237 QString mLastSyncedLocalFile;
238
239
240 QString mDefaultAlarmFile;
241 int mIMIPScheduler;
242 int mIMIPSend;
243 QStringList mAdditionalMails;
244 int mIMIPAutoRefresh;
245 int mIMIPAutoInsertReply;
246 int mIMIPAutoInsertRequest;
247 int mIMIPAutoFreeBusy;
248 int mIMIPAutoFreeBusyReply;
249
250 QStringList mTodoTemplates;
251 QStringList mEventTemplates;
252
253 int mDestination;
254
255
256 bool mEditOnDoubleClick;
257 bool mViewChangeHoldFullscreen;
258 bool mViewChangeHoldNonFullscreen;
259 bool mCenterOnCurrentTime;
260 bool mSetTimeToDayStartAt;
261 bool mHighlightCurrentDay;
262 bool mUseHighlightLightColor;
263 bool mListViewMonthTimespan;
264 bool mWNViewShowsParents;
265 bool mWNViewShowLocation;
266 bool mTodoViewShowsPercentage;
267 bool mTodoViewUsesCatColors;
268 bool mTodoViewUsesSmallFont;
269 bool mTodoViewUsesForegroundColor;
270 bool mMonthViewUsesForegroundColor;
271
272 bool mHightlightDateTimeEdit;
273 int mPreferredLanguage;
274 bool mUseQuicksave;
275 int mPreferredTime;
276 int mPreferredDate;
277 bool mWeekStartsOnSunday;
278 bool mShortDateInViewer;
279 QString mUserDateFormatLong;
280 QString mUserDateFormatShort;
281
282 QStringList mLocationDefaults;
283 QStringList mEventSummaryUser;
284 QStringList mTodoSummaryUser;
285
286 bool mUseInternalAlarmNotification;
287 int mAlarmPlayBeeps;
288 int mAlarmSuspendTime;
289 int mAlarmSuspendCount;
290 int mAlarmBeepInterval;
291
292 private:
293 QDict<QColor> mCategoryColors;
294 QColor mDefaultCategoryColor;
295
296 QFont mDefaultTimeBarFont;
297 QFont mDefaultViewFont;
298 QFont mDefaultMonthViewFont;
299
300 QString mName;
301 QString mEmail;
302};
303
304#endif