29 #include <tdemacros.h>
31 #include "koprefs_base.h"
38 TQColor getTextColor( const TQColor &c);
41 class TDE_EXPORT KOPrefs : public KOPrefsBase
48 static KOPrefs *instance();
51 void usrSetDefaults();
57 void usrWriteConfig();
60 void setCategoryDefaults();
61 void setTimeZoneIdDefault();
64 void fillMailDefaults();
71 static KOPrefs *mInstance;
75 void setFullName( const TQString & );
77 void setEmail( const TQString & );
80 TQStringList allEmails();
82 TQStringList fullEmails();
84 bool thatIsMe( const TQString& email );
86 void setCategoryColor( const TQString &cat, const TQColor &color );
87 TQColor *categoryColor( const TQString &cat );
88 bool hasCategoryColor( const TQString &cat ) const;
90 void setResourceColor ( const TQString &, const TQColor & );
91 TQColor* resourceColor( const TQString & );
93 TQString mHtmlExportFile;
96 TQString mPublishPassword;
97 TQString mRetrievePassword;
100 TQDict<TQColor> mCategoryColors;
101 TQColor mDefaultCategoryColor;
103 TQDict<TQColor> mResourceColors;
104 TQColor mDefaultResourceColor;
106 TQFont mDefaultTimeBarFont;
107 TQFont mDefaultMonthViewFont;
109 TQStringList mMyAddrBookMails;
|