summaryrefslogtreecommitdiffstats
path: root/dcop/client/dcopstart.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /dcop/client/dcopstart.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dcop/client/dcopstart.cpp')
-rw-r--r--dcop/client/dcopstart.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/dcop/client/dcopstart.cpp b/dcop/client/dcopstart.cpp
index 2b870964f..5741ef775 100644
--- a/dcop/client/dcopstart.cpp
+++ b/dcop/client/dcopstart.cpp
@@ -26,34 +26,34 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <stdio.h>
#include <ctype.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
static DCOPClient* dcop = 0;
void startApp(const char *_app, int argc, const char **args)
{
const char *function = 0;
- QString app = QString::fromLatin1(_app);
+ TQString app = TQString::fromLatin1(_app);
if (app.endsWith(".desktop"))
- function = "start_service_by_desktop_path(QString,QStringList)";
+ function = "start_service_by_desktop_path(TQString,TQStringList)";
else
- function = "start_service_by_desktop_name(QString,QStringList)";
- QStringList URLs;
+ function = "start_service_by_desktop_name(TQString,TQStringList)";
+ TQStringList URLs;
for(int i = 0; i < argc; i++)
{
- URLs.append(QString::fromLocal8Bit(args[i]));
+ URLs.append(TQString::fromLocal8Bit(args[i]));
}
- QByteArray data, replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data, replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << app << URLs;
if ( !dcop->call( "klauncher", "klauncher", function, data, replyType, replyData) ) {
qWarning( "call failed");
exit(1);
} else {
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
if ( replyType != "serviceResult" )
{
@@ -61,8 +61,8 @@ void startApp(const char *_app, int argc, const char **args)
exit(1);
}
int result;
- QCString dcopName;
- QString error;
+ TQCString dcopName;
+ TQString error;
reply >> result >> dcopName >> error;
if (result != 0)
{
@@ -89,9 +89,9 @@ int main( int argc, char** argv )
client.attach();
dcop = &client;
- QCString app;
- QCString objid;
- QCString function;
+ TQCString app;
+ TQCString objid;
+ TQCString function;
/*char **args = 0;*/
startApp( argv[1], argc - 2, (const char**)&argv[2] );