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.

starwelsaddressvalidator.h 933B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright (c) 2011-2014 The Starwels developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #ifndef STARWELS_QT_STARWELSADDRESSVALIDATOR_H
  5. #define STARWELS_QT_STARWELSADDRESSVALIDATOR_H
  6. #include <QValidator>
  7. /** Base58 entry widget validator, checks for valid characters and
  8. * removes some whitespace.
  9. */
  10. class StarwelsAddressEntryValidator : public QValidator
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit StarwelsAddressEntryValidator(QObject *parent);
  15. State validate(QString &input, int &pos) const;
  16. };
  17. /** Starwels address widget validator, checks for a valid starwels address.
  18. */
  19. class StarwelsAddressCheckValidator : public QValidator
  20. {
  21. Q_OBJECT
  22. public:
  23. explicit StarwelsAddressCheckValidator(QObject *parent);
  24. State validate(QString &input, int &pos) const;
  25. };
  26. #endif // STARWELS_QT_STARWELSADDRESSVALIDATOR_H