aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-08-07 16:04:48 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-08-07 16:04:48 +0200
commitdb7f023417eeeb96eed35c9d06541544abcd7033 (patch)
tree2f10b47a3090b5a7b1ae2c54342d0a7ed70b6d3e /src/qt/guiutil.h
parent330c190958a31a126de7a7b12124070300b1567b (diff)
Accept "bitcoin:" URL drops from browsers
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index fb5c575ab5..012e49754c 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