Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
sendmpdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef SENDMPDIALOG_H
6 #define SENDMPDIALOG_H
7 
8 #include "walletmodel.h"
9 
10 #include <QDialog>
11 #include <QString>
12 
13 class OptionsModel;
14 class SendMPEntry;
15 class SendCoinsRecipient;
16 
17 QT_BEGIN_NAMESPACE
18 class QUrl;
19 QT_END_NAMESPACE
20 
21 namespace Ui {
22  class SendMPDialog;
23 }
24 
26 class SendMPDialog : public QDialog
27 {
28  Q_OBJECT
29 
30 public:
31  explicit SendMPDialog(QWidget *parent = 0);
32 
33  void setModel(WalletModel *model);
34  void clearFields();
35  void sendMPTransaction();
36  void updateFrom();
37  void updateProperty();
38  void updateBalances();
42 
43  void setAddress(const QString &address);
44  void pasteEntry(const SendCoinsRecipient &rv);
45  bool handlePaymentRequest(const SendCoinsRecipient &recipient);
46 
47 public slots:
48 // void setBalance(qint64 balance, qint64 unconfirmedBalance, qint64 immatureBalance);
49  void propertyComboBoxChanged(int idx);
50  void sendFromComboBoxChanged(int idx);
51  void clearButtonClicked();
52  void sendButtonClicked();
53  void balancesUpdated();
54 
55 private:
59 
60  // Process WalletModel::SendCoinsReturn and generate a pair consisting
61  // of a message and message flags for use in emit message().
62  // Additional parameter msgArg can be used via .arg(msgArg).
63  void processSendMPReturn(const WalletModel::SendCoinsReturn &SendCoinsReturn, const QString &msgArg = QString());
64 
65 private slots:
66 // void on_sendButton_clicked();
67 
68 signals:
69  // Fired when a message should be reported to the user
70  void message(const QString &title, const QString &message, unsigned int style);
71 };
72 
73 #endif // SENDMPDIALOG_H
void propertyComboBoxChanged(int idx)
QWidget * setupTabChain(QWidget *prev)
Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue https://...
Dialog for sending Master Protocol tokens.
Definition: sendmpdialog.h:26
void balancesUpdated()
SendMPDialog(QWidget *parent=0)
WalletModel * model
Definition: sendmpdialog.h:57
void sendButtonClicked()
void pasteEntry(const SendCoinsRecipient &rv)
void clearButtonClicked()
Ui::SendMPDialog * ui
Definition: sendmpdialog.h:56
bool fNewRecipientAllowed
Definition: sendmpdialog.h:58
void setAddress(const QString &address)
void message(const QString &title, const QString &message, unsigned int style)
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:20
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:96
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void setModel(WalletModel *model)
void sendFromComboBoxChanged(int idx)
void updateBalances()
void sendMPTransaction()
void updateProperty()
void processSendMPReturn(const WalletModel::SendCoinsReturn &SendCoinsReturn, const QString &msgArg=QString())
void clearFields()