text: // Copyright (c) 2019 The Veil developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #ifndef UPDATEADDRESS_H
  #define UPDATEADDRESS_H
  
  #include <interfaces/wallet.h>
  #include <qt/addresstablemodel.h>
  #include <QWidget>
  #include <QDialog>
  #include <QString>
  
  class WalletModel;
  class AddressTableModel;
  
  namespace Ui {
  class UpdateAddress;
  }
  
  class UpdateAddress : public QDialog
  {
      Q_OBJECT
  
  public:
      explicit UpdateAddress(const QModelIndex &_index, QString addressStr, std::string _addressPurpose, QWidget *parent = nullptr,  WalletModel* _walletModel = nullptr,
                             AddressTableModel *_model = nullptr);
      ~UpdateAddress();
  private Q_SLOTS:
      void onEscapeClicked();
      void onBtnSaveClicked();
  private:
      Ui::UpdateAddress *ui;
      WalletModel *walletModel;
      QModelIndex index;
      QString addressStr;
      std::string addressPurpose;
      QString address;
      AddressTableModel *model;
  };
  
  #endif // UPDATEADDRESS_H
  