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
00024 #ifndef KOPREFS_H
00025 #define KOPREFS_H
00026
00027 #include <qdict.h>
00028
00029 #include "koprefs_base.h"
00030
00031 class KConfig;
00032 class QFont;
00033 class QColor;
00034 class QStringList;
00035
00036 QColor getTextColor(const QColor &c);
00037
00038
00039 class KOPrefs : public KOPrefsBase
00040 {
00041 public:
00042 virtual ~KOPrefs();
00043
00046 static KOPrefs *instance();
00047
00049 void usrSetDefaults();
00050
00052 void usrReadConfig();
00053
00055 void usrWriteConfig();
00056
00057 protected:
00058 void setCategoryDefaults();
00059 void setTimeZoneIdDefault();
00060
00062 void fillMailDefaults();
00063
00064 private:
00067 KOPrefs();
00068
00069 static KOPrefs *mInstance;
00070
00071 public:
00072
00073 void setFullName( const QString & );
00074 QString fullName();
00075 void setEmail( const QString & );
00076 QString email();
00077
00078 void setCategoryColor( QString cat, const QColor &color );
00079 QColor *categoryColor( QString cat );
00080
00081 QString mHtmlExportFile;
00082
00083
00084 QString mPublishPassword;
00085 QString mRetrievePassword;
00086
00087 private:
00088 QDict<QColor> mCategoryColors;
00089 QColor mDefaultCategoryColor;
00090
00091 QFont mDefaultMonthViewFont;
00092
00093 QString mName;
00094 QString mEmail;
00095 };
00096
00097 #endif
This file is part of the documentation for korganizer Library Version 3.2.2.