![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
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 void | 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 |
Introduction screen (pre-GUI startup).
Allows the user to choose a data directory, in which the wallet and block chain will be stored.
|
explicit |
Definition at line 108 of file intro.cpp.
References BLOCK_CHAIN_SIZE, GB_BYTES, Ui_Intro::setupUi(), Ui_Intro::sizeWarningLabel, startThread(), and ui.
Intro::~Intro | ( | ) |
Definition at line 119 of file intro.cpp.
References stopThread(), thread, and ui.
|
private |
Definition at line 272 of file intro.cpp.
References mutex, pathToCheck, requestCheck(), and signalled.
Referenced by on_dataDirectory_textChanged().
QString Intro::getDataDirectory | ( | ) |
Definition at line 127 of file intro.cpp.
References Ui_Intro::dataDirectory, and ui.
Referenced by pickDataDirectory().
|
static |
Determine default data directory for operating system.
Definition at line 147 of file intro.cpp.
References GUIUtil::boostPathToQString(), and GetDefaultDataDir().
Referenced by on_dataDirDefault_clicked(), pickDataDirectory(), and setDataDirectory().
|
private |
Definition at line 284 of file intro.cpp.
References mutex, pathToCheck, and signalled.
Referenced by FreespaceChecker::check().
|
privateslot |
Definition at line 251 of file intro.cpp.
References Ui_Intro::dataDirectory, Ui_Intro::ellipsisButton, and ui.
|
privateslot |
Definition at line 246 of file intro.cpp.
References getDefaultDataDirectory(), and setDataDirectory().
|
privateslot |
Definition at line 232 of file intro.cpp.
References Ui_Intro::buttonBox, checkPath(), and ui.
|
privateslot |
Definition at line 239 of file intro.cpp.
References Ui_Intro::dataDirectory, and ui.
|
static |
Determine data directory.
Let the user choose if the current one doesn't exist.
Definition at line 152 of file intro.cpp.
References GetArg(), GetBoolArg(), getDataDirectory(), getDefaultDataDirectory(), GUIUtil::qstringToBoostPath(), setDataDirectory(), SoftSetArg(), and TryCreateDirectory().
Referenced by main().
|
signal |
Definition at line 113 of file moc_intro.cpp.
Referenced by checkPath(), and startThread().
void Intro::setDataDirectory | ( | const QString & | dataDir | ) |
Definition at line 132 of file intro.cpp.
References Ui_Intro::dataDirCustom, Ui_Intro::dataDirDefault, Ui_Intro::dataDirectory, Ui_Intro::ellipsisButton, getDefaultDataDirectory(), and ui.
Referenced by on_dataDirDefault_clicked(), and pickDataDirectory().
|
slot |
Definition at line 200 of file intro.cpp.
References BLOCK_CHAIN_SIZE, Ui_Intro::buttonBox, Ui_Intro::errorMessage, Ui_Intro::freeSpace, GB_BYTES, FreespaceChecker::ST_ERROR, FreespaceChecker::ST_OK, and ui.
Referenced by startThread().
|
private |
Definition at line 257 of file intro.cpp.
References FreespaceChecker, requestCheck(), setStatus(), stopThread(), and thread.
Referenced by Intro().
|
signal |
Definition at line 119 of file moc_intro.cpp.
Referenced by startThread(), and ~Intro().
|
friend |
Definition at line 70 of file intro.h.
Referenced by startThread().
|
private |
Definition at line 62 of file intro.h.
Referenced by checkPath(), and getPathToCheck().
|
private |
Definition at line 64 of file intro.h.
Referenced by checkPath(), and getPathToCheck().
|
private |
Definition at line 63 of file intro.h.
Referenced by checkPath(), and getPathToCheck().
|
private |
Definition at line 61 of file intro.h.
Referenced by startThread(), and ~Intro().
|
private |
Definition at line 60 of file intro.h.
Referenced by getDataDirectory(), Intro(), on_dataDirCustom_clicked(), on_dataDirectory_textChanged(), on_ellipsisButton_clicked(), setDataDirectory(), setStatus(), and ~Intro().