move back to original directory structure
[novacoin.git] / src / qt / bitcoinaddressvalidator.h
1 #ifndef BITCOINADDRESSVALIDATOR_H
2 #define BITCOINADDRESSVALIDATOR_H
3
4 #include <QRegExpValidator>
5
6 /* Base48 entry widget validator.
7    Corrects near-miss characters and refuses characters that are no part of base48.
8  */
9 class BitcoinAddressValidator : public QValidator
10 {
11     Q_OBJECT
12 public:
13     explicit BitcoinAddressValidator(QObject *parent = 0);
14
15     State validate(QString &input, int &pos) const;
16
17     static const int MaxAddressLength = 34;
18 signals:
19
20 public slots:
21
22 };
23
24 #endif // BITCOINADDRESSVALIDATOR_H