qt: move bitcoin URI formatting to guiutil

Follow the same pattern as the parseBitcoinURI function.
This commit is contained in:
Wladimir J. van der Laan
2013-10-18 14:03:17 +02:00
parent 8a7f37c797
commit 786b066f03
3 changed files with 56 additions and 57 deletions

View File

@@ -35,6 +35,7 @@ namespace GUIUtil
// See Bitcoin URI definition discussion here: https://bitcointalk.org/index.php?topic=33490.0
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out);
bool parseBitcoinURI(QString uri, SendCoinsRecipient *out);
QString formatBitcoinURI(const SendCoinsRecipient &info);
// Returns true if given address+amount meets "dust" definition
bool isDust(const QString& address, qint64 amount);