1#ifndef _DITTO_LIVE_QUERY_
2#define _DITTO_LIVE_QUERY_
6#include "LiveQueryEvent.hpp"
7#include "LiveQueryMove.hpp"
9#include "SingleDocumentLiveQueryEvent.hpp"
10#include "Subscription.hpp"
19#warning FIXME: remove include
21#include "dittoffi.hpp"
24class DittoHandleWrapper;
31typedef std::function<void(std::shared_ptr<Document>,
32 SingleDocumentLiveQueryEvent)>
33 SingleDocumentLiveQueryEventCallback;
49typedef std::function<void(std::shared_ptr<Document>,
51 std::function<
void()> &)>
52 SingleDocumentLiveQueryEventWithNextSignalCallback;
61 std::function<
void()> &)>
70 LiveQueryEventCallback;
86 std::function<
void()> &)>
87 LiveQueryEventWithNextSignalCallback;
96 std::function<
void()> &)>
116 void on_stop()
override;
117 LiveQuery(std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper,
118 std::string query,
nlohmann::json query_args, std::string coll_name,
119 std::shared_ptr<OrderBy> &order_by, int32_t limit, uint32_t offset,
120 LiveQueryAvailability_t availability,
Subscription *subscription,
121 LiveQueryEventWithNextSignalCallback event_callback);
The events that you receive when dealing with live queries.
Definition LiveQueryEvent.hpp:15
The type that is returned when calling observe_local. It handles the logic for calling the event hand...
Definition LiveQuery.hpp:108
An observation token returned by any observation API in the Ditto SDK. Retain this object to continue...
Definition Observer.hpp:11
These objects are returned when using find-like functionality on Collection objects.
Definition PendingCursorOperation.hpp:44
These objects are returned when using Collection::find_by_id functionality.
Definition PendingIDSpecificOperation.hpp:40
Provides information about a live query event relating to a single document live query.
Definition SingleDocumentLiveQueryEvent.hpp:16
While Subscription objects remain in scope they ensure that documents in the collection specified,...
Definition Subscription.hpp:19
basic_json<> json
default JSON class
Definition json.hpp:2933
A thin wrapper around a function that will get called when there are updates relating to a live query...
Definition LiveQuery.hpp:76
A thin wrapper around a function that will get called when there are updates relating to a live query...
Definition LiveQuery.hpp:94
A thin wrapper around a function that will get called when there are updates relating to a live query...
Definition LiveQuery.hpp:39
A thin wrapper around a function that will get called when there are updates relating to a live query...
Definition LiveQuery.hpp:59