Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletframe.h
Show All 31 Lines | |||||
public: | public: | ||||
explicit WalletFrame(const PlatformStyle *platformStyle, | explicit WalletFrame(const PlatformStyle *platformStyle, | ||||
const Config *configIn, BitcoinGUI *_gui = 0); | const Config *configIn, BitcoinGUI *_gui = 0); | ||||
~WalletFrame(); | ~WalletFrame(); | ||||
void setClientModel(ClientModel *clientModel); | void setClientModel(ClientModel *clientModel); | ||||
bool addWallet(const QString &name, WalletModel *walletModel); | bool addWallet(WalletModel *walletModel); | ||||
bool setCurrentWallet(const QString &name); | bool setCurrentWallet(const QString &name); | ||||
bool removeWallet(const QString &name); | bool removeWallet(const QString &name); | ||||
void removeAllWallets(); | void removeAllWallets(); | ||||
bool handlePaymentRequest(const SendCoinsRecipient &recipient); | bool handlePaymentRequest(const SendCoinsRecipient &recipient); | ||||
void showOutOfSyncWarning(bool fShow); | void showOutOfSyncWarning(bool fShow); | ||||
Q_SIGNALS: | Q_SIGNALS: | ||||
/** Notify that the user has requested more information about the | /** Notify that the user has requested more information about the | ||||
* out-of-sync warning */ | * out-of-sync warning */ | ||||
void requestedSyncWarningInfo(); | void requestedSyncWarningInfo(); | ||||
private: | private: | ||||
QStackedWidget *walletStack; | QStackedWidget *walletStack; | ||||
BitcoinGUI *gui; | BitcoinGUI *gui; | ||||
ClientModel *clientModel; | ClientModel *clientModel; | ||||
QMap<QString, WalletView *> mapWalletViews; | QMap<QString, WalletView *> mapWalletViews; | ||||
bool bOutOfSync; | bool bOutOfSync; | ||||
const PlatformStyle *platformStyle; | const PlatformStyle *platformStyle; | ||||
const Config *config; | const Config *config; | ||||
public: | |||||
WalletView *currentWalletView(); | WalletView *currentWalletView(); | ||||
public Q_SLOTS: | public Q_SLOTS: | ||||
/** Switch to overview (home) page */ | /** Switch to overview (home) page */ | ||||
void gotoOverviewPage(); | void gotoOverviewPage(); | ||||
/** Switch to history (transactions) page */ | /** Switch to history (transactions) page */ | ||||
void gotoHistoryPage(); | void gotoHistoryPage(); | ||||
/** Switch to receive coins page */ | /** Switch to receive coins page */ | ||||
Show All 27 Lines |