summaryrefslogtreecommitdiffstats
path: root/krdc/vnc/threads.h
diff options
context:
space:
mode:
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);