From c0b24fe164924298d7e6ae33964b3c65fadbcba3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 01:06:29 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- languages/cpp/app_templates/kioslave/slave.cpp | 88 -------------------------- 1 file changed, 88 deletions(-) delete mode 100644 languages/cpp/app_templates/kioslave/slave.cpp (limited to 'languages/cpp/app_templates/kioslave/slave.cpp') diff --git a/languages/cpp/app_templates/kioslave/slave.cpp b/languages/cpp/app_templates/kioslave/slave.cpp deleted file mode 100644 index 3c780e7f..00000000 --- a/languages/cpp/app_templates/kioslave/slave.cpp +++ /dev/null @@ -1,88 +0,0 @@ - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "%{APPNAMELC}.h" - -using namespace TDEIO; - - -kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket) - : SlaveBase("kio_%{APPNAMELC}", pool_socket, app_socket) -{ - kdDebug() << "kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol()" << endl; -} - - -kio_%{APPNAMELC}Protocol::~kio_%{APPNAMELC}Protocol() -{ - kdDebug() << "kio_%{APPNAMELC}Protocol::~kio_%{APPNAMELC}Protocol()" << endl; -} - - -void kio_%{APPNAMELC}Protocol::get(const KURL& url ) -{ - kdDebug() << "kio_%{APPNAMELC}::get(const KURL& url)" << endl ; - - kdDebug() << "Seconds: " << url.query() << endl; - TQString remoteServer = url.host(); - int remotePort = url.port(); - kdDebug() << "myURL: " << url.prettyURL() << endl; - - infoMessage(i18n("Looking for %1...").arg( remoteServer ) ); - // Send the mimeType as soon as it is known - mimeType("text/plain"); - // Send the data - TQString theData = "This is a test of kio_%{APPNAMELC}"; - data(TQCString(theData.local8Bit())); - data(TQByteArray()); // empty array means we're done sending the data - finished(); -} - - -void kio_%{APPNAMELC}Protocol::mimetype(const KURL & /*url*/) -{ - mimeType("text/plain"); - finished(); -} - - -extern "C" -{ - int kdemain(int argc, char **argv) - { - TDEInstance instance( "kio_%{APPNAMELC}" ); - - kdDebug(7101) << "*** Starting kio_%{APPNAMELC} " << endl; - - if (argc != 4) { - kdDebug(7101) << "Usage: kio_%{APPNAMELC} protocol domain-socket1 domain-socket2" << endl; - exit(-1); - } - - kio_%{APPNAMELC}Protocol slave(argv[2], argv[3]); - slave.dispatchLoop(); - - kdDebug(7101) << "*** kio_%{APPNAMELC} Done" << endl; - return 0; - } -} -- cgit v1.2.1