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/dcopserver.h | 76 +++++++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'dcop/dcopserver.h') diff --git a/dcop/dcopserver.h b/dcop/dcopserver.h index 5b7f995b6..343a2bc34 100644 --- a/dcop/dcopserver.h +++ b/dcop/dcopserver.h @@ -22,17 +22,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef DCOPSERVER_H #define DCOPSERVER_H "$Id$" -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include #define INT32 QINT32 #ifdef Q_WS_X11 @@ -61,7 +61,7 @@ class QTextStream; class QFile; #endif -typedef QValueList QCStringList; +typedef TQValueList QCStringList; /** * @internal @@ -76,14 +76,14 @@ public: // Add the data from offset @p start in @p _data to the output // buffer and schedule it for later transmission. - void waitForOutputReady(const QByteArray &_data, int start); + void waitForOutputReady(const TQByteArray &_data, int start); // Called from DCOPServer::slotOutputReady() // Flush the output buffer. void slotOutputReady(); - QCString appId; - QCString plainAppId; + TQCString appId; + TQCString plainAppId; IceConn iceConn; int notifyRegister; /** @@ -97,15 +97,15 @@ public: * This allows us to do proper bookkeeping in case client A, client B * or both unregister during the call. */ - QPtrList <_IceConn> waitingOnReply; - QPtrList <_IceConn> waitingForReply; - QPtrList <_IceConn> waitingForDelayedReply; + TQPtrList <_IceConn> waitingOnReply; + TQPtrList <_IceConn> waitingForReply; + TQPtrList <_IceConn> waitingForDelayedReply; DCOPSignalConnectionList *_signalConnectionList; bool daemon; bool outputBlocked; - QValueList outputBuffer; + TQValueList outputBuffer; unsigned long outputBufferStart; - QSocketNotifier *outputBufferNotifier; + TQSocketNotifier *outputBufferNotifier; }; @@ -124,17 +124,17 @@ public: void processMessage( IceConn iceConn, int opcode, unsigned long length, Bool swap); void ioError( IceConn iceConn ); - bool receive(const QCString &app, const QCString &obj, - const QCString &fun, const QByteArray& data, - QCString& replyType, QByteArray &replyData, IceConn iceConn); + bool receive(const TQCString &app, const TQCString &obj, + const TQCString &fun, const TQByteArray& data, + TQCString& replyType, TQByteArray &replyData, IceConn iceConn); - DCOPConnection *findApp(const QCString &appId); + DCOPConnection *findApp(const TQCString &appId); DCOPConnection *findConn(IceConn iceConn) { return clients.find(iceConn); } - void sendMessage(DCOPConnection *conn, const QCString &sApp, - const QCString &rApp, const QCString &rObj, - const QCString &rFun, const QByteArray &data); + void sendMessage(DCOPConnection *conn, const TQCString &sApp, + const TQCString &rApp, const TQCString &rObj, + const TQCString &rFun, const TQByteArray &data); private slots: void newClient( int socket ); @@ -153,21 +153,21 @@ private: static DWORD WINAPI TerminatorThread(void * pParam); #endif private: - void broadcastApplicationRegistration( DCOPConnection* conn, const QCString type, - const QCString& data ); + void broadcastApplicationRegistration( DCOPConnection* conn, const TQCString type, + const TQCString& data ); bool suicide; bool shutdown; int majorOpcode; int currentClientNumber; CARD32 serverKey; DCOPSignals *dcopSignals; - QTimer *m_timer; - QTimer *m_deadConnectionTimer; - QPtrList listener; - QAsciiDict appIds; // index on app id - QPtrDict clients; // index on iceConn - QIntDict fd_clients; // index on fd - QPtrList<_IceConn> deadConnections; + TQTimer *m_timer; + TQTimer *m_deadConnectionTimer; + TQPtrList listener; + TQAsciiDict appIds; // index on app id + TQPtrDict clients; // index on iceConn + TQIntDict fd_clients; // index on fd + TQPtrList<_IceConn> deadConnections; #ifdef Q_OS_WIN HANDLE m_evTerminate; @@ -176,8 +176,8 @@ private: #endif #ifdef DCOP_LOG - QTextStream *m_stream; - QFile *m_logger; + TQTextStream *m_stream; + TQFile *m_logger; #endif }; -- cgit v1.2.1