2011-05-13 22:00:27 +02:00
|
|
|
#ifndef BITCOINADDRESSVALIDATOR_H
|
|
|
|
#define BITCOINADDRESSVALIDATOR_H
|
|
|
|
|
|
|
|
#include <QRegExpValidator>
|
|
|
|
|
|
|
|
class BitcoinAddressValidator : public QRegExpValidator
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit BitcoinAddressValidator(QObject *parent = 0);
|
|
|
|
|
2011-06-02 15:57:23 +02:00
|
|
|
State validate(QString &input, int &pos) const;
|
|
|
|
|
2011-05-14 11:18:39 +02:00
|
|
|
static const int MaxAddressLength = 34;
|
2011-05-13 22:00:27 +02:00
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BITCOINADDRESSVALIDATOR_H
|