diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-05-21 11:41:33 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-05-21 11:41:33 +0200 |
commit | 47bda1b593220afcd17df66fe38b6683b8500a4b (patch) | |
tree | 37ef14c3621b8469ed5f2049668bd18273f2a0cf /src/cprlisten.h | |
parent | 848bd6a41575e518e3c2e19454f4b505e8d9bf1f (diff) |
Reinstate cprlistener.
Diffstat (limited to 'src/cprlisten.h')
-rw-r--r-- | src/cprlisten.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/cprlisten.h b/src/cprlisten.h index 57551f5..d1862f8 100644 --- a/src/cprlisten.h +++ b/src/cprlisten.h @@ -1,4 +1,4 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: tab; c-basic-offset: 2 -*- */ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /*************************************************************************** * cprlisten.h * @@ -31,20 +31,29 @@ #include <string> #include "thread.h" -#include "mutex.h" +#include <QMutex> + +#include "aa_socket.h" class CPRListen: public Thread { public: CPRListen(unsigned short port); ~CPRListen(); + bool cprChanged(); std::string getCpr(); void thread_main(); + void stop(); // Stops the call to listen + private: + volatile bool running; + AASocket *socket; + + bool cprchanged; unsigned short port; std::string cpr; - Mutex mutex; + QMutex mutex; }; #endif/*__AASIMON_FRAMEWORK_CPRLISTEN_H__*/ |