![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#include <paymentserver.h>
Public Slots | |
void | uiReady () |
void | fetchPaymentACK (CWallet *wallet, SendCoinsRecipient recipient, QByteArray transaction) |
void | handleURIOrFile (const QString &s) |
Signals | |
void | receivedPaymentRequest (SendCoinsRecipient) |
void | receivedPaymentACK (const QString &paymentACKMsg) |
void | message (const QString &title, const QString &message, unsigned int style) |
Public Member Functions | |
PaymentServer (QObject *parent, bool startLocalServer=true) | |
~PaymentServer () | |
void | setOptionsModel (OptionsModel *optionsModel) |
Static Public Member Functions | |
static bool | ipcParseCommandLine (int argc, char *argv[]) |
static bool | ipcSendCommandLine () |
static void | LoadRootCAs (X509_STORE *store=NULL) |
static X509_STORE * | getCertStore () |
Protected Member Functions | |
bool | eventFilter (QObject *object, QEvent *event) |
Private Slots | |
void | handleURIConnection () |
void | netRequestFinished (QNetworkReply *) |
void | reportSslErrors (QNetworkReply *, const QList< QSslError > &) |
void | handlePaymentACK (const QString &paymentACKMsg) |
Private Member Functions | |
bool | processPaymentRequest (PaymentRequestPlus &request, SendCoinsRecipient &recipient) |
void | fetchRequest (const QUrl &url) |
void | initNetManager () |
Static Private Member Functions | |
static bool | readPaymentRequest (const QString &filename, PaymentRequestPlus &request) |
static void | freeCertStore () |
Private Attributes | |
bool | saveURIs |
QLocalServer * | uriServer |
QNetworkAccessManager * | netManager |
OptionsModel * | optionsModel |
Static Private Attributes | |
static X509_STORE * | certStore = NULL |
Definition at line 54 of file paymentserver.h.
PaymentServer::PaymentServer | ( | QObject * | parent, |
bool | startLocalServer = true |
||
) |
Definition at line 264 of file paymentserver.cpp.
References handlePaymentACK(), handleURIConnection(), ipcServerName(), receivedPaymentACK(), and uriServer.
PaymentServer::~PaymentServer | ( | ) |
Definition at line 302 of file paymentserver.cpp.
|
protected |
Definition at line 311 of file paymentserver.cpp.
References handleURIOrFile().
|
slot |
Definition at line 546 of file paymentserver.cpp.
References payments::Payment::add_refund_to(), payments::Payment::add_transactions(), SendCoinsRecipient::authenticatedMerchant, BITCOIN_PAYMENTACK_CONTENTTYPE, BITCOIN_PAYMENTACK_MIMETYPE, payments::Payment::ByteSize(), CLIENT_NAME, CWallet::cs_wallet, CWallet::GetAccountAddresses(), PaymentRequestPlus::getDetails(), CPubKey::GetID(), CWallet::GetKeyFromPool(), payments::PaymentDetails::has_payment_url(), LOCK, payments::PaymentDetails::merchant_data(), netManager, payments::PaymentDetails::payment_url(), SendCoinsRecipient::paymentRequest, payments::Payment::set_merchant_data(), payments::Output::set_script(), CWallet::SetAddressBook(), and CScript::SetDestination().
|
private |
Definition at line 536 of file paymentserver.cpp.
References BITCOIN_REQUEST_MIMETYPE, CLIENT_NAME, and netManager.
Referenced by handleURIOrFile().
|
staticprivate |
Definition at line 56 of file paymentserver.cpp.
References certStore.
Referenced by LoadRootCAs().
|
inlinestatic |
Definition at line 82 of file paymentserver.h.
References certStore.
Referenced by TransactionDesc::toHTML().
|
privateslot |
Definition at line 672 of file paymentserver.cpp.
References CClientUIInterface::ICON_INFORMATION, message(), and CClientUIInterface::MODAL.
Referenced by PaymentServer().
|
privateslot |
Definition at line 439 of file paymentserver.cpp.
References handleURIOrFile(), and uriServer.
Referenced by PaymentServer().
|
slot |
Definition at line 373 of file paymentserver.cpp.
References BITCOIN_IPC_PREFIX(), fetchRequest(), CClientUIInterface::ICON_WARNING, message(), GUIUtil::parseBitcoinURI(), processPaymentRequest(), readPaymentRequest(), receivedPaymentRequest(), savedPaymentRequests, and saveURIs.
Referenced by eventFilter(), handleURIConnection(), and uiReady().
|
private |
Definition at line 328 of file paymentserver.cpp.
References OptionsModel::getProxySettings(), message(), CClientUIInterface::MSG_WARNING, netManager, netRequestFinished(), optionsModel, and reportSslErrors().
Referenced by uiReady().
|
static |
Definition at line 181 of file paymentserver.cpp.
References SendCoinsRecipient::address, BITCOIN_IPC_PREFIX(), PaymentRequestPlus::getDetails(), CChainParams::MAIN, payments::PaymentDetails::network(), GUIUtil::parseBitcoinURI(), savedPaymentRequests, SelectParams(), and CChainParams::TESTNET.
Referenced by main().
|
static |
Definition at line 234 of file paymentserver.cpp.
References ipcServerName(), and savedPaymentRequests.
Referenced by main().
|
static |
Definition at line 98 of file paymentserver.cpp.
References certStore, Checkpoints::data, freeCertStore(), GetArg(), and ReportInvalidCertificate().
Referenced by BitcoinApplication::initializeResult().
|
signal |
Definition at line 137 of file moc_paymentserver.cpp.
Referenced by handlePaymentACK(), handleURIOrFile(), initNetManager(), netRequestFinished(), processPaymentRequest(), and reportSslErrors().
|
privateslot |
Definition at line 602 of file paymentserver.cpp.
References Checkpoints::data, GUIUtil::HtmlEscape(), payments::PaymentACK::memo(), message(), CClientUIInterface::MSG_ERROR, PaymentRequestPlus::parse(), processPaymentRequest(), receivedPaymentACK(), and receivedPaymentRequest().
Referenced by initNetManager().
|
private |
Definition at line 480 of file paymentserver.cpp.
References SendCoinsRecipient::address, SendCoinsRecipient::amount, SendCoinsRecipient::authenticatedMerchant, certStore, ExtractDestination(), BitcoinUnits::formatWithUnit(), PaymentRequestPlus::getDetails(), OptionsModel::getDisplayUnit(), PaymentRequestPlus::getMerchant(), PaymentRequestPlus::getPayTo(), GUIUtil::HtmlEscape(), CTxOut::IsDust(), payments::PaymentDetails::memo(), SendCoinsRecipient::message, message(), CClientUIInterface::MSG_ERROR, CTransaction::nMinRelayTxFee, optionsModel, PAIRTYPE, and SendCoinsRecipient::paymentRequest.
Referenced by handleURIOrFile(), and netRequestFinished().
|
staticprivate |
Definition at line 460 of file paymentserver.cpp.
References Checkpoints::data, MAX_PAYMENT_REQUEST_SIZE, and PaymentRequestPlus::parse().
Referenced by handleURIOrFile().
|
signal |
Definition at line 130 of file moc_paymentserver.cpp.
Referenced by netRequestFinished(), and PaymentServer().
|
signal |
Definition at line 123 of file moc_paymentserver.cpp.
Referenced by handleURIOrFile(), and netRequestFinished().
|
privateslot |
Definition at line 655 of file paymentserver.cpp.
References message(), and CClientUIInterface::MSG_ERROR.
Referenced by initNetManager().
void PaymentServer::setOptionsModel | ( | OptionsModel * | optionsModel | ) |
Definition at line 667 of file paymentserver.cpp.
References optionsModel.
|
slot |
Definition at line 361 of file paymentserver.cpp.
References handleURIOrFile(), initNetManager(), savedPaymentRequests, and saveURIs.
|
staticprivate |
Definition at line 130 of file paymentserver.h.
Referenced by freeCertStore(), getCertStore(), LoadRootCAs(), and processPaymentRequest().
|
private |
Definition at line 133 of file paymentserver.h.
Referenced by fetchPaymentACK(), fetchRequest(), and initNetManager().
|
private |
Definition at line 135 of file paymentserver.h.
Referenced by initNetManager(), processPaymentRequest(), and setOptionsModel().
|
private |
Definition at line 127 of file paymentserver.h.
Referenced by handleURIOrFile(), and uiReady().
|
private |
Definition at line 128 of file paymentserver.h.
Referenced by handleURIConnection(), and PaymentServer().