From ef9eb4959e8e2df853a8dcdf31a21b525fd42808 Mon Sep 17 00:00:00 2001
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Date: Sun, 27 Jan 2013 00:53:13 -0600
Subject: Rename a number of libraries and executables to avoid conflicts with
 KDE4

---
 INSTALL                      |  4 ++--
 admin/detect_uds_hidden.diff |  2 +-
 admin/kde.py                 |  2 +-
 doc/en/index.docbook         |  2 +-
 po/de/kio-locate.po          | 16 ++++++++--------
 po/fr/kio-locate.po          | 16 ++++++++--------
 po/kio_locate.pot            | 16 ++++++++--------
 po/messages.sh               |  2 +-
 src/CMakeLists.txt           |  4 ++--
 src/kio_locate.cpp           |  4 ++--
 src/kio_locate.h             |  6 +++---
 src/klocateconfig.kcfgc      |  2 +-
 12 files changed, 38 insertions(+), 38 deletions(-)

diff --git a/INSTALL b/INSTALL
index 5998725..d6881ba 100644
--- a/INSTALL
+++ b/INSTALL
@@ -2,8 +2,8 @@ This package requires CMake and tdelibs to build
 
 ==================== BUILDING ====================
 
-mkdir /tmp/kio-locate
-cd /tmp/kio-locate
+mkdir /tmp/tdeio-locate
+cd /tmp/tdeio-locate
 
 cmake <this source directory> \
   -DCMAKE_INSTALL_PREFIX=/opt/trinity \
diff --git a/admin/detect_uds_hidden.diff b/admin/detect_uds_hidden.diff
index 254de80..98805c9 100644
--- a/admin/detect_uds_hidden.diff
+++ b/admin/detect_uds_hidden.diff
@@ -8,7 +8,7 @@ diff -ur bksys-1.5.1.pre4/admin/kde.py kio-locate/admin/kde.py
  
 +	## check if KDE has the UDS_HIDDEN patch
 +	print "Checking KDE for UDS_HIDDEN       : ",
-+	if 'UDS_HIDDEN' in os.popen('cat ' + env['KDEINCLUDEPATH'] + '/kio/global.h').read():
++	if 'UDS_HIDDEN' in os.popen('cat ' + env['KDEINCLUDEPATH'] + '/tdeio/global.h').read():
 +		env['HAVE_UDS_HIDDEN']='1'
 +		p('GREEN', 'yes')
 +	else:
diff --git a/admin/kde.py b/admin/kde.py
index 955a515..a67f722 100644
--- a/admin/kde.py
+++ b/admin/kde.py
@@ -248,7 +248,7 @@ def detect_kde(env):
 
 	## check if KDE has the UDS_HIDDEN patch
 	print "Checking KDE for UDS_HIDDEN       : ",
-	if 'UDS_HIDDEN' in os.popen('cat ' + env['KDEINCLUDEPATH'] + '/kio/global.h').read():
+	if 'UDS_HIDDEN' in os.popen('cat ' + env['KDEINCLUDEPATH'] + '/tdeio/global.h').read():
 		env['HAVE_UDS_HIDDEN']='1'
 		p('GREEN', 'yes')
 	else:
diff --git a/doc/en/index.docbook b/doc/en/index.docbook
index 361e1bd..19b81e7 100644
--- a/doc/en/index.docbook
+++ b/doc/en/index.docbook
@@ -83,7 +83,7 @@
 <keyword>slocate</keyword>
 <keyword>kio-slave</keyword>
 <keyword>kio_slave</keyword>
-<keyword>kioslave</keyword>
+<keyword>tdeioslave</keyword>
 <keyword>search</keyword>
 </keywordset>
 
diff --git a/po/de/kio-locate.po b/po/de/kio-locate.po
index 2714455..4d8b0e6 100644
--- a/po/de/kio-locate.po
+++ b/po/de/kio-locate.po
@@ -18,35 +18,35 @@ msgstr ""
 "X-Generator: KBabel 1.3.1\n"
 "Plural-Forms:  nplurals=2; plural=(n != 1);\n"
 
