5 #ifndef BITCOIN_QT_PAYMENTSERVER_H 6 #define BITCOIN_QT_PAYMENTSERVER_H 35 #if defined(HAVE_CONFIG_H) 53 class QNetworkAccessManager;
60 static const qint64 BIP70_MAX_PAYMENTREQUEST_SIZE = 50000;
79 explicit PaymentServer(QObject* parent,
bool startLocalServer =
true);
91 static void LoadRootCAs(X509_STORE* store =
nullptr);
94 static X509_STORE* getCertStore();
97 static bool verifyNetwork(
interfaces::Node& node,
const payments::PaymentDetails& requestDetails);
99 static bool verifyExpired(
const payments::PaymentDetails& requestDetails);
101 static bool verifySize(qint64 requestSize);
103 static bool verifyAmount(
const CAmount& requestAmount);
111 void message(
const QString &title,
const QString &
message,
unsigned int style);
115 void receivedPaymentACK(
const QString &paymentACKMsg);
134 void netRequestFinished(QNetworkReply*);
135 void reportSslErrors(QNetworkReply*,
const QList<QSslError> &);
136 void handlePaymentACK(
const QString& paymentACKMsg);
150 static bool readPaymentRequestFromFile(
const QString& filename,
PaymentRequestPlus& request);
152 void fetchRequest(
const QUrl&
url);
155 void initNetManager();
156 QNetworkAccessManager* netManager;
160 #endif // BITCOIN_QT_PAYMENTSERVER_H void message(const QString &title, const QString &message, unsigned int style)
void setOptionsModel(OptionsModel *optionsModel)
static void ipcParseCommandLine(interfaces::Node &node, int argc, char *argv[])
bool eventFilter(QObject *object, QEvent *event)
void receivedPaymentRequest(SendCoinsRecipient)
void handleURIOrFile(const QString &s)
static bool ipcSendCommandLine()
int64_t CAmount
Amount in satoshis (Can be negative)
PaymentServer(QObject *parent, bool startLocalServer=true)
Interface from Qt to configuration data structure for Bitcoin client.
Interface to Bitcoin wallet from Qt view code.
void handleURIConnection()
OptionsModel * optionsModel
Top-level interface for a bitcoin node (bsha3d process).