From c52b181c3382a754b10f0457763e0364463592ad Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 21 Nov 2014 13:14:20 +0100 Subject: close if we don't get a connection in the first two seconds --- resource/listener.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'resource/listener.h') diff --git a/resource/listener.h b/resource/listener.h index 79c7ba5..2fbd75c 100644 --- a/resource/listener.h +++ b/resource/listener.h @@ -20,16 +20,22 @@ public: class Listener : public QObject { + Q_OBJECT + public: Listener(const QString &resourceName, QObject *parent = 0); ~Listener(); +Q_SIGNALS: + void noClients(); + public Q_SLOTS: void closeAllConnections(); private Q_SLOTS: void acceptConnection(); void clientDropped(); + void checkConnections(); private: QLocalServer *m_server; -- cgit v1.2.3