Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Introduction screen (pre-GUI startup). More...
#include <intro.h>
Public Slots | |
void | setStatus (int status, const QString &message, quint64 bytesAvailable) |
Signals | |
void | requestCheck () |
void | stopThread () |
Public Member Functions | |
Intro (QWidget *parent=0) | |
~Intro () | |
QString | getDataDirectory () |
void | setDataDirectory (const QString &dataDir) |
Static Public Member Functions | |
static bool | pickDataDirectory () |
Determine data directory. More... | |
static QString | getDefaultDataDirectory () |
Determine default data directory for operating system. More... | |
Private Slots | |
void | on_dataDirectory_textChanged (const QString &arg1) |
void | on_ellipsisButton_clicked () |
void | on_dataDirDefault_clicked () |
void | on_dataDirCustom_clicked () |
Private Member Functions | |
void | startThread () |
void | checkPath (const QString &dataDir) |
QString | getPathToCheck () |
Private Attributes | |
Ui::Intro * | ui |
QThread * | thread |
QMutex | mutex |
bool | signalled |
QString | pathToCheck |
Friends | |
class | FreespaceChecker |
Detailed Description
Introduction screen (pre-GUI startup).
Allows the user to choose a data directory, in which the wallet and block chain will be stored.
Constructor & Destructor Documentation
◆ Intro()
|
explicit |
Definition at line 117 of file intro.cpp.
References BLOCK_CHAIN_SIZE, CHAIN_STATE_SIZE, gArgs, GB_BYTES, ArgsManager::GetArg(), requiredSpace, startThread(), and ui.
◆ ~Intro()
Intro::~Intro | ( | ) |
Definition at line 157 of file intro.cpp.
References stopThread(), thread, and ui.
Member Function Documentation
◆ checkPath()
|
private |
Definition at line 318 of file intro.cpp.
References mutex, pathToCheck, requestCheck(), and signalled.
Referenced by on_dataDirectory_textChanged().
◆ getDataDirectory()
QString Intro::getDataDirectory | ( | ) |
◆ getDefaultDataDirectory()
|
static |
Determine default data directory for operating system.
Definition at line 185 of file intro.cpp.
References GUIUtil::boostPathToQString(), and GetDefaultDataDir().
Referenced by on_dataDirDefault_clicked(), pickDataDirectory(), and setDataDirectory().
◆ getPathToCheck()
|
private |
Definition at line 330 of file intro.cpp.
References mutex, pathToCheck, and signalled.
Referenced by FreespaceChecker::check().
◆ on_dataDirCustom_clicked
|
privateslot |
◆ on_dataDirDefault_clicked
|
privateslot |
Definition at line 292 of file intro.cpp.
References getDefaultDataDirectory(), and setDataDirectory().
◆ on_dataDirectory_textChanged
|
privateslot |
Definition at line 278 of file intro.cpp.
References checkPath(), and ui.
◆ on_ellipsisButton_clicked
|
privateslot |
◆ pickDataDirectory()
|
static |
Determine data directory.
Let the user choose if the current one doesn't exist.
- Returns
- true if a data directory was selected, false if the user cancelled the selection dialog.
- Note
- do NOT call global GetDataDir() before calling this function, this will cause the wrong path to be cached.
Definition at line 190 of file intro.cpp.
References DEFAULT_CHOOSE_DATADIR, GUIUtil::disableMacFocusRect(), gArgs, ArgsManager::GetArg(), ArgsManager::GetBoolArg(), getDataDirectory(), getDefaultDataDirectory(), GUIUtil::loadStyleSheet(), GUIUtil::qstringToBoostPath(), setDataDirectory(), ArgsManager::SoftSetArg(), and TryCreateDirectories().
Referenced by main().
◆ requestCheck
|
signal |
Referenced by checkPath(), and startThread().
◆ setDataDirectory()
void Intro::setDataDirectory | ( | const QString & | dataDir | ) |
Definition at line 170 of file intro.cpp.
References getDefaultDataDirectory(), and ui.
Referenced by on_dataDirDefault_clicked(), and pickDataDirectory().
◆ setStatus
|
slot |
Definition at line 246 of file intro.cpp.
References GB_BYTES, GUIUtil::getThemedStyleQString(), requiredSpace, FreespaceChecker::ST_ERROR, FreespaceChecker::ST_OK, GUIUtil::TS_ERROR, and ui.
Referenced by startThread().
◆ startThread()
|
private |
Definition at line 303 of file intro.cpp.
References FreespaceChecker, requestCheck(), setStatus(), stopThread(), and thread.
Referenced by Intro().
◆ stopThread
|
signal |
Referenced by startThread(), and ~Intro().
Friends And Related Function Documentation
◆ FreespaceChecker
|
friend |
Definition at line 75 of file intro.h.
Referenced by startThread().
Member Data Documentation
◆ mutex
|
private |
Definition at line 67 of file intro.h.
Referenced by checkPath(), and getPathToCheck().
◆ pathToCheck
|
private |
Definition at line 69 of file intro.h.
Referenced by checkPath(), and getPathToCheck().
◆ signalled
|
private |
Definition at line 68 of file intro.h.
Referenced by checkPath(), and getPathToCheck().
◆ thread
|
private |
Definition at line 66 of file intro.h.
Referenced by startThread(), and ~Intro().
◆ ui
|
private |
Definition at line 65 of file intro.h.
Referenced by getDataDirectory(), Intro(), on_dataDirCustom_clicked(), on_dataDirectory_textChanged(), on_ellipsisButton_clicked(), setDataDirectory(), setStatus(), and ~Intro().
The documentation for this class was generated from the following files: