summaryrefslogtreecommitdiff
path: root/client/networksender.h
diff options
context:
space:
mode:
authordeva <deva>2006-05-20 14:35:59 +0000
committerdeva <deva>2006-05-20 14:35:59 +0000
commitdd8e7832c69a5ef484a2f3b6054a482d29275f85 (patch)
tree6865f4f18d8545a0edecbb3646f69039ccc82727 /client/networksender.h
parent60c43b0a065175a49ae0aa2b10280e893479889b (diff)
*** empty log message ***
Diffstat (limited to 'client/networksender.h')
-rw-r--r--client/networksender.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/client/networksender.h b/client/networksender.h
index 89c522a..43bb797 100644
--- a/client/networksender.h
+++ b/client/networksender.h
@@ -28,22 +28,35 @@
#define __MIAV_NETWORKSENDER_H__
#include <QThread>
+#include <QLinkedList>
+#include <QString>
+#include <QMutex>
+#include <QSemaphore>
+
+#include <frame.h>
class NetworkSender : public QThread
{
public:
- NetworkSender();
+ NetworkSender(QString cpr);
~NetworkSender();
- void newConnection(char *cpr);
+ void newConnection(QString cpr);
void pushFrame(char* frame, bool freeze, bool snapshot);
void endConnection();
void run();
private:
- std::string ip;
+ QString ip;
unsigned short port;
+
+ volatile bool running;
+
+ QMutex mutex;
+ QSemaphore semaphore;
+ QLinkedList<Frame*> framelist;
+
};
#endif/*__MIAV_NETWORKSENDER_H__*/