summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/dcopservice
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/app_templates/dcopservice
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/app_templates/dcopservice')
-rw-r--r--languages/cpp/app_templates/dcopservice/dcopservice.cpp12
-rw-r--r--languages/cpp/app_templates/dcopservice/dcopservice.h14
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();