Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

bitcoinaddressvalidator.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2014 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_QT_BITCOINADDRESSVALIDATOR_H
6 #define BITCOIN_QT_BITCOINADDRESSVALIDATOR_H
7 
8 #include <QValidator>
9 
13 class BitcoinAddressEntryValidator : public QValidator
14 {
15  Q_OBJECT
16 
17 public:
18  explicit BitcoinAddressEntryValidator(QObject *parent, bool fAllowURI = false);
19 
20  State validate(QString &input, int &pos) const;
21 
22 private:
23  bool fAllowURI;
24 };
25 
28 class BitcoinAddressCheckValidator : public QValidator
29 {
30  Q_OBJECT
31 
32 public:
33  explicit BitcoinAddressCheckValidator(QObject *parent);
34 
35  State validate(QString &input, int &pos) const;
36 };
37 
38 #endif // BITCOIN_QT_BITCOINADDRESSVALIDATOR_H
State validate(QString &input, int &pos) const
Base58 entry widget validator, checks for valid characters and removes some whitespace.
bool fAllowURI
BitcoinAddressEntryValidator(QObject *parent, bool fAllowURI=false)
State validate(QString &input, int &pos) const
Bitcoin address widget validator, checks for a valid bitcoin address.
Released under the MIT license