bitcoin/src/qt/bitcoinaddressvalidator.h

25 lines
516 B
C
Raw Normal View History

2011-05-13 16:00:27 -04:00
#ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QRegExpValidator>
2011-11-13 09:19:52 -03:00
/** Base48 entry widget validator.
2011-06-03 04:52:49 -04:00
Corrects near-miss characters and refuses characters that are no part of base48.
*/
class BitcoinAddressValidator : public QValidator
2011-05-13 16:00:27 -04:00
{
Q_OBJECT
public:
explicit BitcoinAddressValidator(QObject *parent = 0);
State validate(QString &input, int &pos) const;
static const int MaxAddressLength = 35;
2011-05-13 16:00:27 -04:00
signals:
public slots:
};
#endif // BITCOINADDRESSVALIDATOR_H