aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletview.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-10-25 16:10:43 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2013-10-27 08:45:54 +0100
commit7d16bb387459de0fbf0cda3a5b97d6032cab1799 (patch)
tree7f6c0fe692033ca98835c92a9988a3972ab02e6d /src/qt/walletview.h
parent0d09b3e8b0218169ab7ad2aa787c43ea11bc7060 (diff)
downloadbitcoin-7d16bb387459de0fbf0cda3a5b97d6032cab1799.tar.xz
qt: clean up signal handling in walletframe/walletview
Use proper signals everywhere. Removes the need to store a pointer to the BitcoinGUI object in the walletview. Also removes the interdependence between setWalletModel / setBitcoinGUI.
Diffstat (limited to 'src/qt/walletview.h')
-rw-r--r--src/qt/walletview.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/qt/walletview.h b/src/qt/walletview.h
index 60544cbf88..61515047ca 100644
--- a/src/qt/walletview.h
+++ b/src/qt/walletview.h
@@ -55,7 +55,6 @@ public:
void showOutOfSyncWarning(bool fShow);
private:
- BitcoinGUI *gui;
ClientModel *clientModel;
WalletModel *walletModel;
@@ -85,7 +84,7 @@ public slots:
The new items are those between start and end inclusive, under the given parent item.
*/
- void incomingTransaction(const QModelIndex& parent, int start, int /*end*/);
+ void processNewTransaction(const QModelIndex& parent, int start, int /*end*/);
/** Encrypt the wallet */
void encryptWallet(bool status);
/** Backup the wallet */
@@ -100,14 +99,17 @@ public slots:
/** Show used receiving addresses */
void usedReceivingAddresses();
- void setEncryptionStatus();
-
+ /** Re-emit encryption status signal */
+ void updateEncryptionStatus();
signals:
/** Signal that we want to show the main window */
void showNormalIfMinimized();
-
/** Fired when a message should be reported to the user */
void message(const QString &title, const QString &message, unsigned int style);
+ /** Encryption status of wallet changed */
+ void encryptionStatusChanged(int status);
+ /** Notify that a new transaction appeared */
+ void incomingTransaction(const QString& date, int unit, qint64 amount, const QString& type, const QString& address);
};
#endif // WALLETVIEW_H