korganizer Library API Documentation

koprefs.h

00001 /*
00002     This file is part of KOrganizer.
00003 
00004     Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019 
00020     As a special exception, permission is given to link this program
00021     with any edition of Qt, and distribute the resulting executable,
00022     without including the source code for Qt in the source distribution.
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     // preferences data
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     // Groupware passwords
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
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:30 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003