diff options
Diffstat (limited to 'languages/cpp/app_templates/dcopservice')
-rw-r--r-- | languages/cpp/app_templates/dcopservice/dcopservice.cpp | 12 | ||||
-rw-r--r-- | languages/cpp/app_templates/dcopservice/dcopservice.h | 14 |
2 files changed, 13 insertions, 13 deletions
diff --git a/languages/cpp/app_templates/dcopservice/dcopservice.cpp b/languages/cpp/app_templates/dcopservice/dcopservice.cpp index a23da01b..32f32c65 100644 --- a/languages/cpp/app_templates/dcopservice/dcopservice.cpp +++ b/languages/cpp/app_templates/dcopservice/dcopservice.cpp @@ -7,7 +7,7 @@ %{APPNAME}::%{APPNAME}() : DCOPObject("serviceInterface") { kdDebug() << "Starting new service... " << endl; - m_List = QStringList(); + m_List = TQStringList(); } %{APPNAME}::~%{APPNAME}() @@ -15,25 +15,25 @@ kdDebug() << "Going away... " << endl; } -QString %{APPNAME}::string(int idx) +TQString %{APPNAME}::string(int idx) { return *m_List.at(idx); } -QStringList %{APPNAME}::list() +TQStringList %{APPNAME}::list() { return m_List; } -void %{APPNAME}::add(QString arg) +void %{APPNAME}::add(TQString arg) { kdDebug() << "Adding " << arg << " to the list" << endl; m_List << arg; } -bool %{APPNAME}::remove(QString arg) +bool %{APPNAME}::remove(TQString arg) { - QStringList::Iterator it = m_List.find(arg); + TQStringList::Iterator it = m_List.find(arg); if (it != m_List.end()) { m_List.remove(it); diff --git a/languages/cpp/app_templates/dcopservice/dcopservice.h b/languages/cpp/app_templates/dcopservice/dcopservice.h index 4e9eda87..59aa3c28 100644 --- a/languages/cpp/app_templates/dcopservice/dcopservice.h +++ b/languages/cpp/app_templates/dcopservice/dcopservice.h @@ -3,8 +3,8 @@ #ifndef _%{APPNAME}_H #define _%{APPNAME}_H -#include <qstringlist.h> -#include <qstring.h> +#include <tqstringlist.h> +#include <tqstring.h> #include <dcopobject.h> class %{APPNAME} : public DCOPObject @@ -12,7 +12,7 @@ class %{APPNAME} : public DCOPObject K_DCOP private: - QStringList m_List; + TQStringList m_List; public: %{APPNAME}(); @@ -20,13 +20,13 @@ class %{APPNAME} : public DCOPObject ~%{APPNAME}(); k_dcop: - QString string(int); + TQString string(int); - QStringList list(); + TQStringList list(); - void add(QString); + void add(TQString); - bool remove(QString); + bool remove(TQString); bool exit(); |