mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-09 00:47:26 -04:00
WalletManager: instantiable QML type
This commit is contained in:
@@ -85,17 +85,6 @@ private:
|
||||
PassphraseHelper m_phelper;
|
||||
};
|
||||
|
||||
WalletManager * WalletManager::m_instance = nullptr;
|
||||
|
||||
WalletManager *WalletManager::instance()
|
||||
{
|
||||
if (!m_instance) {
|
||||
m_instance = new WalletManager;
|
||||
}
|
||||
|
||||
return m_instance;
|
||||
}
|
||||
|
||||
Wallet *WalletManager::createWallet(const QString &path, const QString &password,
|
||||
const QString &language, NetworkType::Type nettype, quint64 kdfRounds)
|
||||
{
|
||||
|
||||
@@ -51,6 +51,9 @@ class WalletManager : public QObject, public PassprasePrompter
|
||||
Q_PROPERTY(bool connected READ connected)
|
||||
|
||||
public:
|
||||
explicit WalletManager(QObject *parent = 0);
|
||||
~WalletManager();
|
||||
|
||||
enum LogLevel {
|
||||
LogLevel_Silent = Monero::WalletManagerFactory::LogLevel_Silent,
|
||||
LogLevel_0 = Monero::WalletManagerFactory::LogLevel_0,
|
||||
@@ -62,7 +65,6 @@ public:
|
||||
LogLevel_Max = Monero::WalletManagerFactory::LogLevel_Max,
|
||||
};
|
||||
|
||||
static WalletManager * instance();
|
||||
// wizard: createWallet path;
|
||||
Q_INVOKABLE Wallet * createWallet(const QString &path, const QString &password,
|
||||
const QString &language, NetworkType::Type nettype = NetworkType::MAINNET, quint64 kdfRounds = 1);
|
||||
@@ -208,9 +210,6 @@ public slots:
|
||||
private:
|
||||
friend class WalletPassphraseListenerImpl;
|
||||
|
||||
explicit WalletManager(QObject *parent = 0);
|
||||
~WalletManager();
|
||||
|
||||
bool isMining() const;
|
||||
|
||||
static WalletManager * m_instance;
|
||||
|
||||
Reference in New Issue
Block a user