diff options
Diffstat (limited to 'languages/cpp/app_templates/kioslave')
-rw-r--r-- | languages/cpp/app_templates/kioslave/slave.cpp | 18 | ||||
-rw-r--r-- | languages/cpp/app_templates/kioslave/slave.h | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/languages/cpp/app_templates/kioslave/slave.cpp b/languages/cpp/app_templates/kioslave/slave.cpp index df32aebf..c8dc5d81 100644 --- a/languages/cpp/app_templates/kioslave/slave.cpp +++ b/languages/cpp/app_templates/kioslave/slave.cpp @@ -1,8 +1,8 @@ -#include <qcstring.h> -#include <qsocket.h> -#include <qdatetime.h> -#include <qbitarray.h> +#include <tqcstring.h> +#include <tqsocket.h> +#include <tqdatetime.h> +#include <tqbitarray.h> #include <stdlib.h> #include <math.h> @@ -26,7 +26,7 @@ using namespace KIO; -kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol(const QCString &pool_socket, const QCString &app_socket) +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; @@ -44,7 +44,7 @@ void kio_%{APPNAMELC}Protocol::get(const KURL& url ) kdDebug() << "kio_%{APPNAMELC}::get(const KURL& url)" << endl ; kdDebug() << "Seconds: " << url.query() << endl; - QString remoteServer = url.host(); + TQString remoteServer = url.host(); int remotePort = url.port(); kdDebug() << "myURL: " << url.prettyURL() << endl; @@ -52,9 +52,9 @@ void kio_%{APPNAMELC}Protocol::get(const KURL& url ) // Send the mimeType as soon as it is known mimeType("text/plain"); // Send the data - QString theData = "This is a test of kio_%{APPNAMELC}"; - data(QCString(theData.local8Bit())); - data(QByteArray()); // empty array means we're done sending 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(); } diff --git a/languages/cpp/app_templates/kioslave/slave.h b/languages/cpp/app_templates/kioslave/slave.h index 649ead8c..d094a23a 100644 --- a/languages/cpp/app_templates/kioslave/slave.h +++ b/languages/cpp/app_templates/kioslave/slave.h @@ -2,8 +2,8 @@ #ifndef _%{APPNAMELC}_H_ #define _%{APPNAMELC}_H_ -#include <qstring.h> -#include <qcstring.h> +#include <tqstring.h> +#include <tqcstring.h> #include <kurl.h> #include <kio/global.h> @@ -14,7 +14,7 @@ class QCString; class kio_%{APPNAMELC}Protocol : public KIO::SlaveBase { public: - kio_%{APPNAMELC}Protocol(const QCString &pool_socket, const QCString &app_socket); + kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket); virtual ~kio_%{APPNAMELC}Protocol(); virtual void mimetype(const KURL& url); virtual void get(const KURL& url); |