diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-11-21 13:35:57 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-11-21 13:35:57 +0100 |
commit | 750dc6ff1eb7620c62589c6b7bda5e78e641f8a9 (patch) | |
tree | b9c4cef651c56fbf8b6c51a09ba072a644ecff53 /resource/listener.h | |
parent | 0b2fdc4b734319bdeb9df6ad1420e75cea28b22e (diff) | |
download | sink-750dc6ff1eb7620c62589c6b7bda5e78e641f8a9.tar.gz sink-750dc6ff1eb7620c62589c6b7bda5e78e641f8a9.zip |
add names to clients
Diffstat (limited to 'resource/listener.h')
-rw-r--r-- | resource/listener.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/resource/listener.h b/resource/listener.h index 2fbd75c..1d41467 100644 --- a/resource/listener.h +++ b/resource/listener.h | |||
@@ -8,14 +8,16 @@ | |||
8 | class Client | 8 | class Client |
9 | { | 9 | { |
10 | public: | 10 | public: |
11 | Client(QLocalSocket *s) | 11 | Client(const QString &n, QLocalSocket *s) |
12 | : m_socket(s), | 12 | : name(n), |
13 | m_commanded(false) | 13 | socket(s), |
14 | hasSentCommand(false) | ||
14 | { | 15 | { |
15 | } | 16 | } |
16 | 17 | ||
17 | QLocalSocket *m_socket; | 18 | QString name; |
18 | bool m_commanded; | 19 | QLocalSocket *socket; |
20 | bool hasSentCommand; | ||
19 | }; | 21 | }; |
20 | 22 | ||
21 | class Listener : public QObject | 23 | class Listener : public QObject |