summaryrefslogtreecommitdiffstats
path: root/lib/libtqtrla/src/tqtrla.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-09 18:42:52 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-09 18:42:52 -0500
commit83ded525e622feb0318c93d64012882e649568f6 (patch)
treece2b13b9b54af601adf71c0b91a331cb0d5ce743 /lib/libtqtrla/src/tqtrla.h
parentfc455268a511d91113f59c04b50fa08b7c37b554 (diff)
downloadulab-83ded525e622feb0318c93d64012882e649568f6.tar.gz
ulab-83ded525e622feb0318c93d64012882e649568f6.zip
Move part connection and disconnection code into tqtrla library
Diffstat (limited to 'lib/libtqtrla/src/tqtrla.h')
-rw-r--r--lib/libtqtrla/src/tqtrla.h21
1 files changed, 21 insertions, 0 deletions
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 <tqobject.h>
#include <tqptrlist.h>
+#include <tqtimer.h>
#include <kaction.h>
#include <kparts/part.h>
+#include <tdekrbclientsocket.h>
+
// =============================================================================
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;