diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:30:47 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:30:47 -0600 |
commit | cc74f360bb40da3d79f58048f8e8611804980aa6 (patch) | |
tree | c4385d2c16b904757b1c8bb998a4aec6993373f7 /ksplashml/kcmksplash | |
parent | 79b21d47bce1ee428affc97534cd8b257232a871 (diff) | |
download | tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.tar.gz tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'ksplashml/kcmksplash')
-rw-r--r-- | ksplashml/kcmksplash/installer.cpp | 28 | ||||
-rw-r--r-- | ksplashml/kcmksplash/main.cpp | 4 |
2 files changed, 16 insertions, 16 deletions
diff --git a/ksplashml/kcmksplash/installer.cpp b/ksplashml/kcmksplash/installer.cpp index a1fa7a033..1e17a301a 100644 --- a/ksplashml/kcmksplash/installer.cpp +++ b/ksplashml/kcmksplash/installer.cpp @@ -171,10 +171,10 @@ void SplashInstaller::addNewTheme(const KURL &srcURL) url.setPath(locateLocal("tmp",filename)); // Remove file from temporary directory if it aleady exists - usually the result of a failed install. - if ( KIO::NetAccess::exists( url, true, 0 ) ) - KIO::NetAccess::del( url, 0 ); + if ( TDEIO::NetAccess::exists( url, true, 0 ) ) + TDEIO::NetAccess::del( url, 0 ); - bool rc = KIO::NetAccess::copy(srcURL, url, 0); + bool rc = TDEIO::NetAccess::copy(srcURL, url, 0); if (!rc) { kdWarning() << "Failed to copy theme " << srcURL.fileName() @@ -208,7 +208,7 @@ void SplashInstaller::addNewTheme(const KURL &srcURL) // TODO: Warn the user if we overwrite something. ad->copyTo(locateLocal("ksplashthemes","/")); tarFile.close(); - KIO::NetAccess::del( url, 0 ); + TDEIO::NetAccess::del( url, 0 ); // TODO: Update only the entries from this installation. readThemesList(); @@ -258,7 +258,7 @@ void SplashInstaller::load() void SplashInstaller::load( bool useDefaults ) { - KConfig cnf("ksplashrc"); + TDEConfig cnf("ksplashrc"); cnf.setReadDefaults( useDefaults ); cnf.setGroup("KSplash"); TQString curTheme = cnf.readEntry("Theme","Default"); @@ -269,7 +269,7 @@ void SplashInstaller::load( bool useDefaults ) //----------------------------------------------------------------------------- void SplashInstaller::save() { - KConfig cnf("ksplashrc"); + TDEConfig cnf("ksplashrc"); cnf.setGroup("KSplash"); int cur = mThemesList->currentItem(); if (cur < 0) @@ -298,7 +298,7 @@ void SplashInstaller::slotRemove() KURL url; url.setPath(themeDir); if (KMessageBox::warningContinueCancel(this,i18n("Delete folder %1 and its contents?").arg(themeDir),"",KGuiItem(i18n("&Delete"),"editdelete"))==KMessageBox::Continue) - rc = KIO::NetAccess::del(url,this); + rc = TDEIO::NetAccess::del(url,this); else return; } @@ -343,19 +343,19 @@ void SplashInstaller::slotSetTheme(int id) if (i >= 0) themeName = path.mid(i+1); url.setPath( path + "/Theme.rc" ); - if (!KIO::NetAccess::exists(url, true, 0)) + if (!TDEIO::NetAccess::exists(url, true, 0)) { url.setPath( path + "/Theme.RC" ); - if (!KIO::NetAccess::exists(url, true, 0)) + if (!TDEIO::NetAccess::exists(url, true, 0)) { url.setPath( path + "/theme.rc" ); - if (!KIO::NetAccess::exists(url, true, 0)) + if (!TDEIO::NetAccess::exists(url, true, 0)) url.setPath( path + "/" + themeName + ".rc" ); } } - if (KIO::NetAccess::exists(url, true, 0)) + if (TDEIO::NetAccess::exists(url, true, 0)) { - KConfig cnf(url.path()); + TDEConfig cnf(url.path()); cnf.setGroup( TQString("KSplash Theme: %1").arg(themeName) ); // Get theme information. @@ -391,7 +391,7 @@ void SplashInstaller::slotSetTheme(int id) if (!enabled) { url.setPath( path + "/" + "Preview.png" ); - if (KIO::NetAccess::exists(url, true, 0)) + if (TDEIO::NetAccess::exists(url, true, 0)) mPreview->setPixmap(TQPixmap(url.path())); else mPreview->setText(i18n("(Could not load theme)")); @@ -400,7 +400,7 @@ void SplashInstaller::slotSetTheme(int id) else { url.setPath( path + "/" + "Preview.png" ); - if (KIO::NetAccess::exists(url, true, 0)) + if (TDEIO::NetAccess::exists(url, true, 0)) mPreview->setPixmap(TQPixmap(url.path())); else mPreview->setText(i18n("No preview available.")); diff --git a/ksplashml/kcmksplash/main.cpp b/ksplashml/kcmksplash/main.cpp index 7c062ea51..cceebc0e1 100644 --- a/ksplashml/kcmksplash/main.cpp +++ b/ksplashml/kcmksplash/main.cpp @@ -23,7 +23,7 @@ #include "installer.h" -class KSplashThemeMgr : public KCModule +class KSplashThemeMgr : public TDECModule { public: KSplashThemeMgr( TQWidget *parent, const char *name, const TQStringList &/*unused*/); @@ -46,7 +46,7 @@ K_EXPORT_COMPONENT_FACTORY( kcm_ksplashthemes, KSplashThemeMgrFactory("ksplashth // ----------------------------------------------------------------------------------------- KSplashThemeMgr::KSplashThemeMgr( TQWidget *parent, const char *name, const TQStringList &) - : KCModule( KSplashThemeMgrFactory::instance(), parent, name ), mInstaller(new SplashInstaller(this)) + : TDECModule( KSplashThemeMgrFactory::instance(), parent, name ), mInstaller(new SplashInstaller(this)) { init(); |