diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kio/kio/kdcopservicestarter.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-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 'kio/kio/kdcopservicestarter.cpp')
-rw-r--r-- | kio/kio/kdcopservicestarter.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kio/kio/kdcopservicestarter.cpp b/kio/kio/kdcopservicestarter.cpp index 023789ab8..3c9b55501 100644 --- a/kio/kio/kdcopservicestarter.cpp +++ b/kio/kio/kdcopservicestarter.cpp @@ -46,15 +46,15 @@ KDCOPServiceStarter::~KDCOPServiceStarter() { } -int KDCOPServiceStarter::findServiceFor( const QString& serviceType, - const QString& _constraint, - const QString& preferences, - QString *error, QCString* pDcopService, +int KDCOPServiceStarter::findServiceFor( const TQString& serviceType, + const TQString& _constraint, + const TQString& preferences, + TQString *error, TQCString* pDcopService, int flags ) { // Ask the trader which service is preferred for this servicetype // We want one that provides a DCOP interface - QString constraint = _constraint; + TQString constraint = _constraint; if ( !constraint.isEmpty() ) constraint += " and "; constraint += "exist [X-DCOP-ServiceName]"; @@ -66,11 +66,11 @@ int KDCOPServiceStarter::findServiceFor( const QString& serviceType, return -1; } KService::Ptr ptr = offers.first(); - QCString dcopService = ptr->property("X-DCOP-ServiceName").toString().latin1(); + TQCString dcopService = ptr->property("X-DCOP-ServiceName").toString().latin1(); if ( !kapp->dcopClient()->isApplicationRegistered( dcopService ) ) { - QString error; + TQString error; if ( startServiceFor( serviceType, constraint, preferences, &error, &dcopService, flags ) != 0 ) { kdDebug() << "KDCOPServiceStarter: Couldn't start service: " << error << endl; @@ -83,15 +83,15 @@ int KDCOPServiceStarter::findServiceFor( const QString& serviceType, return 0; } -int KDCOPServiceStarter::startServiceFor( const QString& serviceType, - const QString& constraint, - const QString& preferences, - QString *error, QCString* dcopService, int /*flags*/ ) +int KDCOPServiceStarter::startServiceFor( const TQString& serviceType, + const TQString& constraint, + const TQString& preferences, + TQString *error, TQCString* dcopService, int /*flags*/ ) { KTrader::OfferList offers = KTrader::self()->query(serviceType, "Application", constraint, preferences); if ( offers.isEmpty() ) return -1; KService::Ptr ptr = offers.first(); kdDebug() << "KDCOPServiceStarter: starting " << ptr->desktopEntryPath() << endl; - return kapp->startServiceByDesktopPath( ptr->desktopEntryPath(), QStringList(), error, dcopService ); + return kapp->startServiceByDesktopPath( ptr->desktopEntryPath(), TQStringList(), error, dcopService ); } |