Bitcoin ABC 0.32.4
P2P Digital Currency
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
BitcoinApplication Class Reference

Main Bitcoin application object. More...

#include <bitcoin.h>

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

Public Slots

void initializeResult (bool success, interfaces::BlockAndHeaderTipInfo tip_info)
 
void requestShutdown ()
 Request core shutdown. More...
 
void handleRunawayException (const QString &message)
 Handle runaway exceptions. More...
 

Signals

void requestedInitialize (Config *config, RPCServer *rpcServer, HTTPRPCRequestProcessor *httpRPCRequestProcessor)
 
void requestedShutdown ()
 
void splashFinished ()
 
void windowShown (BitcoinGUI *window)
 

Public Member Functions

 BitcoinApplication ()
 
 ~BitcoinApplication ()
 
void parameterSetup ()
 parameter interaction/setup based on rules More...
 
void createOptionsModel (bool resetSettings)
 Create options model. More...
 
void InitializePruneSetting (bool prune)
 Initialize prune setting. More...
 
void createWindow (const Config &, const NetworkStyle *networkStyle)
 Create main window. More...
 
void createSplashScreen (const NetworkStyle *networkStyle)
 Create splash screen. More...
 
bool baseInitialize (Config &config)
 Basic initialization, before starting initialization/shutdown thread. More...
 
void requestInitialize (Config &config, RPCServer &rpcServer, HTTPRPCRequestProcessor &httpRPCRequestProcessor)
 Request core initialization. More...
 
WId getMainWinId () const
 Get window identifier of QMainWindow (BitcoinGUI) More...
 
void setupPlatformStyle ()
 Setup platform style. More...
 
interfaces::Nodenode () const
 
void setNode (interfaces::Node &node)
 

Protected Member Functions

bool event (QEvent *e) override
 

Private Member Functions

void startThread ()
 

Private Attributes

QThread * coreThread
 
OptionsModeloptionsModel
 
ClientModelclientModel
 
BitcoinGUIwindow
 
QTimer * pollShutdownTimer
 
const PlatformStyleplatformStyle
 
std::unique_ptr< QWidget > shutdownWindow
 
SplashScreenm_splash = nullptr
 
interfaces::Nodem_node = nullptr
 

Detailed Description

Main Bitcoin application object.

Definition at line 60 of file bitcoin.h.

Constructor & Destructor Documentation

◆ BitcoinApplication()

BitcoinApplication::BitcoinApplication ( )
explicit

Definition at line 281 of file bitcoin.cpp.

Here is the call graph for this function:

◆ ~BitcoinApplication()

BitcoinApplication::~BitcoinApplication ( )

Definition at line 305 of file bitcoin.cpp.

Member Function Documentation

◆ baseInitialize()

bool BitcoinApplication::baseInitialize ( Config config)

Basic initialization, before starting initialization/shutdown thread.

Return true on success.

Definition at line 370 of file bitcoin.cpp.

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

◆ createOptionsModel()

void BitcoinApplication::createOptionsModel ( bool  resetSettings)

Create options model.

Definition at line 325 of file bitcoin.cpp.

Here is the caller graph for this function:

◆ createSplashScreen()

void BitcoinApplication::createSplashScreen ( const NetworkStyle networkStyle)

Create splash screen.

Definition at line 344 of file bitcoin.cpp.

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

◆ createWindow()

void BitcoinApplication::createWindow ( const Config config,
const NetworkStyle networkStyle 
)

Create main window.

Definition at line 329 of file bitcoin.cpp.

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

◆ event()

bool BitcoinApplication::event ( QEvent *  e)
overrideprotected

Definition at line 568 of file bitcoin.cpp.

Here is the call graph for this function:

◆ getMainWinId()

WId BitcoinApplication::getMainWinId ( ) const

Get window identifier of QMainWindow (BitcoinGUI)

Definition at line 560 of file bitcoin.cpp.

Here is the caller graph for this function:

◆ handleRunawayException

void BitcoinApplication::handleRunawayException ( const QString &  message)
slot

Handle runaway exceptions.

Shows a message box with the problem and quits the program.

Definition at line 550 of file bitcoin.cpp.

Here is the caller graph for this function:

◆ InitializePruneSetting()

void BitcoinApplication::InitializePruneSetting ( bool  prune)

Initialize prune setting.

Definition at line 423 of file bitcoin.cpp.

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

◆ initializeResult

void BitcoinApplication::initializeResult ( bool  success,
interfaces::BlockAndHeaderTipInfo  tip_info 
)
slot

Definition at line 487 of file bitcoin.cpp.

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

◆ node()

interfaces::Node & BitcoinApplication::node ( ) const
inline

Definition at line 94 of file bitcoin.h.

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

◆ parameterSetup()

void BitcoinApplication::parameterSetup ( )

parameter interaction/setup based on rules

Definition at line 414 of file bitcoin.cpp.

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

◆ requestedInitialize

void BitcoinApplication::requestedInitialize ( Config config,
RPCServer rpcServer,
HTTPRPCRequestProcessor httpRPCRequestProcessor 
)
signal
Here is the caller graph for this function:

◆ requestedShutdown

void BitcoinApplication::requestedShutdown ( )
signal
Here is the caller graph for this function:

◆ requestInitialize()

void BitcoinApplication::requestInitialize ( Config config,
RPCServer rpcServer,
HTTPRPCRequestProcessor httpRPCRequestProcessor 
)

Request core initialization.

Definition at line 429 of file bitcoin.cpp.

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

◆ requestShutdown

void BitcoinApplication::requestShutdown ( )
slot

Request core shutdown.

Definition at line 440 of file bitcoin.cpp.

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

◆ setNode()

void BitcoinApplication::setNode ( interfaces::Node node)

Definition at line 359 of file bitcoin.cpp.

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

◆ setupPlatformStyle()

void BitcoinApplication::setupPlatformStyle ( )

Setup platform style.

Definition at line 290 of file bitcoin.cpp.

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

◆ splashFinished

void BitcoinApplication::splashFinished ( )
signal
Here is the caller graph for this function:

◆ startThread()

void BitcoinApplication::startThread ( )
private

Definition at line 374 of file bitcoin.cpp.

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

◆ windowShown

void BitcoinApplication::windowShown ( BitcoinGUI window)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ clientModel

ClientModel* BitcoinApplication::clientModel
private

Definition at line 122 of file bitcoin.h.

◆ coreThread

QThread* BitcoinApplication::coreThread
private

Definition at line 120 of file bitcoin.h.

◆ m_node

interfaces::Node* BitcoinApplication::m_node = nullptr
private

Definition at line 132 of file bitcoin.h.

◆ m_splash

SplashScreen* BitcoinApplication::m_splash = nullptr
private

Definition at line 131 of file bitcoin.h.

◆ optionsModel

OptionsModel* BitcoinApplication::optionsModel
private

Definition at line 121 of file bitcoin.h.

◆ platformStyle

const PlatformStyle* BitcoinApplication::platformStyle
private

Definition at line 129 of file bitcoin.h.

◆ pollShutdownTimer

QTimer* BitcoinApplication::pollShutdownTimer
private

Definition at line 124 of file bitcoin.h.

◆ shutdownWindow

std::unique_ptr<QWidget> BitcoinApplication::shutdownWindow
private

Definition at line 130 of file bitcoin.h.

◆ window

BitcoinGUI* BitcoinApplication::window
private

Definition at line 123 of file bitcoin.h.


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