kaddressbook
kabprefs.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KABPREFS_H
00025 #define KABPREFS_H
00026
00027 #include <qstringlist.h>
00028 #include <kdepimmacros.h>
00029 #include "kabprefs_base.h"
00030
00031 class KConfig;
00032
00033 class KDE_EXPORT KABPrefs : public KABPrefsBase
00034 {
00035 public:
00036 virtual ~KABPrefs();
00037
00038 static KABPrefs *instance();
00039
00040 void usrReadConfig();
00041 void usrWriteConfig();
00042
00043 void setLocationMapURL( const QString &locationMapURL )
00044 {
00045 if ( !isImmutable( QString::fromLatin1( "LocationMapURL" ) ) )
00046 mLocationMapURL = locationMapURL;
00047 }
00048
00049 QString locationMapURL() const
00050 {
00051 return mLocationMapURL;
00052 }
00053
00054 void setLocationMapURLs( const QStringList &locationMapURLs )
00055 {
00056 if ( !isImmutable( QString::fromLatin1( "LocationMapURLs" ) ) )
00057 mLocationMapURLs = locationMapURLs;
00058 }
00059
00060 QStringList locationMapURLs() const
00061 {
00062 return mLocationMapURLs;
00063 }
00064
00065 QStringList customCategories() const
00066 {
00067 return mCustomCategories;
00068 }
00069
00070 void setCustomCategories(const QStringList & s)
00071 {
00072 mCustomCategories = s;
00073 }
00074
00075 void setCategoryDefaults();
00076
00077 private:
00078 KABPrefs();
00079
00080 static KABPrefs *mInstance;
00081
00082 QString mLocationMapURL;
00083 QStringList mLocationMapURLs;
00084 };
00085
00086 #endif
|