Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
Public Slots | Signals | Public 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 shutdownResult ()
 
void handleRunawayException (const QString &message)
 Handle runaway exceptions. Shows a message box with the problem and quits the program. More...
 

Signals

void requestedInitialize ()
 
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 NetworkStyle *networkStyle)
 Create main window. More...
 
void createSplashScreen (const NetworkStyle *networkStyle)
 Create splash screen. More...
 
bool baseInitialize ()
 Basic initialization, before starting initialization/shutdown thread. Return true on success. More...
 
void requestInitialize ()
 Request core initialization. More...
 
void requestShutdown ()
 Request core shutdown. More...
 
int getReturnValue () const
 Get process return value. 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)
 

Private Member Functions

void startThread ()
 

Private Attributes

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

Detailed Description

Main Bitcoin application object.

Definition at line 55 of file bitcoin.h.

Constructor & Destructor Documentation

BitcoinApplication::BitcoinApplication ( )
explicit

Definition at line 200 of file bitcoin.cpp.

Here is the call graph for this function:

BitcoinApplication::~BitcoinApplication ( )

Definition at line 228 of file bitcoin.cpp.

Member Function Documentation

bool BitcoinApplication::baseInitialize ( )

Basic initialization, before starting initialization/shutdown thread. Return true on success.

Definition at line 284 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BitcoinApplication::createOptionsModel ( bool  resetSettings)

Create options model.

Definition at line 251 of file bitcoin.cpp.

Here is the caller graph for this function:

void BitcoinApplication::createSplashScreen ( const NetworkStyle networkStyle)

Create splash screen.

Definition at line 264 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BitcoinApplication::createWindow ( const NetworkStyle networkStyle)

Create main window.

Definition at line 256 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

WId BitcoinApplication::getMainWinId ( ) const

Get window identifier of QMainWindow (BitcoinGUI)

Definition at line 423 of file bitcoin.cpp.

Here is the caller graph for this function:

int BitcoinApplication::getReturnValue ( ) const
inline

Get process return value.

Definition at line 85 of file bitcoin.h.

Here is the caller graph for this function:

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

Handle runaway exceptions. Shows a message box with the problem and quits the program.

Definition at line 417 of file bitcoin.cpp.

Here is the caller graph for this function:

void BitcoinApplication::InitializePruneSetting ( bool  prune)

Initialize prune setting.

Definition at line 319 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 361 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 93 of file bitcoin.h.

Here is the caller graph for this function:

void BitcoinApplication::parameterSetup ( )

parameter interaction/setup based on rules

Definition at line 309 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BitcoinApplication::requestedInitialize ( )
signal

Here is the caller graph for this function:

void BitcoinApplication::requestedShutdown ( )
signal

Here is the caller graph for this function:

void BitcoinApplication::requestInitialize ( )

Request core initialization.

Definition at line 326 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BitcoinApplication::requestShutdown ( )

Request core shutdown.

Definition at line 333 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 276 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BitcoinApplication::setupPlatformStyle ( )

Setup platform style.

Definition at line 215 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BitcoinApplication::shutdownResult ( )
slot

Definition at line 412 of file bitcoin.cpp.

Here is the caller graph for this function:

void BitcoinApplication::splashFinished ( )
signal

Here is the caller graph for this function:

void BitcoinApplication::startThread ( )
private

Definition at line 289 of file bitcoin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BitcoinApplication::windowShown ( BitcoinGUI window)
signal

Here is the caller graph for this function:

Member Data Documentation

ClientModel* BitcoinApplication::clientModel
private

Definition at line 111 of file bitcoin.h.

QThread* BitcoinApplication::coreThread
private

Definition at line 109 of file bitcoin.h.

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

Definition at line 122 of file bitcoin.h.

SplashScreen* BitcoinApplication::m_splash = nullptr
private

Definition at line 121 of file bitcoin.h.

OptionsModel* BitcoinApplication::optionsModel
private

Definition at line 110 of file bitcoin.h.

const PlatformStyle* BitcoinApplication::platformStyle
private

Definition at line 119 of file bitcoin.h.

QTimer* BitcoinApplication::pollShutdownTimer
private

Definition at line 113 of file bitcoin.h.

int BitcoinApplication::returnValue
private

Definition at line 118 of file bitcoin.h.

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

Definition at line 120 of file bitcoin.h.

BitcoinGUI* BitcoinApplication::window
private

Definition at line 112 of file bitcoin.h.


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