Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsentry.h
| // Copyright (c) 2011-2015 The Bitcoin Core developers | // Copyright (c) 2011-2015 The Bitcoin Core developers | ||||
| // Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
| // file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
| #ifndef BITCOIN_QT_SENDCOINSENTRY_H | #ifndef BITCOIN_QT_SENDCOINSENTRY_H | ||||
| #define BITCOIN_QT_SENDCOINSENTRY_H | #define BITCOIN_QT_SENDCOINSENTRY_H | ||||
| #include "walletmodel.h" | #include <qt/walletmodel.h> | ||||
| #include <QStackedWidget> | #include <QStackedWidget> | ||||
| class WalletModel; | class WalletModel; | ||||
| class PlatformStyle; | class PlatformStyle; | ||||
| namespace Ui { | namespace Ui { | ||||
| class SendCoinsEntry; | class SendCoinsEntry; | ||||
| } | } | ||||
| /** | /** | ||||
| * A single entry in the dialog for sending bitcoins. | * A single entry in the dialog for sending bitcoins. | ||||
| * Stacked widget, with different UIs for payment requests | * Stacked widget, with different UIs for payment requests | ||||
| * with a strong payee identity. | * with a strong payee identity. | ||||
| */ | */ | ||||
| class SendCoinsEntry : public QStackedWidget { | class SendCoinsEntry : public QStackedWidget { | ||||
| Q_OBJECT | Q_OBJECT | ||||
| public: | public: | ||||
| explicit SendCoinsEntry(const PlatformStyle *platformStyle, | explicit SendCoinsEntry(const PlatformStyle *platformStyle, | ||||
| QWidget *parent = 0); | QWidget *parent = 0); | ||||
| ~SendCoinsEntry(); | ~SendCoinsEntry(); | ||||
| void setModel(WalletModel *model); | void setModel(WalletModel *model); | ||||
| bool validate(); | bool validate(interfaces::Node &node); | ||||
| SendCoinsRecipient getValue(); | SendCoinsRecipient getValue(); | ||||
| /** Return whether the entry is still empty and unedited */ | /** Return whether the entry is still empty and unedited */ | ||||
| bool isClear(); | bool isClear(); | ||||
| void setValue(const SendCoinsRecipient &value); | void setValue(const SendCoinsRecipient &value); | ||||
| void setAddress(const QString &address); | void setAddress(const QString &address); | ||||
| void setAmount(const Amount amount); | void setAmount(const Amount amount); | ||||
| Show All 37 Lines | |||||