Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
+ Collaboration 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 requestedShutdown ()
 
void stopThread ()
 
void splashFinished (QWidget *window)
 

Public Member Functions

 BitcoinApplication (int &argc, char **argv)
 
 ~BitcoinApplication ()
 
void createOptionsModel ()
 Create options model. More...
 
void createWindow (bool isaTestNet)
 Create main window. More...
 
void createSplashScreen (bool isaTestNet)
 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
 

Detailed Description

Main Bitcoin application object.

Definition at line 167 of file bitcoin.cpp.

Constructor & Destructor Documentation

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

Definition at line 274 of file bitcoin.cpp.

References startThread().

+ Here is the call graph for this function:

BitcoinApplication::~BitcoinApplication ( )

Definition at line 291 of file bitcoin.cpp.

References coreThread, LogPrintf, optionsModel, stopThread(), and window.

Member Function Documentation

void BitcoinApplication::createOptionsModel ( )

Create options model.

Definition at line 315 of file bitcoin.cpp.

References optionsModel.

Referenced by main().

+ Here is the caller graph for this function:

void BitcoinApplication::createSplashScreen ( bool  isaTestNet)

Create splash screen.

Definition at line 329 of file bitcoin.cpp.

References splashFinished().

Referenced by main().

+ Here is the caller graph for this function:

void BitcoinApplication::createWindow ( bool  isaTestNet)

Create main window.

Definition at line 320 of file bitcoin.cpp.

References pollShutdownTimer, and window.

Referenced by main().

+ Here is the caller graph for this function:

WId BitcoinApplication::getMainWinId ( ) const

Get window identifier of QMainWindow (BitcoinGUI)

Definition at line 451 of file bitcoin.cpp.

References window.

Referenced by main().

+ Here is the caller graph for this function:

int BitcoinApplication::getReturnValue ( )
inline

Get process return value.

Definition at line 191 of file bitcoin.cpp.

References returnValue.

Referenced by main().

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

Referenced by main(), and startThread().

+ Here is the caller graph for this function:

void BitcoinApplication::initializeResult ( int  retval)
slot

Definition at line 384 of file bitcoin.cpp.

References clientModel, GetBoolArg(), PaymentServer::LoadRootCAs(), LogPrintf, optionsModel, pwalletMain, returnValue, BitcoinGUI::setClientModel(), splashFinished(), and window.

Referenced by startThread().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void BitcoinApplication::requestedInitialize ( )
signal

Referenced by requestInitialize(), and startThread().

+ Here is the caller graph for this function:

void BitcoinApplication::requestedShutdown ( )
signal

Referenced by requestShutdown(), and startThread().

+ Here is the caller graph for this function:

void BitcoinApplication::requestInitialize ( )

Request core initialization.

Definition at line 356 of file bitcoin.cpp.

References LogPrintf, and requestedInitialize().

Referenced by main().

+ Here is the caller graph for this function:

void BitcoinApplication::requestShutdown ( )

Request core shutdown.

Definition at line 362 of file bitcoin.cpp.

References clientModel, LogPrintf, pollShutdownTimer, requestedShutdown(), BitcoinGUI::setClientModel(), ShutdownWindow::showShutdownWindow(), and window.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void BitcoinApplication::shutdownResult ( int  retval)
slot

Definition at line 439 of file bitcoin.cpp.

References LogPrintf.

Referenced by startThread().

+ Here is the caller graph for this function:

void BitcoinApplication::splashFinished ( QWidget window)
signal

Referenced by createSplashScreen(), and initializeResult().

+ Here is the caller graph for this function:

void BitcoinApplication::startThread ( )
private

Definition at line 337 of file bitcoin.cpp.

References coreThread, handleRunawayException(), initializeResult(), requestedInitialize(), requestedShutdown(), shutdownResult(), and stopThread().

Referenced by BitcoinApplication().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void BitcoinApplication::stopThread ( )
signal

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

+ Here is the caller graph for this function:

Member Data Documentation

ClientModel* BitcoinApplication::clientModel
private

Definition at line 211 of file bitcoin.cpp.

Referenced by initializeResult(), and requestShutdown().

QThread* BitcoinApplication::coreThread
private

Definition at line 209 of file bitcoin.cpp.

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

OptionsModel* BitcoinApplication::optionsModel
private

Definition at line 210 of file bitcoin.cpp.

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

QTimer* BitcoinApplication::pollShutdownTimer
private

Definition at line 213 of file bitcoin.cpp.

Referenced by createWindow(), and requestShutdown().

int BitcoinApplication::returnValue
private

Definition at line 218 of file bitcoin.cpp.

Referenced by getReturnValue(), and initializeResult().

BitcoinGUI* BitcoinApplication::window
private

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