-#: ../src/kio_locate.cpp:499
+#: ../src/tdeio_locate.cpp:499
 msgid "Locating %1 ..."
 msgstr "Suche %1 ..."
 
-#: ../src/kio_locate.cpp:614
+#: ../src/tdeio_locate.cpp:614
 msgid "Finished."
 msgstr "Suche abgeschlossen."
 
-#: ../src/kio_locate.cpp:752
+#: ../src/tdeio_locate.cpp:752
 msgid "Configure - kio-locate"
 msgstr "Einstellungen - kio-locate"
 
-#: ../src/kio_locate.cpp:755
+#: ../src/tdeio_locate.cpp:755
 msgid "General"
 msgstr "Allgemeines"
 
-#: ../src/kio_locate.cpp:756
+#: ../src/tdeio_locate.cpp:756
 msgid "Filters"
 msgstr "Filter"
 
-#: ../src/kio_locate.cpp:757
+#: ../src/tdeio_locate.cpp:757
 msgid "Locate"
 msgstr "Locate"
 
-#: ../src/kio_locate.cpp:778
+#: ../src/tdeio_locate.cpp:778
 msgid "Configuration succesfully updated."
 msgstr "Einstellungen wurden übernommen."
 
-#: ../src/kio_locate.cpp:780
+#: ../src/tdeio_locate.cpp:780
 msgid "Configuration unchanged."
 msgstr "Einstellungen unverändert."
 
diff --git a/po/fr/kio-locate.po b/po/fr/kio-locate.po
index 54def3e..64ec458 100644
--- a/po/fr/kio-locate.po
+++ b/po/fr/kio-locate.po
@@ -19,35 +19,35 @@ msgstr ""
 "Content-Transfer-Encoding: 8bit\n"
 "X-Generator: KBabel 1.9\n"
 
-#: ../src/kio_locate.cpp:499
+#: ../src/tdeio_locate.cpp:499
 msgid "Locating %1 ..."
 msgstr "Recherche de %1 en cours ..."
 
-#: ../src/kio_locate.cpp:614
+#: ../src/tdeio_locate.cpp:614
 msgid "Finished."
 msgstr "Terminé."
 
-#: ../src/kio_locate.cpp:752
+#: ../src/tdeio_locate.cpp:752
 msgid "Configure - kio-locate"
 msgstr ""
 
-#: ../src/kio_locate.cpp:755
+#: ../src/tdeio_locate.cpp:755
 msgid "General"
 msgstr ""
 
-#: ../src/kio_locate.cpp:756
+#: ../src/tdeio_locate.cpp:756
 msgid "Filters"
 msgstr ""
 
-#: ../src/kio_locate.cpp:757
+#: ../src/tdeio_locate.cpp:757
 msgid "Locate"
 msgstr ""
 
-#: ../src/kio_locate.cpp:778
+#: ../src/tdeio_locate.cpp:778
 msgid "Configuration succesfully updated."
 msgstr ""
 
-#: ../src/kio_locate.cpp:780
+#: ../src/tdeio_locate.cpp:780
 msgid "Configuration unchanged."
 msgstr ""
 
diff --git a/po/kio_locate.pot b/po/kio_locate.pot
index b52727a..b8c7a5a 100644
--- a/po/kio_locate.pot
+++ b/po/kio_locate.pot
@@ -16,35 +16,35 @@ msgstr ""
 "Content-Type: text/plain; charset=CHARSET\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#: ../src/kio_locate.cpp:499
+#: ../src/tdeio_locate.cpp:499
 msgid "Locating %1 ..."
 msgstr ""
 
-#: ../src/kio_locate.cpp:614
+#: ../src/tdeio_locate.cpp:614
 msgid "Finished."
 msgstr ""
 
-#: ../src/kio_locate.cpp:752
+#: ../src/tdeio_locate.cpp:752
 msgid "Configure - kio-locate"
 msgstr ""
 
-#: ../src/kio_locate.cpp:755
+#: ../src/tdeio_locate.cpp:755
 msgid "General"
 msgstr ""
 
-#: ../src/kio_locate.cpp:756
+#: ../src/tdeio_locate.cpp:756
 msgid "Filters"
 msgstr ""
 
