From cc74f360bb40da3d79f58048f8e8611804980aa6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:30:47 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- kcontrol/privacy/kprivacymanager.cpp | 4 ++-- kcontrol/privacy/privacy.cpp | 18 +++++++++--------- kcontrol/privacy/privacy.h | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'kcontrol/privacy') diff --git a/kcontrol/privacy/kprivacymanager.cpp b/kcontrol/privacy/kprivacymanager.cpp index e8da79f48..3367bbaa1 100644 --- a/kcontrol/privacy/kprivacymanager.cpp +++ b/kcontrol/privacy/kprivacymanager.cpp @@ -87,10 +87,10 @@ bool KPrivacyManager::clearSavedClipboardContents() { if(!isApplicationRegistered("klipper")) { - KConfig *c = new KConfig("klipperrc", false, false); + TDEConfig *c = new TDEConfig("klipperrc", false, false); { - KConfigGroupSaver saver(c, "General"); + TDEConfigGroupSaver saver(c, "General"); c->deleteEntry("ClipboardData"); c->sync(); } diff --git a/kcontrol/privacy/privacy.cpp b/kcontrol/privacy/privacy.cpp index 55b4246cb..6b54baac6 100644 --- a/kcontrol/privacy/privacy.cpp +++ b/kcontrol/privacy/privacy.cpp @@ -38,12 +38,12 @@ #include "privacy.h" Privacy::Privacy(TQWidget *parent, const char *name) - : KCModule(parent, name) + : TDECModule(parent, name) { setQuickHelp( i18n("The privacy module allows a user to erase traces which TDE leaves on " "the system, such as command histories or browser caches.")); - setButtons( KCModule::Default|KCModule::Apply|KCModule::Help ); + setButtons( TDECModule::Default|TDECModule::Apply|TDECModule::Help ); TDEAboutData *about = new TDEAboutData(I18N_NOOP("kcm_privacy"), I18N_NOOP("TDE Privacy Control Module"), @@ -157,13 +157,13 @@ void Privacy::load() void Privacy::load(bool useDefaults) { - KConfig *c = new KConfig("kprivacyrc", false, false); + TDEConfig *c = new TDEConfig("kprivacyrc", false, false); c->setReadDefaults( useDefaults ); // get general privacy settings { - KConfigGroupSaver saver(c, "Cleaning"); + TDEConfigGroupSaver saver(c, "Cleaning"); clearThumbnails->setOn(c->readBoolEntry("ClearThumbnails", true)); clearRunCommandHistory->setOn(c->readBoolEntry("ClearRunCommandHistory", true)); @@ -178,7 +178,7 @@ void Privacy::load(bool useDefaults) } { - KConfigGroupSaver saver(c, "P3P"); + TDEConfigGroupSaver saver(c, "P3P"); // TODO: add P3P settings here } @@ -196,9 +196,9 @@ void Privacy::defaults() void Privacy::save() { - KConfig *c = new KConfig("kprivacyrc", false, false); + TDEConfig *c = new TDEConfig("kprivacyrc", false, false); { - KConfigGroupSaver saver(c, "Cleaning"); + TDEConfigGroupSaver saver(c, "Cleaning"); c->writeEntry("ClearThumbnails", clearThumbnails->isOn()); c->writeEntry("ClearRunCommandHistory", clearRunCommandHistory->isOn()); @@ -213,7 +213,7 @@ void Privacy::save() } { - KConfigGroupSaver saver(c, "P3P"); + TDEConfigGroupSaver saver(c, "P3P"); // TODO: add settings for P3P } @@ -309,7 +309,7 @@ void Privacy::cleanup() extern "C" { - KDE_EXPORT KCModule *create_privacy(TQWidget *parent, const char * /*name*/) + KDE_EXPORT TDECModule *create_privacy(TQWidget *parent, const char * /*name*/) { TDEGlobal::locale()->insertCatalogue("privacy"); return new Privacy(parent, "Privacy"); diff --git a/kcontrol/privacy/privacy.h b/kcontrol/privacy/privacy.h index 69b061f4c..1df7c4acc 100644 --- a/kcontrol/privacy/privacy.h +++ b/kcontrol/privacy/privacy.h @@ -28,7 +28,7 @@ #include "kprivacymanager.h" #include "kprivacysettings.h" -class Privacy: public KCModule +class Privacy: public TDECModule { Q_OBJECT -- cgit v1.2.1