From 87e49a06e2f4ee153caeabfa4240e9ab94fbd135 Mon Sep 17 00:00:00 2001
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Date: Fri, 25 Jan 2013 00:14:05 -0600
Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid
 conflicts with KDE4

---
 src/configpluginspage.cpp | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

(limited to 'src/configpluginspage.cpp')

diff --git a/src/configpluginspage.cpp b/src/configpluginspage.cpp
index bab0491..f848def 100755
--- a/src/configpluginspage.cpp
+++ b/src/configpluginspage.cpp
@@ -230,14 +230,14 @@ void ConfigPluginsPage::getPlugin()
         TQString filePathName = KURL::decode_string( url );
         TQString fileName = filePathName.right( filePathName.length() - filePathName.findRev("/") );
         getPluginFilePathName = locateLocal("data","soundkonverter/plugins/") + fileName;
-        getPluginJob = KIO::file_copy( url, getPluginFilePathName, -1, true, false, false );
-        connect( getPluginJob, TQT_SIGNAL(result(KIO::Job*)),
-                   this, TQT_SLOT(getPluginFinished(KIO::Job*))
+        getPluginJob = TDEIO::file_copy( url, getPluginFilePathName, -1, true, false, false );
+        connect( getPluginJob, TQT_SIGNAL(result(TDEIO::Job*)),
+                   this, TQT_SLOT(getPluginFinished(TDEIO::Job*))
                  );
     }
 }
 
-void ConfigPluginsPage::getPluginFinished( KIO::Job* job )
+void ConfigPluginsPage::getPluginFinished( TDEIO::Job* job )
 {
     if( job->error() == 0 ) {
         ConvertPluginLoader* convertPluginLoader = new ConvertPluginLoader();
@@ -248,7 +248,7 @@ void ConfigPluginsPage::getPluginFinished( KIO::Job* job )
             replaygainPluginLoader->verifyFile(getPluginFilePathName) == -1 &&
             ripperPluginLoader->verifyFile(getPluginFilePathName) == -1 )
         {
-            KIO::del( getPluginFilePathName, false, false );
+            TDEIO::del( getPluginFilePathName, false, false );
             KMessageBox::error( this,
                 i18n("The plugin could not be installed. Please ensure that you have selected a valid soundKonverter plugin file."),
                 i18n("Error while installing plugin") );
@@ -428,14 +428,14 @@ void ConfigPluginsPage::refreshOnlinePlugins()
 {
     pRefreshOnlinePlugins->setEnabled( false );
 
-    refreshOnlinePluginsJob = KIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/download.php?version=" + TQString::number(config->data.app.configVersion),
+    refreshOnlinePluginsJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/download.php?version=" + TQString::number(config->data.app.configVersion),
         locateLocal("data","soundkonverter/pluginlist.txt"), -1, true, false, false );
-    connect( refreshOnlinePluginsJob, TQT_SIGNAL(result(KIO::Job*)),
-               this, TQT_SLOT(refreshOnlinePluginsFinished(KIO::Job*))
+    connect( refreshOnlinePluginsJob, TQT_SIGNAL(result(TDEIO::Job*)),
+               this, TQT_SLOT(refreshOnlinePluginsFinished(TDEIO::Job*))
              );
 }
 
-void ConfigPluginsPage::refreshOnlinePluginsFinished( KIO::Job* job )
+void ConfigPluginsPage::refreshOnlinePluginsFinished( TDEIO::Job* job )
 {
     if( job->error() == 0 ) {
         lOnlinePlugins->clear();
@@ -503,14 +503,14 @@ void ConfigPluginsPage::getOnlinePlugin()
     name.replace( "Ü", "&Uuml;" );
     name.replace( "ß", "&szlig;" );
     KURL::encode_string( name );
-    getOnlinePluginJob = KIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/getfile.php?version=" + TQString::number(config->data.app.configVersion) + "&file=" + name,
+    getOnlinePluginJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/getfile.php?version=" + TQString::number(config->data.app.configVersion) + "&file=" + name,
         locateLocal("data","soundkonverter/plugins/newplugin.xml"), -1, true, false, false );
-    connect( getOnlinePluginJob, TQT_SIGNAL(result(KIO::Job*)),
-               this, TQT_SLOT(getOnlinePluginFinished(KIO::Job*))
+    connect( getOnlinePluginJob, TQT_SIGNAL(result(TDEIO::Job*)),
+               this, TQT_SLOT(getOnlinePluginFinished(TDEIO::Job*))
              );
 }
 
-void ConfigPluginsPage::getOnlinePluginFinished( KIO::Job* job )
+void ConfigPluginsPage::getOnlinePluginFinished( TDEIO::Job* job )
 {
     if( job->error() == 0 ) {
         TQString name;
@@ -541,7 +541,7 @@ void ConfigPluginsPage::getOnlinePluginFinished( KIO::Job* job )
             replaygainPluginLoader->verifyFile(getPluginFilePathName) == -1 &&
             ripperPluginLoader->verifyFile(getPluginFilePathName) == -1 )
         {
-            KIO::del( getPluginFilePathName, false, false );
+            TDEIO::del( getPluginFilePathName, false, false );
             KMessageBox::error( this,
                 i18n("The plugin could not be installed. Please ensure that you have selected a valid soundKonverter plugin file."),
                 i18n("Error while installing plugin") );
@@ -602,14 +602,14 @@ void ConfigPluginsPage::aboutOnlinePlugin()
     name.replace( "Ü", "&Uuml;" );
     name.replace( "ß", "&szlig;" );
     KURL::encode_string( name );
-    aboutOnlinePluginJob = KIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/info.php?file=" + name + "&lang=" + TQLocale::languageToString(TQLocale::system().language()),
+    aboutOnlinePluginJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/info.php?file=" + name + "&lang=" + TQLocale::languageToString(TQLocale::system().language()),
         locateLocal("data","soundkonverter/plugin_info.txt"), -1, true, false, false );
-    connect( aboutOnlinePluginJob, TQT_SIGNAL(result(KIO::Job*)),
-               this, TQT_SLOT(aboutOnlinePluginFinished(KIO::Job*))
+    connect( aboutOnlinePluginJob, TQT_SIGNAL(result(TDEIO::Job*)),
+               this, TQT_SLOT(aboutOnlinePluginFinished(TDEIO::Job*))
              );
 }
 
-void ConfigPluginsPage::aboutOnlinePluginFinished( KIO::Job* job )
+void ConfigPluginsPage::aboutOnlinePluginFinished( TDEIO::Job* job )
 {
     if( job->error() == 0 ) {
         TQString name = lOnlinePlugins->currentText();
-- 
cgit v1.2.1