1 /*
2  * synergy -- mouse and keyboard sharing utility
3  * Copyright (C) 2012-2016 Symless Ltd.
4  * Copyright (C) 2012 Nick Bolton
5  *
6  * This package is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * found in the file LICENSE that should have accompanied this file.
9  *
10  * This package is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #include "ipc/IpcMessage.h"
20 #include "ipc/Ipc.h"
21 
IpcMessage(UInt8 type)22 IpcMessage::IpcMessage(UInt8 type) :
23     m_type(type)
24 {
25 }
26 
~IpcMessage()27 IpcMessage::~IpcMessage()
28 {
29 }
30 
IpcHelloMessage(EIpcClientType clientType)31 IpcHelloMessage::IpcHelloMessage(EIpcClientType clientType) :
32     IpcMessage(kIpcHello),
33     m_clientType(clientType)
34 {
35 }
36 
~IpcHelloMessage()37 IpcHelloMessage::~IpcHelloMessage()
38 {
39 }
40 
IpcShutdownMessage()41 IpcShutdownMessage::IpcShutdownMessage() :
42 IpcMessage(kIpcShutdown)
43 {
44 }
45 
~IpcShutdownMessage()46 IpcShutdownMessage::~IpcShutdownMessage()
47 {
48 }
49 
IpcLogLineMessage(const String & logLine)50 IpcLogLineMessage::IpcLogLineMessage(const String& logLine) :
51 IpcMessage(kIpcLogLine),
52 m_logLine(logLine)
53 {
54 }
55 
~IpcLogLineMessage()56 IpcLogLineMessage::~IpcLogLineMessage()
57 {
58 }
59 
IpcCommandMessage(const String & command,bool elevate)60 IpcCommandMessage::IpcCommandMessage(const String& command, bool elevate) :
61 IpcMessage(kIpcCommand),
62 m_command(command),
63 m_elevate(elevate)
64 {
65 }
66 
~IpcCommandMessage()67 IpcCommandMessage::~IpcCommandMessage()
68 {
69 }
70