From 83ded525e622feb0318c93d64012882e649568f6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 9 Jul 2012 18:42:52 -0500 Subject: Move part connection and disconnection code into tqtrla library --- lib/libtqtrla/src/tqtrla.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/libtqtrla/src/tqtrla.h') diff --git a/lib/libtqtrla/src/tqtrla.h b/lib/libtqtrla/src/tqtrla.h index c1c88e2..2db5cc0 100644 --- a/lib/libtqtrla/src/tqtrla.h +++ b/lib/libtqtrla/src/tqtrla.h @@ -23,11 +23,14 @@ #include #include +#include #include #include +#include + // ============================================================================= namespace KParts @@ -54,6 +57,16 @@ namespace KParts TQStringList textForServerError(TQString shortError); TQ_ULONG maximumSocketDataChunkSize(); + public: + int connectToServer(TQString server); + void disconnectFromServer(); + + private slots: + void finishConnectingToServer(); + virtual void connectionFinishedCallback(); + virtual void disconnectFromServerCallback(); + virtual void connectionStatusChangedCallback(); + protected slots: void close(); void resize(TQSize size); @@ -64,6 +77,14 @@ namespace KParts protected: KURL m_url; + TQString m_clientLibraryName; + + protected: + TDEKerberosClientSocket* m_socket; + TQTimer* m_connectionTimer; + bool connToServerConnecting; + int connToServerState; + TQTimer *connToServerTimeoutTimer; private: RemoteInstrumentPartPrivate *d; -- cgit v1.2.1