koprefs.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KOPREFS_H
00024 #define KOPREFS_H
00025
00026 #include <qdict.h>
00027
00028 #include <libkdepim/kpimprefs.h>
00029
00030 class KConfig;
00031 class QFont;
00032 class QColor;
00033 class QStringList;
00034
00035 class KOPrefs : public KPimPrefs
00036 {
00037 public:
00038 enum { FormatVCalendar, FormatICalendar };
00039 enum { MailClientKMail, MailClientSendmail };
00040 enum { IMIPDummy, IMIPKMail };
00041 enum { IMIPOutbox, IMIPdirectsend };
00042 enum { neverAuto, addressbookAuto, selectedAuto };
00043
00044 virtual ~KOPrefs();
00045
00048 static KOPrefs *instance();
00049
00051 void usrSetDefaults();
00052
00054 void usrReadConfig();
00055
00057 void usrWriteConfig();
00058
00059 protected:
00060 void setCategoryDefaults();
00061 void setTimeZoneIdDefault();
00062
00064 void fillMailDefaults();
00065
00066 private:
00069 KOPrefs();
00070
00071 static KOPrefs *mInstance;
00072
00073 public:
00074
00075 void setFullName(const QString &);
00076 QString fullName();
00077 void setEmail(const QString &);
00078 QString email();
00079
00080 QString mAdditional;
00081
00082 bool mEmailControlCenter;
00083
00084 bool mBcc;
00085 bool mAutoSave;
00086 int mAutoSaveInterval;
00087 bool mConfirm;
00088
00089 bool mEnableGroupScheduling;
00090 bool mEnableProjectView;
00091
00092 int mDefaultFormat;
00093 int mMailClient;
00094
00095 QString mTimeZone;
00096 QString mTimeZoneId;
00097 int mStartTime;
00098 int mDefaultDuration;
00099 int mAlarmTime;
00100 int mDaylightSavings;
00101
00102 int mWorkingHoursStart;
00103 int mWorkingHoursEnd;
00104 bool mExcludeHolidays;
00105 bool mExcludeSaturdays;
00106 bool mMarcusBainsShowSeconds;
00107
00108 QFont mTimeBarFont;
00109 QFont mMonthViewFont;
00110 QFont mAgendaViewFont;
00111 QFont mMarcusBainsFont;
00112
00113 QColor mHolidayColor;
00114 QColor mHighlightColor;
00115 QColor mEventColor;
00116 QColor mAgendaBgColor;
00117 QColor mWorkingHoursColor;
00118 QColor mTodoDueTodayColor;
00119 QColor mTodoOverdueColor;
00120
00121 int mDayBegins;
00122 int mHourSize;
00123 bool mDailyRecur;
00124 bool mWeeklyRecur;
00125 bool mEnableToolTips;
00126 bool mEnableMonthScroll;
00127 bool mFullViewMonth;
00128 bool mMonthViewUsesCategoryColor;
00129 bool mFullViewTodo;
00130 bool mMarcusBainsEnabled;
00131 int mNextXDays;
00132
00133 bool mCompactDialogs;
00134 bool mVerticalScreen;
00135
00136 void setCategoryColor(QString cat,const QColor & color);
00137 QColor *categoryColor(QString cat);
00138
00139 QString mArchiveFile;
00140 QString mHtmlExportFile;
00141 bool mHtmlWithSave;
00142
00143 QStringList mSelectedPlugins;
00144
00145 int mIMIPScheduler;
00146 int mIMIPSend;
00147 QStringList mAdditionalMails;
00148 int mIMIPAutoRefresh;
00149 int mIMIPAutoInsertReply;
00150 int mIMIPAutoInsertRequest;
00151 int mIMIPAutoFreeBusy;
00152 int mIMIPAutoFreeBusyReply;
00153
00154 QStringList mTodoTemplates;
00155 QStringList mEventTemplates;
00156
00157 private:
00158 QDict<QColor> mCategoryColors;
00159 QColor mDefaultCategoryColor;
00160
00161 QFont mDefaultTimeBarFont;
00162 QFont mDefaultViewFont;
00163 QFont mDefaultMonthViewFont;
00164
00165 QString mName;
00166 QString mEmail;
00167 };
00168
00169 #endif
This file is part of the documentation for kdelibs Version 3.1.4.