Dash Core  0.12.2.1
P2P Digital Currency
BitcoinApplication Class Reference
+ Inheritance diagram for BitcoinApplication:

Public Slots

void initializeResult (int retval)
 
void shutdownResult (int retval)
 
void handleRunawayException (const QString &message)
 Handle runaway exceptions. Shows a message box with the problem and quits the program. More...
 

Signals

void requestedInitialize ()
 
void requestedRestart (QStringList args)
 
void requestedShutdown ()
 
void stopThread ()
 
void splashFinished (QWidget *window)
 

Public Member Functions

 BitcoinApplication (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 ()
 Get process return value. More...
 
WId getMainWinId () const
 Get window identifier of QMainWindow (BitcoinGUI) More...
 

Private Member Functions

void startThread ()
 

Private Attributes

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

Detailed Description

Main Dash application object

Definition at line 201 of file dash.cpp.

Constructor & Destructor Documentation

◆ BitcoinApplication()

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

Definition at line 332 of file dash.cpp.

◆ ~BitcoinApplication()

BitcoinApplication::~BitcoinApplication ( )

Definition at line 358 of file dash.cpp.

Member Function Documentation

◆ createOptionsModel()

void BitcoinApplication::createOptionsModel ( bool  resetSettings)

Create options model.

Definition at line 393 of file dash.cpp.

Referenced by main().

◆ createSplashScreen()

void BitcoinApplication::createSplashScreen ( const NetworkStyle networkStyle)

Create splash screen.

Definition at line 407 of file dash.cpp.

Referenced by main().

◆ createWindow()

void BitcoinApplication::createWindow ( const NetworkStyle networkStyle)

Create main window.

Definition at line 398 of file dash.cpp.

Referenced by main().

◆ getMainWinId()

WId BitcoinApplication::getMainWinId ( ) const

Get window identifier of QMainWindow (BitcoinGUI)

Definition at line 546 of file dash.cpp.

Referenced by main().

◆ getReturnValue()

int BitcoinApplication::getReturnValue ( )
inline

Get process return value.

Definition at line 227 of file dash.cpp.

Referenced by main().

◆ 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 540 of file dash.cpp.

Referenced by main(), and startThread().

◆ initializeResult

void BitcoinApplication::initializeResult ( int  retval)
slot

Definition at line 477 of file dash.cpp.

Referenced by startThread().

◆ parameterSetup()

void BitcoinApplication::parameterSetup ( )

parameter interaction/setup based on rules

Definition at line 439 of file dash.cpp.

Referenced by main().

◆ requestedInitialize

void BitcoinApplication::requestedInitialize ( )
signal

Referenced by requestInitialize(), and startThread().

◆ requestedRestart

void BitcoinApplication::requestedRestart ( QStringList  args)
signal

Referenced by startThread().

◆ requestedShutdown

void BitcoinApplication::requestedShutdown ( )
signal

◆ requestInitialize()

void BitcoinApplication::requestInitialize ( )

Request core initialization.

Definition at line 445 of file dash.cpp.

Referenced by main().

◆ requestShutdown()

void BitcoinApplication::requestShutdown ( )

Request core shutdown.

Definition at line 452 of file dash.cpp.

Referenced by main().

◆ shutdownResult

void BitcoinApplication::shutdownResult ( int  retval)
slot

Definition at line 534 of file dash.cpp.

Referenced by startThread().

◆ splashFinished

void BitcoinApplication::splashFinished ( QWidget *  window)
signal

◆ startThread()

void BitcoinApplication::startThread ( )
private

Definition at line 417 of file dash.cpp.

Referenced by requestInitialize(), and requestShutdown().

◆ stopThread

void BitcoinApplication::stopThread ( )
signal

Referenced by startThread(), and ~BitcoinApplication().

Member Data Documentation

◆ clientModel

ClientModel* BitcoinApplication::clientModel
private

Definition at line 248 of file dash.cpp.

Referenced by initializeResult(), and requestShutdown().

◆ coreThread

QThread* BitcoinApplication::coreThread
private

Definition at line 246 of file dash.cpp.

Referenced by startThread(), and ~BitcoinApplication().

◆ optionsModel

OptionsModel* BitcoinApplication::optionsModel
private

Definition at line 247 of file dash.cpp.

Referenced by createOptionsModel(), initializeResult(), and ~BitcoinApplication().

◆ platformStyle

const PlatformStyle* BitcoinApplication::platformStyle
private

Definition at line 256 of file dash.cpp.

Referenced by BitcoinApplication(), createWindow(), initializeResult(), and ~BitcoinApplication().

◆ pollShutdownTimer

QTimer* BitcoinApplication::pollShutdownTimer
private

Definition at line 250 of file dash.cpp.

Referenced by createWindow(), and requestShutdown().

◆ returnValue

int BitcoinApplication::returnValue
private

Definition at line 255 of file dash.cpp.

Referenced by getReturnValue(), and initializeResult().

◆ shutdownWindow

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

Definition at line 257 of file dash.cpp.

Referenced by requestShutdown().

◆ window

BitcoinGUI* BitcoinApplication::window
private

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