diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-08-07 16:04:48 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-08-07 16:04:48 +0200 |
| commit | db7f023417eeeb96eed35c9d06541544abcd7033 (patch) | |
| tree | 2f10b47a3090b5a7b1ae2c54342d0a7ed70b6d3e /src/qt/guiutil.h | |
| parent | Merge branch 'master' of https://github.com/bitcoin/bitcoin (diff) | |
| download | discoin-db7f023417eeeb96eed35c9d06541544abcd7033.tar.xz discoin-db7f023417eeeb96eed35c9d06541544abcd7033.zip | |
Accept "bitcoin:" URL drops from browsers
Diffstat (limited to 'src/qt/guiutil.h')
| -rw-r--r-- | src/qt/guiutil.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h index fb5c575ab..012e49754 100644 --- a/src/qt/guiutil.h +++ b/src/qt/guiutil.h @@ -8,20 +8,26 @@ class QFont; class QLineEdit; class QWidget; class QDateTime; +class QUrl; QT_END_NAMESPACE +class SendCoinsRecipient; class GUIUtil { public: + // Create human-readable string from date static QString DateTimeStr(qint64 nTime); static QString DateTimeStr(const QDateTime &datetime); // Render bitcoin addresses in monospace font static QFont bitcoinAddressFont(); + // Set up widgets for address and amounts static void setupAddressWidget(QLineEdit *widget, QWidget *parent); - static void setupAmountWidget(QLineEdit *widget, QWidget *parent); + + // Parse "bitcoin:" URL into recipient object, return true on succesful parsing + static bool parseBitcoinURL(const QUrl *url, SendCoinsRecipient *out); }; #endif // GUIUTIL_H |