summaryrefslogtreecommitdiffabout
path: root/libkdepim/kcmconfigs/kcmkdepimconfig.cpp
Side-by-side diff
Diffstat (limited to 'libkdepim/kcmconfigs/kcmkdepimconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/kcmconfigs/kcmkdepimconfig.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/libkdepim/kcmconfigs/kcmkdepimconfig.cpp b/libkdepim/kcmconfigs/kcmkdepimconfig.cpp
index 830d5d2..f26efe0 100644
--- a/libkdepim/kcmconfigs/kcmkdepimconfig.cpp
+++ b/libkdepim/kcmconfigs/kcmkdepimconfig.cpp
@@ -40,15 +40,17 @@ $Id$
#include "kcmkdepimconfig.h"
#include "kprefs.h"
-#include "kpimprefs.h"
+#include "kpimglobalprefs.h"
+
#ifndef _WIN32_
extern "C"
{
- KCModule *create_kabconfig( QWidget *parent, const char * ) {
- return new KCMKdePimConfig( parent, "kcmkdepimconfig" );
+ KCModule *create_kabconfig( KPimGlobalPrefs* prefs, QWidget *parent, const char * ) {
+ return new KCMKdePimConfig( prefs, parent, "kcmkdepimconfig" );
}
}
#endif
-KCMKdePimConfig::KCMKdePimConfig( QWidget *parent, const char *name )
- : KCModule( parent, name )
+
+KCMKdePimConfig::KCMKdePimConfig( KPimGlobalPrefs* prefs, QWidget *parent, const char *name )
+ : KCModule( prefs, parent, name )
{
//abort();
@@ -62,16 +64,16 @@ KCMKdePimConfig::KCMKdePimConfig( QWidget *parent, const char *name )
}
-void KCMKdePimConfig::load(KPrefs* prefs)
+void KCMKdePimConfig::load()
{
- mConfigWidget->restoreSettings((KPimPrefs*)prefs);
+ mConfigWidget->restoreSettings((KPimGlobalPrefs*)getPreferences());
}
-void KCMKdePimConfig::save(KPrefs* prefs)
+void KCMKdePimConfig::save()
{
- mConfigWidget->saveSettings((KPimPrefs*)prefs);
+ mConfigWidget->saveSettings((KPimGlobalPrefs*)getPreferences());
}
-void KCMKdePimConfig::defaults(KPrefs* prefs)
+void KCMKdePimConfig::defaults()
{
- mConfigWidget->defaults((KPimPrefs*)prefs);
+ mConfigWidget->defaults((KPimGlobalPrefs*)getPreferences());
}