BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
BitcoinApplication Class Reference

Main Bitcoin application object. More...

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

Public Slots

void initializeResult (bool success)
 
void shutdownResult ()
 
void handleRunawayException (const QString &message)
 Handle runaway exceptions. Shows a message box with the problem and quits the program. More...
 
void addWallet (WalletModel *walletModel)
 
void removeWallet ()
 

Signals

void requestedInitialize ()
 
void requestedShutdown ()
 
void stopThread ()
 
void splashFinished (QWidget *window)
 

Public Member Functions

 BitcoinApplication (interfaces::Node &node, int &argc, char **argv)
 
 ~BitcoinApplication ()
 
void parameterSetup ()
 parameter interaction/setup based on rules More...
 
void createOptionsModel (bool resetSettings)
 Create options model. More...
 
void createWindow (const NetworkStyle *networkStyle)
 Create main window. More...
 
void createSplashScreen (const NetworkStyle *networkStyle)
 Create splash screen. 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...
 

Private Member Functions

void startThread ()
 

Private Attributes

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

Detailed Description

Main Bitcoin application object.

Definition at line 174 of file bitcoin.cpp.

Constructor & Destructor Documentation

◆ BitcoinApplication()

BitcoinApplication::BitcoinApplication ( interfaces::Node node,
int &  argc,
char **  argv 
)
explicit

Definition at line 283 of file bitcoin.cpp.

◆ ~BitcoinApplication()

BitcoinApplication::~BitcoinApplication ( )

Definition at line 314 of file bitcoin.cpp.

Member Function Documentation

◆ addWallet

void BitcoinApplication::addWallet ( WalletModel walletModel)
slot

Definition at line 433 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 343 of file bitcoin.cpp.

◆ createSplashScreen()

void BitcoinApplication::createSplashScreen ( const NetworkStyle networkStyle)

Create splash screen.

Definition at line 356 of file bitcoin.cpp.

Here is the call graph for this function:

◆ createWindow()

void BitcoinApplication::createWindow ( const NetworkStyle networkStyle)

Create main window.

Definition at line 348 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 533 of file bitcoin.cpp.

◆ getReturnValue()

int BitcoinApplication::getReturnValue ( ) const
inline

Get process return value.

Definition at line 200 of file bitcoin.cpp.

◆ 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 527 of file bitcoin.cpp.

Here is the caller graph for this function:

◆ initializeResult

void BitcoinApplication::initializeResult ( bool  success)
slot

Definition at line 462 of file bitcoin.cpp.

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 387 of file bitcoin.cpp.

Here is the call graph for this function:

◆ removeWallet

void BitcoinApplication::removeWallet ( )
slot

Definition at line 452 of file bitcoin.cpp.

Here is the caller graph for this function:

◆ requestedInitialize

void BitcoinApplication::requestedInitialize ( )
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 ( )

Request core initialization.

Definition at line 397 of file bitcoin.cpp.

Here is the call graph for this function:

◆ requestShutdown()

void BitcoinApplication::requestShutdown ( )

Request core shutdown.

Definition at line 404 of file bitcoin.cpp.

Here is the call graph for this function:

◆ setupPlatformStyle()

void BitcoinApplication::setupPlatformStyle ( )

Setup platform style.

Definition at line 301 of file bitcoin.cpp.

Here is the call graph for this function:

◆ shutdownResult

void BitcoinApplication::shutdownResult ( )
slot

Definition at line 522 of file bitcoin.cpp.

Here is the caller graph for this function:

◆ splashFinished

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

◆ startThread()

void BitcoinApplication::startThread ( )
private

Definition at line 366 of file bitcoin.cpp.

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

◆ stopThread

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

Member Data Documentation

◆ clientModel

ClientModel* BitcoinApplication::clientModel
private

Definition at line 226 of file bitcoin.cpp.

◆ coreThread

QThread* BitcoinApplication::coreThread
private

Definition at line 223 of file bitcoin.cpp.

◆ m_node

interfaces::Node& BitcoinApplication::m_node
private

Definition at line 224 of file bitcoin.cpp.

◆ optionsModel

OptionsModel* BitcoinApplication::optionsModel
private

Definition at line 225 of file bitcoin.cpp.

◆ platformStyle

const PlatformStyle* BitcoinApplication::platformStyle
private

Definition at line 235 of file bitcoin.cpp.

◆ pollShutdownTimer

QTimer* BitcoinApplication::pollShutdownTimer
private

Definition at line 228 of file bitcoin.cpp.

◆ returnValue

int BitcoinApplication::returnValue
private

Definition at line 234 of file bitcoin.cpp.

◆ shutdownWindow

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

Definition at line 236 of file bitcoin.cpp.

◆ window

BitcoinGUI* BitcoinApplication::window
private

Definition at line 227 of file bitcoin.cpp.


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