summaryrefslogtreecommitdiffstats
path: root/synchronizer/listener.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'synchronizer/listener.cpp')
-rw-r--r--synchronizer/listener.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/synchronizer/listener.cpp b/synchronizer/listener.cpp
index 23a5a70..01daf5d 100644
--- a/synchronizer/listener.cpp
+++ b/synchronizer/listener.cpp
@@ -148,7 +148,7 @@ bool Listener::processClientBuffer(Client &client)
148 148
149 switch (commandId) { 149 switch (commandId) {
150 case Commands::HandshakeCommand: { 150 case Commands::HandshakeCommand: {
151 auto buffer = Akonadi::GetHandshake(data.constData()); 151 auto buffer = Akonadi2::GetHandshake(data.constData());
152 Console::main()->log(QString(" Handshake from %1").arg(buffer->name()->c_str())); 152 Console::main()->log(QString(" Handshake from %1").arg(buffer->name()->c_str()));
153 sendCurrentRevision(client); 153 sendCurrentRevision(client);
154 break; 154 break;
@@ -170,16 +170,16 @@ void Listener::sendCurrentRevision(Client &client)
170 return; 170 return;
171 } 171 }
172 172
173 auto command = Akonadi::CreateRevisionUpdate(m_fbb, m_revision); 173 auto command = Akonadi2::CreateRevisionUpdate(m_fbb, m_revision);
174 Akonadi::FinishRevisionUpdateBuffer(m_fbb, command); 174 Akonadi2::FinishRevisionUpdateBuffer(m_fbb, command);
175 Commands::write(client.socket, Commands::RevisionUpdateCommand, m_fbb); 175 Commands::write(client.socket, Commands::RevisionUpdateCommand, m_fbb);
176 m_fbb.Clear(); 176 m_fbb.Clear();
177} 177}
178 178
179void Listener::updateClientsWithRevision() 179void Listener::updateClientsWithRevision()
180{ 180{
181 auto command = Akonadi::CreateRevisionUpdate(m_fbb, m_revision); 181 auto command = Akonadi2::CreateRevisionUpdate(m_fbb, m_revision);
182 Akonadi::FinishRevisionUpdateBuffer(m_fbb, command); 182 Akonadi2::FinishRevisionUpdateBuffer(m_fbb, command);
183 183
184 for (const Client &client: m_connections) { 184 for (const Client &client: m_connections) {
185 if (!client.socket || !client.socket->isValid()) { 185 if (!client.socket || !client.socket->isValid()) {