Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
bitcoin.cpp File Reference
#include "bitcoingui.h"
#include "clientmodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "intro.h"
#include "optionsmodel.h"
#include "splashscreen.h"
#include "utilitydialog.h"
#include "winshutdownmonitor.h"
#include "init.h"
#include "main.h"
#include "rpcserver.h"
#include "ui_interface.h"
#include "util.h"
#include <stdint.h>
#include <boost/filesystem/operations.hpp>
#include <QApplication>
#include <QLibraryInfo>
#include <QLocale>
#include <QMessageBox>
#include <QSettings>
#include <QTimer>
#include <QTranslator>
#include <QThread>
#include <QTextCodec>
#include "bitcoin.moc"
+ Include dependency graph for bitcoin.cpp:

Go to the source code of this file.

Classes

class  BitcoinCore
 Class encapsulating Bitcoin Core startup and shutdown. More...
 
class  BitcoinApplication
 Main Bitcoin application object. More...
 

Functions

static void InitMessage (const std::string &message)
 
static std::string Translate (const char *psz)
 
static void initTranslations (QTranslator &qtTranslatorBase, QTranslator &qtTranslator, QTranslator &translatorBase, QTranslator &translator)
 Set up translations. More...
 
void DebugMessageHandler (QtMsgType type, const char *msg)
 
int main (int argc, char *argv[])
 

Function Documentation

void DebugMessageHandler ( QtMsgType  type,
const char *  msg 
)

Definition at line 127 of file bitcoin.cpp.

References LogPrint().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void InitMessage ( const std::string &  message)
static

Definition at line 66 of file bitcoin.cpp.

References LogPrintf.

Referenced by main().

+ Here is the caller graph for this function:

static void initTranslations ( QTranslator &  qtTranslatorBase,
QTranslator &  qtTranslator,
QTranslator &  translatorBase,
QTranslator &  translator 
)
static

Set up translations.

Definition at line 80 of file bitcoin.cpp.

References GetArg().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)
  1. Parse command-line options. These take precedence over anything else.
  2. Basic Qt initialization (not dependent on parameters or configuration)
  3. Application identification
  4. Initialization of translations, so that intro dialog is in user's language
  5. Now that settings and translations are available, ask user for data directory
  6. Determine availability of data directory and parse bitcoin.conf
  • Do not call GetDataDir(true) before this step finishes
  1. Determine network (and switch to network specific options)
  2. Main GUI initialization

Show warning

Definition at line 460 of file bitcoin.cpp.

References BitcoinApplication::createOptionsModel(), BitcoinApplication::createSplashScreen(), BitcoinApplication::createWindow(), DebugMessageHandler(), GetBoolArg(), GetDataDir(), BitcoinApplication::getMainWinId(), BitcoinApplication::getReturnValue(), BitcoinApplication::handleRunawayException(), help(), InitMessage(), CClientUIInterface::InitMessage, initTranslations(), PaymentServer::ipcParseCommandLine(), PaymentServer::ipcSendCommandLine(), CChainParams::MAIN, mapArgs, mapMultiArgs, CChainParams::NetworkID(), Params(), ParseParameters(), Intro::pickDataDirectory(), PrintExceptionContinue(), QAPP_APP_NAME_DEFAULT, QAPP_APP_NAME_TESTNET, QAPP_ORG_DOMAIN, QAPP_ORG_NAME, ReadConfigFile(), BitcoinApplication::requestInitialize(), BitcoinApplication::requestShutdown(), SelectParamsFromCommandLine(), SetupEnvironment(), HelpMessageDialog::showOrPrint(), strMiscWarning, GUIUtil::SubstituteFonts(), TOOLTIP_WRAP_THRESHOLD, Translate(), CClientUIInterface::Translate, and uiInterface.

+ Here is the call graph for this function:

static std::string Translate ( const char *  psz)
static

Definition at line 74 of file bitcoin.cpp.

Referenced by main().

+ Here is the caller graph for this function: