diff options
-rw-r--r-- | client/CMakeLists.txt | 8 | ||||
-rw-r--r-- | client/resourceaccess.cpp | 8 | ||||
-rw-r--r-- | common/CMakeLists.txt | 2 | ||||
-rw-r--r-- | common/commands/handshake.fbs | 2 | ||||
-rw-r--r-- | common/commands/revisionupdate.fbs | 4 | ||||
-rw-r--r-- | resource/CMakeLists.txt | 8 | ||||
-rw-r--r-- | resource/listener.cpp | 10 |
7 files changed, 21 insertions, 21 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 @@ | |||
1 | project(toynadi_client) | 1 | project(akonadinext_client) |
2 | 2 | ||
3 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | 3 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) |
4 | 4 | ||
5 | set(toynadiclient_SRCS | 5 | set(akonadinextclient_SRCS |
6 | main.cpp | 6 | main.cpp |
7 | resourceaccess.cpp | 7 | resourceaccess.cpp |
8 | ) | 8 | ) |
9 | 9 | ||
10 | add_executable(${PROJECT_NAME} ${toynadiclient_SRCS}) | 10 | add_executable(${PROJECT_NAME} ${akonadinextclient_SRCS}) |
11 | target_link_libraries(${PROJECT_NAME} toynadicommon) | 11 | target_link_libraries(${PROJECT_NAME} akonadinextcommon) |
12 | qt5_use_modules(${PROJECT_NAME} Widgets Network) | 12 | qt5_use_modules(${PROJECT_NAME} Widgets Network) |
13 | install(TARGETS ${PROJECT_NAME} DESTINATION bin) | 13 | install(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; |
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index a0d3ac9..6533e28 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | project(toynadicommon) | 1 | project(akonadinextcommon) |
2 | generate_flatbuffers(commands/handshake | 2 | generate_flatbuffers(commands/handshake |
3 | commands/revisionupdate) | 3 | commands/revisionupdate) |
4 | 4 | ||
diff --git a/common/commands/handshake.fbs b/common/commands/handshake.fbs index 4492ca9..90c0d3a 100644 --- a/common/commands/handshake.fbs +++ b/common/commands/handshake.fbs | |||
@@ -1,5 +1,5 @@ | |||
1 | 1 | ||
2 | namespace Toynadi; | 2 | namespace Akonadi; |
3 | 3 | ||
4 | table Handshake { | 4 | table Handshake { |
5 | name: string; | 5 | name: string; |
diff --git a/common/commands/revisionupdate.fbs b/common/commands/revisionupdate.fbs index d95f1b5..bf3943f 100644 --- a/common/commands/revisionupdate.fbs +++ b/common/commands/revisionupdate.fbs | |||
@@ -1,7 +1,7 @@ | |||
1 | namespace Toynadi; | 1 | namespace Akonadi; |
2 | 2 | ||
3 | table RevisionUpdate { | 3 | table RevisionUpdate { |
4 | revision: ulong; | 4 | revision: ulong; |
5 | } | 5 | } |
6 | 6 | ||
7 | root_type RevisionUpdate; \ No newline at end of file | 7 | root_type RevisionUpdate; |
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 @@ | |||
1 | project(toynadi_resource) | 1 | project(akonadinext_resource) |
2 | 2 | ||
3 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | 3 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) |
4 | 4 | ||
5 | set(toynadiresource_SRCS | 5 | set(akonadinextresource_SRCS |
6 | main.cpp | 6 | main.cpp |
7 | listener.cpp | 7 | listener.cpp |
8 | ) | 8 | ) |
9 | 9 | ||
10 | add_executable(${PROJECT_NAME} ${toynadiresource_SRCS}) | 10 | add_executable(${PROJECT_NAME} ${akonadinextresource_SRCS}) |
11 | target_link_libraries(${PROJECT_NAME} toynadicommon) | 11 | target_link_libraries(${PROJECT_NAME} akonadinextcommon) |
12 | qt5_use_modules(${PROJECT_NAME} Widgets Network) | 12 | qt5_use_modules(${PROJECT_NAME} Widgets Network) |
13 | install(TARGETS ${PROJECT_NAME} DESTINATION bin) | 13 | 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) | |||
148 | 148 | ||
149 | switch (commandId) { | 149 | switch (commandId) { |
150 | case Commands::HandshakeCommand: { | 150 | case Commands::HandshakeCommand: { |
151 | auto buffer = Toynadi::GetHandshake(data.constData()); | 151 | auto buffer = Akonadi::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; |
@@ -171,8 +171,8 @@ void Listener::sendCurrentRevision(Client &client) | |||
171 | } | 171 | } |
172 | 172 | ||
173 | flatbuffers::FlatBufferBuilder fbb; | 173 | flatbuffers::FlatBufferBuilder fbb; |
174 | auto command = Toynadi::CreateRevisionUpdate(fbb, m_revision); | 174 | auto command = Akonadi::CreateRevisionUpdate(fbb, m_revision); |
175 | Toynadi::FinishRevisionUpdateBuffer(fbb, command); | 175 | Akonadi::FinishRevisionUpdateBuffer(fbb, command); |
176 | const int commandId = Commands::RevisionUpdateCommand; | 176 | const int commandId = Commands::RevisionUpdateCommand; |
177 | const int dataSize = fbb.GetSize(); | 177 | const int dataSize = fbb.GetSize(); |
178 | client.socket->write((const char*)&commandId, sizeof(int)); | 178 | client.socket->write((const char*)&commandId, sizeof(int)); |
@@ -183,8 +183,8 @@ void Listener::sendCurrentRevision(Client &client) | |||
183 | void Listener::updateClientsWithRevision() | 183 | void Listener::updateClientsWithRevision() |
184 | { | 184 | { |
185 | flatbuffers::FlatBufferBuilder fbb; | 185 | flatbuffers::FlatBufferBuilder fbb; |
186 | auto command = Toynadi::CreateRevisionUpdate(fbb, m_revision); | 186 | auto command = Akonadi::CreateRevisionUpdate(fbb, m_revision); |
187 | Toynadi::FinishRevisionUpdateBuffer(fbb, command); | 187 | Akonadi::FinishRevisionUpdateBuffer(fbb, command); |
188 | const int commandId = Commands::RevisionUpdateCommand; | 188 | const int commandId = Commands::RevisionUpdateCommand; |
189 | const int dataSize = fbb.GetSize(); | 189 | const int dataSize = fbb.GetSize(); |
190 | 190 | ||