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 <tqdict.h>
00028
00029 #include <tdepimmacros.h>
00030
00031 #include "koprefs_base.h"
00032
00033 class TDEConfig;
00034 class TQFont;
00035 class TQColor;
00036 class TQStringList;
00037
00038 TQColor getTextColor(const TQColor &c);
00039
00040
00041 class KDE_EXPORT KOPrefs : public KOPrefsBase
00042 {
00043 public:
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 TQString & );
00076 TQString fullName();
00077 void setEmail( const TQString & );
00078 TQString email();
00080 TQStringList allEmails();
00082 TQStringList fullEmails();
00084 bool thatIsMe( const TQString& email );
00085
00086 void setCategoryColor( const TQString &cat, const TQColor &color );
00087 TQColor *categoryColor( const TQString &cat );
00088 bool hasCategoryColor( const TQString &cat ) const;
00089
00090 void setResourceColor ( const TQString &, const TQColor & );
00091 TQColor* resourceColor( const TQString & );
00092
00093 TQString mHtmlExportFile;
00094
00095
00096 TQString mPublishPassword;
00097 TQString mRetrievePassword;
00098
00099 private:
00100 TQDict<TQColor> mCategoryColors;
00101 TQColor mDefaultCategoryColor;
00102
00103 TQDict<TQColor> mResourceColors;
00104 TQColor mDefaultResourceColor;
00105
00106 TQFont mDefaultTimeBarFont;
00107 TQFont mDefaultMonthViewFont;
00108
00109 TQStringList mMyAddrBookMails;
00110
00111 public:
00112 TQString mName;
00113 TQString mEmail;
00114 };
00115
00116 #endif