summaryrefslogtreecommitdiff
path: root/src/cprlisten.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cprlisten.h')
-rw-r--r--src/cprlisten.h15
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__*/