BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Classes | Functions | Variables
bitcoin.cpp File Reference
#include <qt/bitcoingui.h>
#include <chainparams.h>
#include <qt/clientmodel.h>
#include <fs.h>
#include <qt/guiconstants.h>
#include <qt/guiutil.h>
#include <qt/intro.h>
#include <qt/networkstyle.h>
#include <qt/optionsmodel.h>
#include <qt/platformstyle.h>
#include <qt/splashscreen.h>
#include <qt/utilitydialog.h>
#include <qt/winshutdownmonitor.h>
#include <interfaces/handler.h>
#include <interfaces/node.h>
#include <noui.h>
#include <rpc/server.h>
#include <ui_interface.h>
#include <uint256.h>
#include <util.h>
#include <warnings.h>
#include <walletinitinterface.h>
#include <memory>
#include <stdint.h>
#include <boost/thread.hpp>
#include <QApplication>
#include <QDebug>
#include <QLibraryInfo>
#include <QLocale>
#include <QMessageBox>
#include <QSettings>
#include <QThread>
#include <QTimer>
#include <QTranslator>
#include <qt/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

void DebugMessageHandler (QtMsgType type, const QMessageLogContext &context, const QString &msg)
 
int main (int argc, char *argv[])
 

Variables

const std::function< std::string(const char *)> G_TRANSLATION_FUN
 Translate string to current locale using Qt. More...
 

Function Documentation

◆ DebugMessageHandler()

void DebugMessageHandler ( QtMsgType  type,
const QMessageLogContext &  context,
const QString &  msg 
)

Definition at line 138 of file bitcoin.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)
  1. Basic Qt initialization (not dependent on parameters or configuration)
  2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
  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 and blocks 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

Definition at line 556 of file bitcoin.cpp.

Here is the call graph for this function:

Variable Documentation

◆ G_TRANSLATION_FUN

const std::function<std::string(const char*)> G_TRANSLATION_FUN
Initial value:
= [](const char* psz) {
return QCoreApplication::translate("bitcoin-core", psz).toStdString();
}

Translate string to current locale using Qt.

Translate a message to the native language of the user.

Definition at line 80 of file bitcoin.cpp.