summaryrefslogtreecommitdiffstats
path: root/tests/dummyresourcetest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-13 20:15:14 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-15 09:30:32 +0200
commitc55054e899660f2d667af2c2e573a1267d47358e (patch)
tree0f547effcad0c20521f0bc047a9eb1d4130b052b /tests/dummyresourcetest.cpp
parent4652a39fc6869fc5af46367c35027b2b53478268 (diff)
downloadsink-c55054e899660f2d667af2c2e573a1267d47358e.tar.gz
sink-c55054e899660f2d667af2c2e573a1267d47358e.zip
Use a queryrunner to execute queries.
The queryrunner is responsible for running queries and keeping them up to date. This is required for self-updating queries. To get this to work properly the ResultProvider/emitter had to be fixed. The emitter now only lives as long as the client holds a reference to it, allowing the provider to detect when it is no longer necessary to keep the query alive (because noone is listening). In the process various lifetime issues have been fixed, that we're caused by lambdas capturing smartpointers, that then extended the lifetime of the associated objects unpredictably.
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r--tests/dummyresourcetest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp
index 5fed7cd..9523e5d 100644
--- a/tests/dummyresourcetest.cpp
+++ b/tests/dummyresourcetest.cpp
@@ -2,13 +2,13 @@
2 2
3#include <QString> 3#include <QString>
4 4
5// #include "dummycalendar_generated.h"
6#include "event_generated.h" 5#include "event_generated.h"
7#include "entity_generated.h" 6#include "entity_generated.h"
8#include "metadata_generated.h" 7#include "metadata_generated.h"
9#include "createentity_generated.h" 8#include "createentity_generated.h"
10#include "dummyresource/resourcefactory.h" 9#include "dummyresource/resourcefactory.h"
11#include "clientapi.h" 10#include "clientapi.h"
11#include "synclistresult.h"
12#include "commands.h" 12#include "commands.h"
13#include "entitybuffer.h" 13#include "entitybuffer.h"
14 14