kpimprefs.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <kglobal.h>
00025 #include <kconfig.h>
00026 #include <klocale.h>
00027 #include <kdebug.h>
00028
00029 #include "kpimprefs.h"
00030
00031 KPimPrefs::KPimPrefs() :
00032 KPrefs("")
00033 {
00034 }
00035
00036 KPimPrefs::KPimPrefs(const QString& configname) :
00037 KPrefs(configname)
00038 {
00039 }
00040
00041 KPimPrefs::~KPimPrefs()
00042 {
00043 }
00044
00045 void KPimPrefs::usrSetDefaults()
00046 {
00047 setCategoryDefaults();
00048 }
00049
00050 void KPimPrefs::usrReadConfig()
00051 {
00052 kdDebug(5300) << "KPimPrefs::usrReadConfig()" << endl;
00053
00054 config()->setGroup("General");
00055 mCustomCategories = config()->readListEntry("Custom Categories");
00056 if (mCustomCategories.isEmpty()) setCategoryDefaults();
00057 }
00058
00059
00060 void KPimPrefs::usrWriteConfig()
00061 {
00062 config()->setGroup("General");
00063 config()->writeEntry("Custom Categories",mCustomCategories);
00064 }
This file is part of the documentation for kdelibs Version 3.1.5.