summaryrefslogtreecommitdiffstats
path: root/krdc/vnc/threads.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /krdc/vnc/threads.h
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krdc/vnc/threads.h')
-rw-r--r--krdc/vnc/threads.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/krdc/vnc/threads.h b/krdc/vnc/threads.h
index 5f38b71f..08ca4c20 100644
--- a/krdc/vnc/threads.h
+++ b/krdc/vnc/threads.h
@@ -18,14 +18,14 @@
#ifndef THREADS_H
#define THREADS_H
-#include <qthread.h>
-#include <qregion.h>
-#include <qrect.h>
-#include <qmutex.h>
-#include <qwaitcondition.h>
-#include <qevent.h>
-#include <qvaluelist.h>
-#include <qdatetime.h>
+#include <tqthread.h>
+#include <tqregion.h>
+#include <tqrect.h>
+#include <tqmutex.h>
+#include <tqwaitcondition.h>
+#include <tqevent.h>
+#include <tqvaluelist.h>
+#include <tqdatetime.h>
#include <stdlib.h>
@@ -58,24 +58,24 @@ struct InputEvent {
};
-class WriterThread : public QThread {
+class WriterThread : public TQThread {
private:
- QMutex m_lock;
- QWaitCondition m_waiter;
+ TQMutex m_lock;
+ TQWaitCondition m_waiter;
volatile bool &m_quitFlag;
KVncView *m_view;
- QTime m_lastIncrUpdate; // start()ed when a incr update is sent
+ TQTime m_lastIncrUpdate; // start()ed when a incr update is sent
bool m_lastIncrUpdatePostponed;
// all things that can be send follow:
bool m_incrementalUpdateRQ; // for sending an incremental request
bool m_incrementalUpdateAnnounced; // set when a RQ will come soon
- QRegion m_updateRegionRQ; // for sending updates, null if it is done
- QValueList<InputEvent> m_inputEvents; // list of unsent input events
+ TQRegion m_updateRegionRQ; // for sending updates, null if it is done
+ TQValueList<InputEvent> m_inputEvents; // list of unsent input events
MouseEvent m_lastMouseEvent;
int m_mouseEventNum, m_keyEventNum;
- QString m_clientCut;
+ TQString m_clientCut;
void sendFatalError(ErrorCode s);
@@ -84,29 +84,29 @@ public:
void queueIncrementalUpdateRequest();
void announceIncrementalUpdateRequest();
- void queueUpdateRequest(const QRegion &r);
+ void queueUpdateRequest(const TQRegion &r);
void queueMouseEvent(int x, int y, int buttonMask);
void queueKeyEvent(unsigned int k, bool down);
- void queueClientCut(const QString &text);
+ void queueClientCut(const TQString &text);
void kick();
protected:
void run();
bool sendIncrementalUpdateRequest();
- bool sendUpdateRequest(const QRegion &r);
- bool sendInputEvents(const QValueList<InputEvent> &events);
+ bool sendUpdateRequest(const TQRegion &r);
+ bool sendInputEvents(const TQValueList<InputEvent> &events);
};
-class ControllerThread : public QThread {
+class ControllerThread : public TQThread {
private:
KVncView *m_view;
enum RemoteViewStatus m_status;
WriterThread &m_wthread;
volatile bool &m_quitFlag;
volatile bool m_desktopInitialized;
- QWaitCondition m_waiter;
+ TQWaitCondition m_waiter;
void changeStatus(RemoteViewStatus s);
void sendFatalError(ErrorCode s);