ledger-core
OperationQuery.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from wallet.djinni
3 
4 #ifndef DJINNI_GENERATED_OPERATIONQUERY_HPP
5 #define DJINNI_GENERATED_OPERATIONQUERY_HPP
6 
7 #include <cstdint>
8 #include <memory>
9 #ifndef LIBCORE_EXPORT
10  #if defined(_MSC_VER)
11  #include <libcore_export.h>
12  #else
13  #define LIBCORE_EXPORT
14  #endif
15 #endif
16 
17 namespace ledger { namespace core { namespace api {
18 
19 class OperationListCallback;
20 class QueryFilter;
21 enum class OperationOrderKey;
22 
24 class LIBCORE_EXPORT OperationQuery {
25 public:
26  virtual ~OperationQuery() {}
27 
34  virtual std::shared_ptr<OperationQuery> addOrder(OperationOrderKey key, bool descending) = 0;
35 
40  virtual std::shared_ptr<QueryFilter> filter() = 0;
41 
46  virtual std::shared_ptr<OperationQuery> offset(int64_t from) = 0;
47 
52  virtual std::shared_ptr<OperationQuery> limit(int64_t count) = 0;
53 
58  virtual std::shared_ptr<OperationQuery> complete() = 0;
59 
61  virtual std::shared_ptr<OperationQuery> partial() = 0;
62 
67  virtual void execute(const std::shared_ptr<OperationListCallback> & callback) = 0;
68 };
69 
70 } } } // namespace ledger::core::api
71 #endif //DJINNI_GENERATED_OPERATIONQUERY_HPP
Definition: OperationQuery.hpp:24
Definition: Account.cpp:8