danicoinwallet/src/CurrencyAdapter.h
2015-09-18 12:37:30 +00:00

36 lines
857 B
C++

// Copyright (c) 2011-2015 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <QString>
#include "CryptoNoteCore/Currency.h"
namespace WalletGui {
class CurrencyAdapter {
public:
static CurrencyAdapter& instance();
const CryptoNote::Currency& getCurrency();
QString getCurrencyDisplayName() const;
QString getCurrencyName() const;
QString getCurrencyTicker() const;
quint64 getMinimumFee() const;
quintptr getNumberOfDecimalPlaces() const;
QString formatAmount(quint64 _amount) const;
quint64 parseAmount(const QString& _amountString) const;
bool validateAddress(const QString& _address) const;
private:
CryptoNote::Currency m_currency;
CurrencyAdapter();
~CurrencyAdapter();
};
}