5 #ifndef BITCOIN_QT_PAYMENTSERVER_H 6 #define BITCOIN_QT_PAYMENTSERVER_H 31 #if defined(HAVE_CONFIG_H) 32 #include <config/bitcoin-config.h> 54 class QNetworkAccessManager;
69 static void ipcParseCommandLine(
int argc,
char *argv[]);
75 static bool ipcSendCommandLine();
78 explicit PaymentServer(QObject *parent,
bool startLocalServer =
true);
90 static void LoadRootCAs(X509_STORE *store =
nullptr);
93 static X509_STORE *getCertStore();
97 const payments::PaymentDetails &requestDetails);
99 static bool verifyExpired(
const payments::PaymentDetails &requestDetails);
101 static bool verifySize(qint64 requestSize);
103 static bool verifyAmount(
const Amount requestAmount);
111 void message(
const QString &title,
const QString &message,
116 void receivedPaymentACK(
const QString &paymentACKMsg);
125 void handleURIOrFile(
const QString &s);
131 QByteArray transaction);
135 void handleURIConnection();
137 void netRequestFinished(QNetworkReply *);
138 void reportSslErrors(QNetworkReply *,
const QList<QSslError> &);
139 void handlePaymentACK(
const QString &paymentACKMsg);
145 bool eventFilter(QObject *
object, QEvent *event)
override;
153 bool handleURI(
const CChainParams ¶ms,
const QString &s);
156 static bool readPaymentRequestFromFile(
const QString &filename,
160 void fetchRequest(
const QUrl &
url);
163 void initNetManager();
166 QNetworkAccessManager *netManager;
170 #endif // BITCOIN_QT_PAYMENTSERVER_H
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system...
static QT_END_NAMESPACE const qint64 BIP70_MAX_PAYMENTREQUEST_SIZE
Interface for accessing a wallet.
Interface from Qt to configuration data structure for Bitcoin client.
OptionsModel * optionsModel
Top-level interface for a bitcoin node (bitcoind process).