summaryrefslogtreecommitdiffstats
path: root/kcontrol/privacy
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-25 00:30:47 -0600
committerTimothy Pearson <[email protected]>2013-01-25 00:30:47 -0600
commitcc74f360bb40da3d79f58048f8e8611804980aa6 (patch)
treec4385d2c16b904757b1c8bb998a4aec6993373f7 /kcontrol/privacy
parent79b21d47bce1ee428affc97534cd8b257232a871 (diff)
downloadtdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.tar.gz
tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kcontrol/privacy')
-rw-r--r--kcontrol/privacy/kprivacymanager.cpp4
-rw-r--r--kcontrol/privacy/privacy.cpp18
-rw-r--r--kcontrol/privacy/privacy.h2
3 files changed, 12 insertions, 12 deletions
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