From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- dcop/dcopobject.cpp | 76 ++++++++++++++++++++++++++--------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'dcop/dcopobject.cpp') diff --git a/dcop/dcopobject.cpp b/dcop/dcopobject.cpp index 98a147e9f..fd39fb347 100644 --- a/dcop/dcopobject.cpp +++ b/dcop/dcopobject.cpp @@ -25,12 +25,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include #include -QMap *kde_dcopObjMap = 0; +TQMap *kde_dcopObjMap = 0; -static inline QMap *objMap() +static inline TQMap *objMap() { if (!kde_dcopObjMap) - kde_dcopObjMap = new QMap; + kde_dcopObjMap = new TQMap; return kde_dcopObjMap; } @@ -51,10 +51,10 @@ DCOPObject::DCOPObject() objMap()->insert(ident, this ); } -DCOPObject::DCOPObject(QObject *obj) +DCOPObject::DCOPObject(TQObject *obj) { d = new DCOPObjectPrivate; - QObject *currentObj = obj; + TQObject *currentObj = obj; while (currentObj != 0L) { ident.prepend( currentObj->name() ); ident.prepend("/"); @@ -66,7 +66,7 @@ DCOPObject::DCOPObject(QObject *obj) objMap()->insert(ident, this); } -DCOPObject::DCOPObject(const QCString &_objId) +DCOPObject::DCOPObject(const TQCString &_objId) : ident(_objId) { d = new DCOPObjectPrivate; @@ -95,7 +95,7 @@ void DCOPObject::setCallingDcopClient(DCOPClient *client) d->m_dcopClient = client; } -bool DCOPObject::setObjId(const QCString &objId) +bool DCOPObject::setObjId(const TQCString &objId) { if (objMap()->find(objId)!=objMap()->end()) return false; @@ -109,12 +109,12 @@ bool DCOPObject::setObjId(const QCString &objId) return true; } -QCString DCOPObject::objId() const +TQCString DCOPObject::objId() const { return ident; } -bool DCOPObject::hasObject(const QCString &_objId) +bool DCOPObject::hasObject(const TQCString &_objId) { if (objMap()->contains(_objId)) return true; @@ -122,9 +122,9 @@ bool DCOPObject::hasObject(const QCString &_objId) return false; } -DCOPObject *DCOPObject::find(const QCString &_objId) +DCOPObject *DCOPObject::find(const TQCString &_objId) { - QMap::ConstIterator it; + TQMap::ConstIterator it; it = objMap()->find(_objId); if (it != objMap()->end()) return *it; @@ -132,10 +132,10 @@ DCOPObject *DCOPObject::find(const QCString &_objId) return 0L; } -QPtrList DCOPObject::match(const QCString &partialId) +TQPtrList DCOPObject::match(const TQCString &partialId) { - QPtrList mlist; - QMap::ConstIterator it(objMap()->begin()); + TQPtrList mlist; + TQMap::ConstIterator it(objMap()->begin()); for (; it != objMap()->end(); ++it) if (it.key().left(partialId.length()) == partialId) // found it? mlist.append(it.data()); @@ -143,14 +143,14 @@ QPtrList DCOPObject::match(const QCString &partialId) } -QCString DCOPObject::objectName( QObject* obj ) +TQCString DCOPObject::objectName( TQObject* obj ) { if ( obj == 0 ) - return QCString(); + return TQCString(); - QCString identity; + TQCString identity; - QObject *currentObj = obj; + TQObject *currentObj = obj; while (currentObj != 0 ) { identity.prepend( currentObj->name() ); @@ -163,24 +163,24 @@ QCString DCOPObject::objectName( QObject* obj ) return identity; } -bool DCOPObject::process(const QCString &fun, const QByteArray &data, - QCString& replyType, QByteArray &replyData) +bool DCOPObject::process(const TQCString &fun, const TQByteArray &data, + TQCString& replyType, TQByteArray &replyData) { if ( fun == "interfaces()" ) { replyType = "QCStringList"; - QDataStream reply( replyData, IO_WriteOnly ); + TQDataStream reply( replyData, IO_WriteOnly ); reply << interfaces(); return true; } else if ( fun == "functions()" ) { replyType = "QCStringList"; - QDataStream reply( replyData, IO_WriteOnly ); + TQDataStream reply( replyData, IO_WriteOnly ); reply << functions(); return true; } return processDynamic( fun, data, replyType, replyData ); } -bool DCOPObject::processDynamic( const QCString&, const QByteArray&, QCString&, QByteArray& ) +bool DCOPObject::processDynamic( const TQCString&, const TQByteArray&, TQCString&, TQByteArray& ) { return false; } @@ -210,16 +210,16 @@ QCStringList DCOPObject::functions() return result; } -void DCOPObject::emitDCOPSignal( const QCString &signal, const QByteArray &data) +void DCOPObject::emitDCOPSignal( const TQCString &signal, const TQByteArray &data) { DCOPClient *client = DCOPClient::mainClient(); if ( client ) client->emitDCOPSignal( objId(), signal, data ); } -bool DCOPObject::connectDCOPSignal( const QCString &sender, const QCString &senderObj, - const QCString &signal, - const QCString &slot, +bool DCOPObject::connectDCOPSignal( const TQCString &sender, const TQCString &senderObj, + const TQCString &signal, + const TQCString &slot, bool Volatile) { DCOPClient *client = DCOPClient::mainClient(); @@ -231,9 +231,9 @@ bool DCOPObject::connectDCOPSignal( const QCString &sender, const QCString &send return client->connectDCOPSignal( sender, senderObj, signal, objId(), slot, Volatile ); } -bool DCOPObject::disconnectDCOPSignal( const QCString &sender, const QCString &senderObj, - const QCString &signal, - const QCString &slot) +bool DCOPObject::disconnectDCOPSignal( const TQCString &sender, const TQCString &senderObj, + const TQCString &signal, + const TQCString &slot) { DCOPClient *client = DCOPClient::mainClient(); @@ -245,19 +245,19 @@ bool DCOPObject::disconnectDCOPSignal( const QCString &sender, const QCString &s } -QPtrList* DCOPObjectProxy::proxies = 0; +TQPtrList* DCOPObjectProxy::proxies = 0; DCOPObjectProxy::DCOPObjectProxy() { if ( !proxies ) - proxies = new QPtrList; + proxies = new TQPtrList; proxies->append( this ); } DCOPObjectProxy::DCOPObjectProxy( DCOPClient*) { if ( !proxies ) - proxies = new QPtrList; + proxies = new TQPtrList; proxies->append( this ); } @@ -267,11 +267,11 @@ DCOPObjectProxy:: ~DCOPObjectProxy() proxies->removeRef( this ); } -bool DCOPObjectProxy::process( const QCString& /*obj*/, - const QCString& /*fun*/, - const QByteArray& /*data*/, - QCString& /*replyType*/, - QByteArray &/*replyData*/ ) +bool DCOPObjectProxy::process( const TQCString& /*obj*/, + const TQCString& /*fun*/, + const TQByteArray& /*data*/, + TQCString& /*replyType*/, + TQByteArray &/*replyData*/ ) { return false; } -- cgit v1.2.3