diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/CMakeLists.txt | 8 | ||||
-rw-r--r-- | client/main.cpp | 2 | ||||
-rw-r--r-- | client/resourceaccess.cpp | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 48e212c..a0ebe3a 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt | |||
@@ -1,14 +1,14 @@ | |||
1 | project(akonadinext_client) | 1 | project(akonadi2_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(akonadinextclient_SRCS | 5 | set(akonadi2client_SRCS |
6 | main.cpp | 6 | main.cpp |
7 | resourceaccess.cpp | 7 | resourceaccess.cpp |
8 | ) | 8 | ) |
9 | 9 | ||
10 | add_executable(${PROJECT_NAME} ${akonadinextclient_SRCS}) | 10 | add_executable(${PROJECT_NAME} ${akonadi2client_SRCS}) |
11 | target_link_libraries(${PROJECT_NAME} akonadinextcommon) | 11 | target_link_libraries(${PROJECT_NAME} akonadi2common) |
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/main.cpp b/client/main.cpp index ac086b0..1748331 100644 --- a/client/main.cpp +++ b/client/main.cpp | |||
@@ -9,7 +9,7 @@ int main(int argc, char *argv[]) | |||
9 | { | 9 | { |
10 | QApplication app(argc, argv); | 10 | QApplication app(argc, argv); |
11 | 11 | ||
12 | new Console("Akonadi Next Client"); | 12 | new Console("Akonadi2 Client"); |
13 | 13 | ||
14 | ResourceAccess *resAccess = 0; | 14 | ResourceAccess *resAccess = 0; |
15 | QCommandLineParser cliOptions; | 15 | QCommandLineParser cliOptions; |
diff --git a/client/resourceaccess.cpp b/client/resourceaccess.cpp index fce8ca6..bbc7f8b 100644 --- a/client/resourceaccess.cpp +++ b/client/resourceaccess.cpp | |||
@@ -73,8 +73,8 @@ void ResourceAccess::connected() | |||
73 | 73 | ||
74 | { | 74 | { |
75 | auto name = m_fbb.CreateString(QString::number((long long)this).toLatin1()); | 75 | auto name = m_fbb.CreateString(QString::number((long long)this).toLatin1()); |
76 | auto command = Akonadi::CreateHandshake(m_fbb, name); | 76 | auto command = Akonadi2::CreateHandshake(m_fbb, name); |
77 | Akonadi::FinishHandshakeBuffer(m_fbb, command); | 77 | Akonadi2::FinishHandshakeBuffer(m_fbb, command); |
78 | Commands::write(m_socket, Commands::HandshakeCommand, m_fbb); | 78 | Commands::write(m_socket, Commands::HandshakeCommand, m_fbb); |
79 | m_fbb.Clear(); | 79 | m_fbb.Clear(); |
80 | } | 80 | } |
@@ -104,7 +104,7 @@ void ResourceAccess::connectionError(QLocalSocket::LocalSocketError error) | |||
104 | log(QString("Attempting to start resource ") + m_resourceName); | 104 | log(QString("Attempting to start resource ") + m_resourceName); |
105 | QStringList args; | 105 | QStringList args; |
106 | args << m_resourceName; | 106 | args << m_resourceName; |
107 | if (QProcess::startDetached("akonadinext_synchronizer", args)) { | 107 | if (QProcess::startDetached("akonadi2_synchronizer", args)) { |
108 | m_socket->open(); | 108 | m_socket->open(); |
109 | } | 109 | } |
110 | } | 110 | } |
@@ -137,7 +137,7 @@ bool ResourceAccess::processMessageBuffer() | |||
137 | 137 | ||
138 | switch (commandId) { | 138 | switch (commandId) { |
139 | case Commands::RevisionUpdateCommand: { | 139 | case Commands::RevisionUpdateCommand: { |
140 | auto buffer = Akonadi::GetRevisionUpdate(m_partialMessageBuffer.constData() + headerSize); | 140 | auto buffer = Akonadi2::GetRevisionUpdate(m_partialMessageBuffer.constData() + headerSize); |
141 | log(QString("Revision updated to: %1").arg(buffer->revision())); | 141 | log(QString("Revision updated to: %1").arg(buffer->revision())); |
142 | emit revisionChanged(buffer->revision()); | 142 | emit revisionChanged(buffer->revision()); |
143 | break; | 143 | break; |