diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/CMakeLists.txt | 9 | ||||
-rw-r--r-- | client/clientapi.h | 10 |
2 files changed, 14 insertions, 5 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index a0ebe3a..8001d5f 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt | |||
@@ -3,12 +3,15 @@ project(akonadi2_client) | |||
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(akonadi2client_SRCS | 5 | set(akonadi2client_SRCS |
6 | main.cpp | ||
7 | resourceaccess.cpp | 6 | resourceaccess.cpp |
8 | ) | 7 | ) |
9 | 8 | ||
10 | add_executable(${PROJECT_NAME} ${akonadi2client_SRCS}) | 9 | add_library(${PROJECT_NAME}_lib ${akonadi2client_SRCS}) |
11 | target_link_libraries(${PROJECT_NAME} akonadi2common) | 10 | target_link_libraries(${PROJECT_NAME}_lib akonadi2common) |
11 | qt5_use_modules(${PROJECT_NAME}_lib Widgets Network) | ||
12 | |||
13 | add_executable(${PROJECT_NAME} main.cpp) | ||
14 | target_link_libraries(${PROJECT_NAME} akonadi2_client_lib akonadi2common) | ||
12 | qt5_use_modules(${PROJECT_NAME} Widgets Network) | 15 | qt5_use_modules(${PROJECT_NAME} Widgets Network) |
13 | install(TARGETS ${PROJECT_NAME} DESTINATION bin) | 16 | install(TARGETS ${PROJECT_NAME} DESTINATION bin) |
14 | 17 | ||
diff --git a/client/clientapi.h b/client/clientapi.h index 59efe32..592fa48 100644 --- a/client/clientapi.h +++ b/client/clientapi.h | |||
@@ -185,8 +185,14 @@ using namespace async; | |||
185 | class Query | 185 | class Query |
186 | { | 186 | { |
187 | public: | 187 | public: |
188 | //Resources to search | 188 | //Could also be a propertyFilter |
189 | QSet<QString> resources; | 189 | QStringList resources; |
190 | //Could also be a propertyFilter | ||
191 | QStringList ids; | ||
192 | //Filters to apply | ||
193 | QHash<QString, QVariant> propertyFilter; | ||
194 | //Properties to retrieve | ||
195 | QSet<QString> requestedProperties; | ||
190 | }; | 196 | }; |
191 | 197 | ||
192 | 198 | ||