Bugfix: Replace "URL" with "URI" where we aren't actually working with URLs
[novacoin.git] / src / qt / sendcoinsdialog.h
1 #ifndef SENDCOINSDIALOG_H
2 #define SENDCOINSDIALOG_H
3
4 #include <QDialog>
5
6 namespace Ui {
7     class SendCoinsDialog;
8 }
9 class WalletModel;
10 class SendCoinsEntry;
11 class SendCoinsRecipient;
12
13 QT_BEGIN_NAMESPACE
14 class QUrl;
15 QT_END_NAMESPACE
16
17 class SendCoinsDialog : public QDialog
18 {
19     Q_OBJECT
20
21 public:
22     explicit SendCoinsDialog(QWidget *parent = 0);
23     ~SendCoinsDialog();
24
25     void setModel(WalletModel *model);
26
27     // Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907)
28     // Hence we have to set it up manually
29     QWidget *setupTabChain(QWidget *prev);
30
31     void pasteEntry(const SendCoinsRecipient &rv);
32     void handleURI(const QUrl *uri);
33     void handleURI(const QString &uri);
34
35 public slots:
36     void clear();
37     void reject();
38     void accept();
39     SendCoinsEntry *addEntry();
40     void updateRemoveEnabled();
41     void setBalance(qint64 balance, qint64 unconfirmedBalance);
42
43 private:
44     Ui::SendCoinsDialog *ui;
45     WalletModel *model;
46
47 private slots:
48     void on_sendButton_clicked();
49
50     void removeEntry(SendCoinsEntry* entry);
51 };
52
53 #endif // SENDCOINSDIALOG_H