Anoncoin  0.9.4
P2P Digital Currency
editaddressdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef EDITADDRESSDIALOG_H
7 #define EDITADDRESSDIALOG_H
8 
9 #include <QDialog>
10 
11 class AddressTableModel;
12 
13 namespace Ui {
14  class EditAddressDialog;
15 }
16 
17 QT_BEGIN_NAMESPACE
18 class QDataWidgetMapper;
19 QT_END_NAMESPACE
20 
23 class EditAddressDialog : public QDialog
24 {
25  Q_OBJECT
26 
27 public:
28  enum Mode {
33  };
34 
35  explicit EditAddressDialog(Mode mode, QWidget *parent);
37 
39  void loadRow(int row);
40 
41  QString getAddress() const;
42  void setAddress(const QString &address);
43 
44 public slots:
45  void accept();
46 
47 private:
48  bool saveCurrentRow();
49 
51  QDataWidgetMapper *mapper;
54 
55  QString address;
56 };
57 
58 #endif // EDITADDRESSDIALOG_H
QString getAddress() const
EditAddressDialog(Mode mode, QWidget *parent)
void setModel(AddressTableModel *model)
QDataWidgetMapper * mapper
Qt model of the address book in the core.
AddressTableModel * model
void setAddress(const QString &address)
Dialog for editing an address and associated information.
Ui::EditAddressDialog * ui