Conflicts:

src/lib/server/ClientListener.cpp
This commit is contained in:
Jerry (Xinyu Hou)
2016-08-24 16:28:29 +01:00
committed by Andrew Nelless
parent e1be67cfb6
commit 3df75f9601
5 changed files with 50 additions and 31 deletions

View File

@@ -108,6 +108,7 @@ REGISTER_EVENT(OSXScreen, confirmSleep)
// ClientListener
//
REGISTER_EVENT(ClientListener, accepted)
REGISTER_EVENT(ClientListener, connected)
//

View File

@@ -337,11 +337,19 @@ private:
class ClientListenerEvents : public EventTypes {
public:
ClientListenerEvents() :
m_accepted(Event::kUnknown),
m_connected(Event::kUnknown) { }
//! @name accessors
//@{
//! Get accepted event type
/*!
Returns the accepted event type. This is sent whenever a server
accepts a client.
*/
Event::Type accepted();
//! Get connected event type
/*!
Returns the connected event type. This is sent whenever a
@@ -352,6 +360,7 @@ public:
//@}
private:
Event::Type m_accepted;
Event::Type m_connected;
};