// Copyright (c) 2011-2014 The Bitworld developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITWORLD_QT_BITWORLDADDRESSVALIDATOR_H
#define BITWORLD_QT_BITWORLDADDRESSVALIDATOR_H

#include <QValidator>

/** Base58 entry widget validator, checks for valid characters and
 * removes some whitespace.
 */
class BitworldAddressEntryValidator : public QValidator
{
    Q_OBJECT

public:
    explicit BitworldAddressEntryValidator(QObject *parent);

    State validate(QString &input, int &pos) const;
};

/** Bitworld address widget validator, checks for a valid bitworld address.
 */
class BitworldAddressCheckValidator : public QValidator
{
    Q_OBJECT

public:
    explicit BitworldAddressCheckValidator(QObject *parent);

    State validate(QString &input, int &pos) const;
};

#endif // BITWORLD_QT_BITWORLDADDRESSVALIDATOR_H
