You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
515 B
25 lines
515 B
14 years ago
|
#ifndef BITCOINADDRESSVALIDATOR_H
|
||
|
#define BITCOINADDRESSVALIDATOR_H
|
||
|
|
||
|
#include <QRegExpValidator>
|
||
|
|
||
14 years ago
|
/* Base48 entry widget validator.
|
||
|
Corrects near-miss characters and refuses characters that are no part of base48.
|
||
|
*/
|
||
|
class BitcoinAddressValidator : public QValidator
|
||
14 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit BitcoinAddressValidator(QObject *parent = 0);
|
||
|
|
||
14 years ago
|
State validate(QString &input, int &pos) const;
|
||
|
|
||
14 years ago
|
static const int MaxAddressLength = 34;
|
||
14 years ago
|
signals:
|
||
|
|
||
|
public slots:
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // BITCOINADDRESSVALIDATOR_H
|