Bitcoin Core  0.15.99
P2P Digital Currency
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
PaymentServer Class Reference

#include <paymentserver.h>

Inheritance diagram for PaymentServer:
[legend]
Collaboration diagram for PaymentServer:
[legend]

Public Slots

void uiReady ()
 
void fetchPaymentACK (WalletModel *walletModel, const 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 void ipcParseCommandLine (interfaces::Node &node, int argc, char *argv[])
 
static bool ipcSendCommandLine ()
 
static void LoadRootCAs (X509_STORE *store=nullptr)
 
static X509_STORE * getCertStore ()
 
static bool verifyNetwork (interfaces::Node &node, const payments::PaymentDetails &requestDetails)
 
static bool verifyExpired (const payments::PaymentDetails &requestDetails)
 
static bool verifySize (qint64 requestSize)
 
static bool verifyAmount (const CAmount &requestAmount)
 

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 (const PaymentRequestPlus &request, SendCoinsRecipient &recipient)
 
void fetchRequest (const QUrl &url)
 
void initNetManager ()
 

Static Private Member Functions

static bool readPaymentRequestFromFile (const QString &filename, PaymentRequestPlus &request)
 

Private Attributes

bool saveURIs
 
QLocalServer * uriServer
 
QNetworkAccessManager * netManager
 
OptionsModeloptionsModel
 

Detailed Description

Definition at line 56 of file paymentserver.h.

Constructor & Destructor Documentation

◆ PaymentServer()

PaymentServer::PaymentServer ( QObject *  parent,
bool  startLocalServer = true 
)
explicit

Definition at line 289 of file paymentserver.cpp.

◆ ~PaymentServer()

PaymentServer::~PaymentServer ( )

Definition at line 327 of file paymentserver.cpp.

Member Function Documentation

◆ eventFilter()

bool PaymentServer::eventFilter ( QObject *  object,
QEvent *  event 
)
protected

Definition at line 337 of file paymentserver.cpp.

Here is the call graph for this function:

◆ fetchPaymentACK

void PaymentServer::fetchPaymentACK ( WalletModel walletModel,
const SendCoinsRecipient recipient,
QByteArray  transaction 
)
slot

Definition at line 608 of file paymentserver.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fetchRequest()

void PaymentServer::fetchRequest ( const QUrl &  url)
private

Definition at line 598 of file paymentserver.cpp.

◆ getCertStore()

X509_STORE * PaymentServer::getCertStore ( )
static

Definition at line 793 of file paymentserver.cpp.

Here is the caller graph for this function:

◆ handlePaymentACK

void PaymentServer::handlePaymentACK ( const QString &  paymentACKMsg)
privateslot

Definition at line 739 of file paymentserver.cpp.

◆ handleURIConnection

void PaymentServer::handleURIConnection ( )
privateslot

Definition at line 464 of file paymentserver.cpp.

Here is the call graph for this function:

◆ handleURIOrFile

void PaymentServer::handleURIOrFile ( const QString &  s)
slot

Definition at line 388 of file paymentserver.cpp.

Here is the caller graph for this function:

◆ initNetManager()

void PaymentServer::initNetManager ( )
private

Definition at line 352 of file paymentserver.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ipcParseCommandLine()

void PaymentServer::ipcParseCommandLine ( interfaces::Node node,
int  argc,
char *  argv[] 
)
static

Definition at line 193 of file paymentserver.cpp.

Here is the call graph for this function:

◆ ipcSendCommandLine()

bool PaymentServer::ipcSendCommandLine ( )
static

Definition at line 256 of file paymentserver.cpp.

◆ LoadRootCAs()

void PaymentServer::LoadRootCAs ( X509_STORE *  store = nullptr)
static

Definition at line 104 of file paymentserver.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ message

void PaymentServer::message ( const QString &  title,
const QString &  message,
unsigned int  style 
)
signal
Here is the caller graph for this function:

◆ netRequestFinished

void PaymentServer::netRequestFinished ( QNetworkReply *  reply)
privateslot

Definition at line 660 of file paymentserver.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ processPaymentRequest()

bool PaymentServer::processPaymentRequest ( const PaymentRequestPlus request,
SendCoinsRecipient recipient 
)
private

Definition at line 506 of file paymentserver.cpp.

Here is the call graph for this function:

◆ readPaymentRequestFromFile()

bool PaymentServer::readPaymentRequestFromFile ( const QString &  filename,
PaymentRequestPlus request 
)
staticprivate

Definition at line 488 of file paymentserver.cpp.

Here is the call graph for this function:

◆ receivedPaymentACK

void PaymentServer::receivedPaymentACK ( const QString &  paymentACKMsg)
signal

◆ receivedPaymentRequest

void PaymentServer::receivedPaymentRequest ( SendCoinsRecipient  )
signal
Here is the caller graph for this function:

◆ reportSslErrors

void PaymentServer::reportSslErrors ( QNetworkReply *  reply,
const QList< QSslError > &  errs 
)
privateslot

Definition at line 722 of file paymentserver.cpp.

Here is the caller graph for this function:

◆ setOptionsModel()

void PaymentServer::setOptionsModel ( OptionsModel optionsModel)

Definition at line 734 of file paymentserver.cpp.

◆ uiReady

void PaymentServer::uiReady ( )
slot

Definition at line 376 of file paymentserver.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verifyAmount()

bool PaymentServer::verifyAmount ( const CAmount requestAmount)
static

Definition at line 781 of file paymentserver.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verifyExpired()

bool PaymentServer::verifyExpired ( const payments::PaymentDetails &  requestDetails)
static

Definition at line 757 of file paymentserver.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verifyNetwork()

bool PaymentServer::verifyNetwork ( interfaces::Node node,
const payments::PaymentDetails &  requestDetails 
)
static

Definition at line 745 of file paymentserver.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ verifySize()

bool PaymentServer::verifySize ( qint64  requestSize)
static

Definition at line 769 of file paymentserver.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ netManager

QNetworkAccessManager* PaymentServer::netManager
private

Definition at line 141 of file paymentserver.h.

◆ optionsModel

OptionsModel* PaymentServer::optionsModel
private

Definition at line 143 of file paymentserver.h.

◆ saveURIs

bool PaymentServer::saveURIs
private

Definition at line 138 of file paymentserver.h.

◆ uriServer

QLocalServer* PaymentServer::uriServer
private

Definition at line 139 of file paymentserver.h.


The documentation for this class was generated from the following files: