From cd99c2a9649d1e1639dfa9fc7590f2e5af89335a Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 2 Dec 2014 11:18:11 +0100 Subject: toynadi -> akonadinext --- resource/CMakeLists.txt | 8 ++++---- resource/listener.cpp | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'resource') diff --git a/resource/CMakeLists.txt b/resource/CMakeLists.txt index d74c705..1c21b1a 100644 --- a/resource/CMakeLists.txt +++ b/resource/CMakeLists.txt @@ -1,13 +1,13 @@ -project(toynadi_resource) +project(akonadinext_resource) include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) -set(toynadiresource_SRCS +set(akonadinextresource_SRCS main.cpp listener.cpp ) -add_executable(${PROJECT_NAME} ${toynadiresource_SRCS}) -target_link_libraries(${PROJECT_NAME} toynadicommon) +add_executable(${PROJECT_NAME} ${akonadinextresource_SRCS}) +target_link_libraries(${PROJECT_NAME} akonadinextcommon) qt5_use_modules(${PROJECT_NAME} Widgets Network) install(TARGETS ${PROJECT_NAME} DESTINATION bin) diff --git a/resource/listener.cpp b/resource/listener.cpp index 5dd8cc3..038b3fa 100644 --- a/resource/listener.cpp +++ b/resource/listener.cpp @@ -148,7 +148,7 @@ bool Listener::processClientBuffer(Client &client) switch (commandId) { case Commands::HandshakeCommand: { - auto buffer = Toynadi::GetHandshake(data.constData()); + auto buffer = Akonadi::GetHandshake(data.constData()); Console::main()->log(QString(" Handshake from %1").arg(buffer->name()->c_str())); sendCurrentRevision(client); break; @@ -171,8 +171,8 @@ void Listener::sendCurrentRevision(Client &client) } flatbuffers::FlatBufferBuilder fbb; - auto command = Toynadi::CreateRevisionUpdate(fbb, m_revision); - Toynadi::FinishRevisionUpdateBuffer(fbb, command); + auto command = Akonadi::CreateRevisionUpdate(fbb, m_revision); + Akonadi::FinishRevisionUpdateBuffer(fbb, command); const int commandId = Commands::RevisionUpdateCommand; const int dataSize = fbb.GetSize(); client.socket->write((const char*)&commandId, sizeof(int)); @@ -183,8 +183,8 @@ void Listener::sendCurrentRevision(Client &client) void Listener::updateClientsWithRevision() { flatbuffers::FlatBufferBuilder fbb; - auto command = Toynadi::CreateRevisionUpdate(fbb, m_revision); - Toynadi::FinishRevisionUpdateBuffer(fbb, command); + auto command = Akonadi::CreateRevisionUpdate(fbb, m_revision); + Akonadi::FinishRevisionUpdateBuffer(fbb, command); const int commandId = Commands::RevisionUpdateCommand; const int dataSize = fbb.GetSize(); -- cgit v1.2.3