You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
806 B
35 lines
806 B
3 years ago
|
#ifndef WOWLET_COINS_H
|
||
|
#define WOWLET_COINS_H
|
||
|
|
||
|
#include "wallet/api/wallet2_api.h"
|
||
|
#include "wallet/wallet2.h"
|
||
|
|
||
|
namespace Monero {
|
||
|
|
||
|
class WalletImpl;
|
||
|
|
||
|
class CoinsImpl : public Coins
|
||
|
{
|
||
|
public:
|
||
|
explicit CoinsImpl(WalletImpl * wallet);
|
||
|
~CoinsImpl() override;
|
||
|
int count() const override;
|
||
|
CoinsInfo * coin(int index) const override;
|
||
|
std::vector<CoinsInfo*> getAll() const override;
|
||
|
void refresh() override;
|
||
|
|
||
|
void setFrozen(int index) override;
|
||
|
void thaw(int index) override;
|
||
|
|
||
|
bool isTransferUnlocked(uint64_t unlockTime, uint64_t blockHeight) override;
|
||
|
|
||
|
private:
|
||
|
WalletImpl *m_wallet;
|
||
|
std::vector<CoinsInfo*> m_rows;
|
||
|
mutable boost::shared_mutex m_rowsMutex;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif //WOWLET_COINS_H
|