]> Git Repo - VerusCoin.git/blob - src/qt/bitcoinaddressvalidator.h
qt: add license header to source files
[VerusCoin.git] / src / qt / bitcoinaddressvalidator.h
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5 #ifndef BITCOINADDRESSVALIDATOR_H
6 #define BITCOINADDRESSVALIDATOR_H
7
8 #include <QValidator>
9
10 /** Base58 entry widget validator.
11    Corrects near-miss characters and refuses characters that are not part of base58.
12  */
13 class BitcoinAddressValidator : public QValidator
14 {
15     Q_OBJECT
16
17 public:
18     explicit BitcoinAddressValidator(QObject *parent = 0);
19
20     State validate(QString &input, int &pos) const;
21
22     static const int MaxAddressLength = 35;
23 };
24
25 #endif // BITCOINADDRESSVALIDATOR_H
This page took 0.024948 seconds and 4 git commands to generate.