twister-core/gui/include/bitcoinaddressvalidator.h

25 lines
515 B
C
Raw Normal View History

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