Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
bitcoinaddressvalidator.h
Go to the documentation of this file.
1// Copyright (c) 2011-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_QT_BITCOINADDRESSVALIDATOR_H
6#define BITCOIN_QT_BITCOINADDRESSVALIDATOR_H
7
8#include <QValidator>
9
13class BitcoinAddressEntryValidator : public QValidator
14{
16
17public:
18 explicit BitcoinAddressEntryValidator(QObject *parent);
19
20 State validate(QString &input, int &pos) const override;
21};
22
25class BitcoinAddressCheckValidator : public QValidator
26{
28
29public:
30 explicit BitcoinAddressCheckValidator(QObject *parent);
31
32 State validate(QString &input, int &pos) const override;
33};
34
35#endif // BITCOIN_QT_BITCOINADDRESSVALIDATOR_H
Bitcoin address widget validator, checks for a valid bitcoin address.
State validate(QString &input, int &pos) const override
Base58 entry widget validator, checks for valid characters and removes some whitespace.
State validate(QString &input, int &pos) const override
BitcoinAddressEntryValidator(QObject *parent)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:73