summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/CMakeLists.txt8
-rw-r--r--client/resourceaccess.cpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index 20b00a5..48e212c 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -1,14 +1,14 @@
1project(toynadi_client) 1project(akonadinext_client)
2 2
3include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) 3include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
4 4
5set(toynadiclient_SRCS 5set(akonadinextclient_SRCS
6 main.cpp 6 main.cpp
7 resourceaccess.cpp 7 resourceaccess.cpp
8) 8)
9 9
10add_executable(${PROJECT_NAME} ${toynadiclient_SRCS}) 10add_executable(${PROJECT_NAME} ${akonadinextclient_SRCS})
11target_link_libraries(${PROJECT_NAME} toynadicommon) 11target_link_libraries(${PROJECT_NAME} akonadinextcommon)
12qt5_use_modules(${PROJECT_NAME} Widgets Network) 12qt5_use_modules(${PROJECT_NAME} Widgets Network)
13install(TARGETS ${PROJECT_NAME} DESTINATION bin) 13install(TARGETS ${PROJECT_NAME} DESTINATION bin)
14 14
diff --git a/client/resourceaccess.cpp b/client/resourceaccess.cpp
index e73c773..44c2d84 100644
--- a/client/resourceaccess.cpp
+++ b/client/resourceaccess.cpp
@@ -74,8 +74,8 @@ void ResourceAccess::connected()
74 { 74 {
75 flatbuffers::FlatBufferBuilder fbb; 75 flatbuffers::FlatBufferBuilder fbb;
76 auto name = fbb.CreateString("Client PID: " + QString::number((long long)this).toLatin1() + "!"); 76 auto name = fbb.CreateString("Client PID: " + QString::number((long long)this).toLatin1() + "!");
77 auto command = Toynadi::CreateHandshake(fbb, name); 77 auto command = Akonadi::CreateHandshake(fbb, name);
78 Toynadi::FinishHandshakeBuffer(fbb, command); 78 Akonadi::FinishHandshakeBuffer(fbb, command);
79 const int commandId = Commands::HandshakeCommand; 79 const int commandId = Commands::HandshakeCommand;
80 const int dataSize = fbb.GetSize(); 80 const int dataSize = fbb.GetSize();
81 m_socket->write((const char*)&commandId, sizeof(int)); 81 m_socket->write((const char*)&commandId, sizeof(int));
@@ -108,7 +108,7 @@ void ResourceAccess::connectionError(QLocalSocket::LocalSocketError error)
108 Console::main()->log(QString("Attempting to start resource...")); 108 Console::main()->log(QString("Attempting to start resource..."));
109 QStringList args; 109 QStringList args;
110 args << m_resourceName; 110 args << m_resourceName;
111 if (QProcess::startDetached("toynadi_resource", args)) { 111 if (QProcess::startDetached("akonadinext_resource", args)) {
112 m_socket->open(); 112 m_socket->open();
113 } 113 }
114} 114}
@@ -142,7 +142,7 @@ bool ResourceAccess::processMessageBuffer()
142 142
143 switch (commandId) { 143 switch (commandId) {
144 case Commands::RevisionUpdateCommand: { 144 case Commands::RevisionUpdateCommand: {
145 auto buffer = Toynadi::GetRevisionUpdate(m_partialMessageBuffer.constData() + headerSize); 145 auto buffer = Akonadi::GetRevisionUpdate(m_partialMessageBuffer.constData() + headerSize);
146 Console::main()->log(QString(" Revision updated to: %1").arg(buffer->revision())); 146 Console::main()->log(QString(" Revision updated to: %1").arg(buffer->revision()));
147 emit revisionChanged(buffer->revision()); 147 emit revisionChanged(buffer->revision());
148 break; 148 break;