From 47bda1b593220afcd17df66fe38b6683b8500a4b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 21 May 2014 11:41:33 +0200 Subject: Reinstate cprlistener. --- src/cprlisten.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/cprlisten.h') 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 #include "thread.h" -#include "mutex.h" +#include + +#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__*/ -- cgit v1.2.3