summaryrefslogtreecommitdiffstats
path: root/common/listener.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-30 17:53:46 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-30 17:54:56 +0200
commit2b1542d7fee7e9ef14592e88c8a974ed4ea2eacf (patch)
treebbdf1a27c5d275f1b2214c62d303fd0b9a39b5c9 /common/listener.cpp
parent93b208cc95114e39f5d3379e66646c94e70b6a02 (diff)
downloadsink-2b1542d7fee7e9ef14592e88c8a974ed4ea2eacf.tar.gz
sink-2b1542d7fee7e9ef14592e88c8a974ed4ea2eacf.zip
Tested command loop with Ping command.
Ping is a command that by definition doesn't affect the resource, and thus can be used at all times to check if the resource is still alive.
Diffstat (limited to 'common/listener.cpp')
-rw-r--r--common/listener.cpp3
1 files changed, 3 insertions, 0 deletions
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;