From c55054e899660f2d667af2c2e573a1267d47358e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 13 Apr 2015 20:15:14 +0200 Subject: 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. --- tests/dummyresourcebenchmark.cpp | 1 + tests/dummyresourcetest.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index d83cb70..e350747 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp @@ -7,6 +7,7 @@ #include "clientapi.h" #include "commands.h" #include "entitybuffer.h" +#include "synclistresult.h" #include "event_generated.h" #include "entity_generated.h" 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 @@ #include -// #include "dummycalendar_generated.h" #include "event_generated.h" #include "entity_generated.h" #include "metadata_generated.h" #include "createentity_generated.h" #include "dummyresource/resourcefactory.h" #include "clientapi.h" +#include "synclistresult.h" #include "commands.h" #include "entitybuffer.h" -- cgit v1.2.3