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();
00078
QStringList allEmails();
00080
bool thatIsMe(
const QString& email );
00081
00082
void setCategoryColor(
QString cat,
const QColor &color );
00083
QColor *categoryColor(
QString cat );
00084
00085
QString mHtmlExportFile;
00086
00087
00088
QString mPublishPassword;
00089
QString mRetrievePassword;
00090
00091
private:
00092
QDict<QColor> mCategoryColors;
00093
QColor mDefaultCategoryColor;
00094
00095
QFont mDefaultMonthViewFont;
00096
00097
public:
00098
QString mName;
00099
QString mEmail;
00100 };
00101
00102
#endif