diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/commands.cpp | 2 | ||||
-rw-r--r-- | common/commands.h | 1 | ||||
-rw-r--r-- | common/listener.cpp | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/common/commands.cpp b/common/commands.cpp index 99313b9..221c211 100644 --- a/common/commands.cpp +++ b/common/commands.cpp | |||
@@ -55,6 +55,8 @@ QByteArray name(int commandId) | |||
55 | return "Shutdown"; | 55 | return "Shutdown"; |
56 | case NotificationCommand: | 56 | case NotificationCommand: |
57 | return "Notification"; | 57 | return "Notification"; |
58 | case PingCommand: | ||
59 | return "Ping"; | ||
58 | case CustomCommand: | 60 | case CustomCommand: |
59 | return "Custom"; | 61 | return "Custom"; |
60 | }; | 62 | }; |
diff --git a/common/commands.h b/common/commands.h index 1baedcc..da2438a 100644 --- a/common/commands.h +++ b/common/commands.h | |||
@@ -45,6 +45,7 @@ enum CommandIds { | |||
45 | SearchSourceCommand, // need a buffer definition for this, but relies on Query API | 45 | SearchSourceCommand, // need a buffer definition for this, but relies on Query API |
46 | ShutdownCommand, | 46 | ShutdownCommand, |
47 | NotificationCommand, | 47 | NotificationCommand, |
48 | PingCommand, | ||
48 | CustomCommand = 0xffff | 49 | CustomCommand = 0xffff |
49 | }; | 50 | }; |
50 | 51 | ||
diff --git a/common/listener.cpp b/common/listener.cpp index 96d87be..8532ade 100644 --- a/common/listener.cpp +++ b/common/listener.cpp | |||
@@ -246,6 +246,9 @@ void Listener::processCommand(int commandId, uint messageId, const QByteArray &c | |||
246 | m_server->close(); | 246 | m_server->close(); |
247 | QTimer::singleShot(0, this, &Listener::quit); | 247 | QTimer::singleShot(0, this, &Listener::quit); |
248 | break; | 248 | break; |
249 | case Akonadi2::Commands::PingCommand: | ||
250 | Log() << QString("\tReceived ping command from %1").arg(client.name); | ||
251 | break; | ||
249 | default: | 252 | default: |
250 | if (commandId > Akonadi2::Commands::CustomCommand) { | 253 | if (commandId > Akonadi2::Commands::CustomCommand) { |
251 | Log() << QString("\tReceived custom command from %1: ").arg(client.name) << commandId; | 254 | Log() << QString("\tReceived custom command from %1: ").arg(client.name) << commandId; |