mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:47:35 +00:00
Port WSClientConnection to CIPCServerSideClient
This commit is contained in:
parent
edcbba9e98
commit
6eaa6826fa
6 changed files with 65 additions and 191 deletions
|
@ -12,9 +12,8 @@
|
|||
class WSEvent : public CEvent {
|
||||
public:
|
||||
enum Type {
|
||||
Invalid = 2000,
|
||||
Invalid = 3000,
|
||||
WM_DeferredCompose,
|
||||
WM_ClientDisconnected,
|
||||
MouseMove,
|
||||
MouseDown,
|
||||
MouseDoubleClick,
|
||||
|
@ -85,20 +84,6 @@ public:
|
|||
bool is_key_event() const { return type() == KeyUp || type() == KeyDown; }
|
||||
};
|
||||
|
||||
class WSClientDisconnectedNotification : public WSEvent {
|
||||
public:
|
||||
explicit WSClientDisconnectedNotification(int client_id)
|
||||
: WSEvent(WM_ClientDisconnected)
|
||||
, m_client_id(client_id)
|
||||
{
|
||||
}
|
||||
|
||||
int client_id() const { return m_client_id; }
|
||||
|
||||
private:
|
||||
int m_client_id { 0 };
|
||||
};
|
||||
|
||||
class WSAPIClientRequest : public WSEvent {
|
||||
public:
|
||||
WSAPIClientRequest(Type type, int client_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue