4 #ifndef DJINNI_GENERATED_WALLETPOOL_HPP 5 #define DJINNI_GENERATED_WALLETPOOL_HPP 11 #ifndef LIBCORE_EXPORT 13 #include <libcore_export.h> 15 #define LIBCORE_EXPORT 19 namespace ledger {
namespace core {
namespace api {
22 class CurrencyCallback;
23 class CurrencyListCallback;
24 class DatabaseBackend;
26 class ErrorCodeCallback;
34 class RandomNumberGenerator;
35 class ThreadDispatcher;
37 class WalletListCallback;
38 class WebSocketClient;
60 static std::shared_ptr<WalletPool> newInstance(
const std::string & name,
const std::string & password,
const std::shared_ptr<HttpClient> & httpClient,
const std::shared_ptr<WebSocketClient> & webSocketClient,
const std::shared_ptr<PathResolver> & pathResolver,
const std::shared_ptr<LogPrinter> & logPrinter,
const std::shared_ptr<ThreadDispatcher> & dispatcher,
const std::shared_ptr<RandomNumberGenerator> & rng,
const std::shared_ptr<DatabaseBackend> & backend,
const std::shared_ptr<DynamicObject> & configuration);
66 virtual std::shared_ptr<Logger> getLogger() = 0;
72 virtual std::string getName() = 0;
78 virtual std::shared_ptr<Preferences> getPreferences() = 0;
84 virtual void getWalletCount(
const std::shared_ptr<I32Callback> & callback) = 0;
92 virtual void getWallets(int32_t from, int32_t size,
const std::shared_ptr<WalletListCallback> & callback) = 0;
99 virtual void getWallet(
const std::string & name,
const std::shared_ptr<WalletCallback> & callback) = 0;
109 virtual void updateWalletConfig(
const std::string & name,
const std::shared_ptr<DynamicObject> & configuration,
const std::shared_ptr<ErrorCodeCallback> & callback) = 0;
118 virtual void createWallet(
const std::string & name,
const Currency & currency,
const std::shared_ptr<DynamicObject> & configuration,
const std::shared_ptr<WalletCallback> & callback) = 0;
124 virtual void getCurrencies(
const std::shared_ptr<CurrencyListCallback> & callback) = 0;
131 virtual void getCurrency(
const std::string & name,
const std::shared_ptr<CurrencyCallback> & callback) = 0;
138 virtual void getLastBlock(
const std::string & currencyName,
const std::shared_ptr<BlockCallback> & callback) = 0;
144 virtual std::shared_ptr<EventBus> getEventBus() = 0;
150 virtual void eraseDataSince(
const std::chrono::system_clock::time_point & date,
const std::shared_ptr<ErrorCodeCallback> & callback) = 0;
170 virtual void freshResetAll(
const std::shared_ptr<ErrorCodeCallback> & callback) = 0;
181 virtual void changePassword(
const std::string & oldPassword,
const std::string & newPassword,
const std::shared_ptr<ErrorCodeCallback> & callback) = 0;
185 #endif //DJINNI_GENERATED_WALLETPOOL_HPP Definition: Currency.hpp:23
Definition: Account.cpp:8
Definition: WalletPool.hpp:42