mirror of
https://github.com/logos-blockchain/logos-blockchain-module.git
synced 2026-02-19 20:43:12 +00:00
* Move config to configs dir. * wip * wip * junie refactor cmakelists and flake * Refactor Nix, CMakeLists and codebase to enable proper nix building, and good IDE integration. * Add src/ directory. * Split into header and source files. * Fix macOs SSL certs issue. * Mac fixes * Update Macos lib extension --------- Co-authored-by: Daniel <sanchez.quiros.daniel@gmail.com>
26 lines
818 B
C++
26 lines
818 B
C++
#pragma once
|
|
|
|
#include "i_logos_blockchain_module.h"
|
|
|
|
class LogosBlockchainModule final : public ILogosBlockchainModule {
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID ILogosBlockchainModule_iid FILE "../metadata.json")
|
|
|
|
public:
|
|
LogosBlockchainModule();
|
|
~LogosBlockchainModule() override;
|
|
|
|
[[nodiscard]] QString name() const override;
|
|
[[nodiscard]] QString version() const override;
|
|
|
|
Q_INVOKABLE void initLogos(LogosAPI*) override;
|
|
Q_INVOKABLE int start(const QString&) override;
|
|
Q_INVOKABLE int stop() override;
|
|
Q_INVOKABLE int subscribe() override;
|
|
Q_INVOKABLE int wallet_get_balance(const uint8_t*, const HeaderId*, BalanceResult*) override;
|
|
Q_INVOKABLE int wallet_transfer_funds(const TransferFundsArguments*, Hash*) override;
|
|
|
|
private:
|
|
LogosBlockchainNode* node = nullptr;
|
|
};
|