summaryrefslogtreecommitdiff
path: root/examples/webchannel/chatserver-cpp
diff options
context:
space:
mode:
authorFrank Meerkoetter <frank.meerkoetter@basyskom.com>2016-03-26 06:39:22 +0100
committerFrank Meerkoetter <frank.meerkoetter@basyskom.com>2016-04-13 08:18:05 +0000
commitb6884cbe7316fa5e4966e17168f4cde342a6ff13 (patch)
treee6a5cd6161f39087d99d5c34d1f85d3eef73e19b /examples/webchannel/chatserver-cpp
parentd9acb1d6357949cb83f34a4b7b24f568cb310fdd (diff)
downloadqtwebchannel-b6884cbe7316fa5e4966e17168f4cde342a6ff13.tar.gz
Fix code style
Change-Id: I3c3a971c56a5622d24ac8f583bef2039097e244e Reviewed-by: Sérgio Martins <iamsergio@gmail.com> Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'examples/webchannel/chatserver-cpp')
-rw-r--r--examples/webchannel/chatserver-cpp/chatserver.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/webchannel/chatserver-cpp/chatserver.cpp b/examples/webchannel/chatserver-cpp/chatserver.cpp
index 9bc45ce..74da4c3 100644
--- a/examples/webchannel/chatserver-cpp/chatserver.cpp
+++ b/examples/webchannel/chatserver-cpp/chatserver.cpp
@@ -115,12 +115,14 @@ bool ChatServer::sendMessage(const QString& user, const QString& msg)
}
}
-void ChatServer::sendKeepAlive() {
+void ChatServer::sendKeepAlive()
+{
emit keepAlive();
m_keepAliveCheckTimer->start();
}
-void ChatServer::checkKeepAliveResponses() {
+void ChatServer::checkKeepAliveResponses()
+{
qDebug() << "Keep Alive Check" << m_stillAliveUsers;
m_userList = m_stillAliveUsers;
m_stillAliveUsers.clear();
@@ -128,7 +130,8 @@ void ChatServer::checkKeepAliveResponses() {
emit userListChanged();
}
-void ChatServer::keepAliveResponse(const QString& user) {
+void ChatServer::keepAliveResponse(const QString& user)
+{
m_stillAliveUsers.append(user);
}