integrating cpp wallet mockups with QML

This commit is contained in:
Ilya Kitaev
2016-02-24 13:25:20 +03:00
parent 1195a89d06
commit 625041df18
11 changed files with 172 additions and 36 deletions

View File

@@ -3,15 +3,26 @@
#include <QObject>
class Wallet;
class WalletManager : public QObject
{
Q_OBJECT
public:
explicit WalletManager(QObject *parent = 0);
static WalletManager * instance();
Q_INVOKABLE Wallet * createWallet(const QString &path, const QString &password,
const QString &language);
Q_INVOKABLE Wallet * openWallet(const QString &path, const QString &language);
Q_INVOKABLE bool moveWallet(const QString &src, const QString &dst);
signals:
public slots:
private:
explicit WalletManager(QObject *parent = 0);
static WalletManager * m_instance;
};
#endif // WALLETMANAGER_H
#endif // WALLETMANAGER_H