1#ifndef _DITTO_ATTACHMENT_FETCHER_
2#define _DITTO_ATTACHMENT_FETCHER_
4#include "AttachmentFetchEvent.hpp"
5#include "AttachmentToken.hpp"
13class DittoHandleWrapper;
20 std::function<
void(std::unique_ptr<AttachmentFetchEvent>)> fn;
28 public std::enable_shared_from_this<AttachmentFetcher> {
40 void on_stop()
override;
46 bool owned_by_store, std::shared_ptr<AttachmentToken>
const &token,
48 std::weak_ptr<Ditto::Fields>
const &weak_ditto_fields,
49 std::shared_ptr<DittoHandleWrapper>
const &ditto_handle_wrapper);
51 std::unique_ptr<ArcCtx> ctx;
52 std::weak_ptr<Ditto::Fields> weak_ditto_fields;
These objects are returned by calls to Store::fetch_attachment.
Definition AttachmentFetcher.hpp:28
A reference to a collection in a Store.
Definition Collection.hpp:27
An observation token returned by any observation API in the Ditto SDK. Retain this object to continue...
Definition Observer.hpp:11
Provides access to Collections and a write transaction API.
Definition Store.hpp:29
A thin wrapper around a function that will get called when there are updates relating to an attempt t...
Definition AttachmentFetcher.hpp:19