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>

+ Inheritance diagram for Intro:
+ Collaboration diagram for Intro:

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.

Definition at line 24 of file intro.h.

Constructor & Destructor Documentation

◆ Intro()

Intro::Intro ( QWidget *  parent = 0)
explicit

◆ ~Intro()

Intro::~Intro ( )

Definition at line 157 of file intro.cpp.

References stopThread(), thread, and ui.

Member Function Documentation

◆ checkPath()

void Intro::checkPath ( const QString &  dataDir)
private

Definition at line 318 of file intro.cpp.

References mutex, pathToCheck, requestCheck(), and signalled.

Referenced by on_dataDirectory_textChanged().

◆ getDataDirectory()

QString Intro::getDataDirectory ( )

Definition at line 165 of file intro.cpp.

References ui.

Referenced by pickDataDirectory().

◆ getDefaultDataDirectory()

QString Intro::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()

QString Intro::getPathToCheck ( )
private

Definition at line 330 of file intro.cpp.

References mutex, pathToCheck, and signalled.

Referenced by FreespaceChecker::check().

◆ on_dataDirCustom_clicked

void Intro::on_dataDirCustom_clicked ( )
privateslot

Definition at line 297 of file intro.cpp.

References ui.

◆ on_dataDirDefault_clicked

void Intro::on_dataDirDefault_clicked ( )
privateslot

Definition at line 292 of file intro.cpp.

References getDefaultDataDirectory(), and setDataDirectory().

◆ on_dataDirectory_textChanged

void Intro::on_dataDirectory_textChanged ( const QString &  arg1)
privateslot

Definition at line 278 of file intro.cpp.

References checkPath(), and ui.

◆ on_ellipsisButton_clicked

void Intro::on_ellipsisButton_clicked ( )
privateslot

Definition at line 285 of file intro.cpp.

References ui.

◆ pickDataDirectory()

bool Intro::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

void Intro::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

void Intro::setStatus ( int  status,
const QString &  message,
quint64  bytesAvailable 
)
slot

◆ startThread()

void Intro::startThread ( )
private

Definition at line 303 of file intro.cpp.

References FreespaceChecker, requestCheck(), setStatus(), stopThread(), and thread.

Referenced by Intro().

◆ stopThread

void Intro::stopThread ( )
signal

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

Friends And Related Function Documentation

◆ FreespaceChecker

friend class FreespaceChecker
friend

Definition at line 75 of file intro.h.

Referenced by startThread().

Member Data Documentation

◆ mutex

QMutex Intro::mutex
private

Definition at line 67 of file intro.h.

Referenced by checkPath(), and getPathToCheck().

◆ pathToCheck

QString Intro::pathToCheck
private

Definition at line 69 of file intro.h.

Referenced by checkPath(), and getPathToCheck().

◆ signalled

bool Intro::signalled
private

Definition at line 68 of file intro.h.

Referenced by checkPath(), and getPathToCheck().

◆ thread

QThread* Intro::thread
private

Definition at line 66 of file intro.h.

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

◆ ui


The documentation for this class was generated from the following files:
Released under the MIT license