aboutsummaryrefslogtreecommitdiff
path: root/src/qt/addresstablemodel.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-21 20:34:43 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-21 20:36:03 +0200
commitb9e80983a5c076fed655a7c3c67b53bd9ecc3dda (patch)
tree8160290efeef086d82cd7b156a0538e922363ad8 /src/qt/addresstablemodel.h
parentf5927f5b32c9e28033fb7a00dd43f3162781c1d0 (diff)
Allow changing default address (fixes issue #6)
Diffstat (limited to 'src/qt/addresstablemodel.h')
-rw-r--r--src/qt/addresstablemodel.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/qt/addresstablemodel.h b/src/qt/addresstablemodel.h
index 8799414334..32dd4d9f1d 100644
--- a/src/qt/addresstablemodel.h
+++ b/src/qt/addresstablemodel.h
@@ -15,7 +15,8 @@ public:
enum ColumnIndex {
Label = 0, /* User specified label */
- Address = 1 /* Bitcoin address */
+ Address = 1, /* Bitcoin address */
+ IsDefaultAddress = 2 /* Is default address? */
};
enum {
@@ -37,18 +38,25 @@ public:
/* Add an address to the model.
Returns the added address on success, and an empty string otherwise.
*/
- QString addRow(const QString &type, const QString &label, const QString &address);
+ QString addRow(const QString &type, const QString &label, const QString &address, bool setAsDefault);
+
+ /* Set and get default address */
+ QString getDefaultAddress() const;
+ void setDefaultAddress(const QString &defaultAddress);
/* Update address list from core. Invalidates any indices.
*/
void updateList();
+
private:
AddressTablePriv *priv;
QStringList columns;
+
signals:
+ void defaultAddressChanged(const QString &address);
public slots:
-
+ void update();
};
#endif // ADDRESSTABLEMODEL_H