53
59
/** Write preferences to config file */
54
60
void usrWriteConfig();
57
void setCategoryDefaults();
58
void setTimeZoneDefault();
60
/** Fill empty mail fields with default values. */
61
void fillMailDefaults();
64
63
/** Constructor disabled for public. Use instance() to create a KOPrefs
68
static KOPrefs *mInstance;
66
friend class KOPrefsPrivate;
72
void setFullName( const QString & );
74
void setEmail( const QString & );
76
/// Returns all email addresses for the user.
77
QStringList allEmails();
78
/// Returns all email addresses together with the full username for the user.
79
QStringList fullEmails();
80
/// Return true if the given email belongs to the user
81
bool thatIsMe( const QString &email );
83
void setCategoryColor( const QString &cat, const QColor &color );
84
QColor categoryColor( const QString &cat ) const;
85
bool hasCategoryColor( const QString &cat ) const;
87
69
void setResourceColor ( const QString &, const QColor & );
88
70
QColor resourceColor( const QString & );
90
void setTimeSpec( const KDateTime::Spec &spec );
91
KDateTime::Spec timeSpec();
93
QString mHtmlExportFile;
95
// Groupware passwords
96
QString mPublishPassword;
97
QString mRetrievePassword;
99
QStringList timeScaleTimezones();
72
void setHtmlExportFile( const QString &fileName );
73
QString htmlExportFile() const;
75
QStringList timeScaleTimezones() const;
100
76
void setTimeScaleTimezones( const QStringList &list );
107
83
QColor mDefaultResourceColor;
109
85
QFont mDefaultMonthViewFont;
110
QFont mDefaultAgendaTimeLabelsFont;
112
KDateTime::Spec mTimeSpec;
113
87
QStringList mTimeScaleTimeZones;
89
QString mHtmlExportFile;
91
EventViews::PrefsPtr mEventViewsPrefs;
115
93
public: // Do not use - except in KOPrefsDialogMain