-#: ../src/kio_locate.cpp:757
+#: ../src/tdeio_locate.cpp:757
 msgid "Locate"
 msgstr ""
 
-#: ../src/kio_locate.cpp:778
+#: ../src/tdeio_locate.cpp:778
 msgid "Configuration succesfully updated."
 msgstr ""
 
-#: ../src/kio_locate.cpp:780
+#: ../src/tdeio_locate.cpp:780
 msgid "Configuration unchanged."
 msgstr ""
 
diff --git a/po/messages.sh b/po/messages.sh
index bd114d6..9c9419b 100755
--- a/po/messages.sh
+++ b/po/messages.sh
@@ -46,7 +46,7 @@ for F in "$SRCDIR/"*.ui; do
     FN=$TMPHACK/$(basename "$F")
     $UIC "$F" > "$FN.h" && $UIC -impl "$FN.h" "$F" > "$FN.cpp"
 done
-kconfig_compiler -d $TMPHACK $SRCDIR/*.kcfg $SRCDIR/*.kcfgc
+tdeconfig_compiler -d $TMPHACK $SRCDIR/*.kcfg $SRCDIR/*.kcfgc
 ## bad hack to get strings from *.ui files
 
 $XGETTEXT `find $SRCDIR -name "*.cpp"` -o kio_locate.pot
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e2a1ab8..0ac1254 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -15,7 +15,7 @@ include_directories(
   ${CMAKE_BINARY_DIR}
   ${CMAKE_BINARY_DIR}/src
   ${CMAKE_SOURCE_DIR}/src
-  ${CMAKE_SOURCE_DIR}/kio/kio
+  ${CMAKE_SOURCE_DIR}/tdeio/tdeio
 )
 
 link_directories(
@@ -42,6 +42,6 @@ set( ${target}_SRCS
 
 tde_add_kpart( ${target} AUTOMOC
   SOURCES ${${target}_SRCS}
-  LINK kio-shared
+  LINK tdeio-shared
   DESTINATION ${PLUGIN_INSTALL_DIR}
 )
diff --git a/src/kio_locate.cpp b/src/kio_locate.cpp
index 38317bb..9f39be8 100644
--- a/src/kio_locate.cpp
+++ b/src/kio_locate.cpp
@@ -30,7 +30,7 @@
 #include <grp.h>
 
 #include <kapplication.h>
-#include <kconfigdialog.h>
+#include <tdeconfigdialog.h>
 #include <kdebug.h>
 #include <kde_file.h>
 #include <kiconloader.h>
@@ -836,7 +836,7 @@ bool LocateProtocol::isHelpRequest()
 void LocateProtocol::helpRequest()
 {
     // Redirect the user to our help documents.
-    redirection("help:/kio-locate/");
+    redirection("help:/tdeio-locate/");
     finished();
 }
 
diff --git a/src/kio_locate.h b/src/kio_locate.h
index d02fdd9..13097cd 100644
--- a/src/kio_locate.h
+++ b/src/kio_locate.h
@@ -65,8 +65,8 @@
 #include <tqdict.h>
 #include <tqvaluelist.h>
 
-#include <kio/global.h>
-#include <kio/slavebase.h>
+#include <tdeio/global.h>
+#include <tdeio/slavebase.h>
 
 #include "locater.h"
 #include "pattern.h"
@@ -88,7 +88,7 @@ enum LocateCollapsedIcon { iconBlue, iconGreen, iconGrey, iconOrange, iconRed, i
 
 
 /**
- * Implementation of the kioslave for the locate protocol.
+ * Implementation of the tdeioslave for the locate protocol.
  *
  * Enables you to enter "locate:pattern" wherever an URL can be used
  * in KDE.
diff --git a/src/klocateconfig.kcfgc b/src/klocateconfig.kcfgc
index 453e65f..270779c 100644
--- a/src/klocateconfig.kcfgc
+++ b/src/klocateconfig.kcfgc
@@ -1,4 +1,4 @@
-# Code generation options for kconfig_compiler
+# Code generation options for tdeconfig_compiler
 File=kio_locate.kcfg
 ClassName=KLocateConfig
 Singleton=true
-- 
cgit v1.2.3

