Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Private Attributes | Friends | List of all members
Intro Class Reference

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 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::Introui
 
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 22 of file intro.h.

Constructor & Destructor Documentation

Intro::Intro ( QWidget parent = 0)
explicit

Definition at line 108 of file intro.cpp.

References BLOCK_CHAIN_SIZE, GB_BYTES, Ui_Intro::setupUi(), Ui_Intro::sizeWarningLabel, startThread(), and ui.

+ Here is the call graph for this function:

Intro::~Intro ( )

Definition at line 119 of file intro.cpp.

References stopThread(), thread, and ui.

Member Function Documentation

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

Definition at line 272 of file intro.cpp.

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

Referenced by on_dataDirectory_textChanged().

+ Here is the caller graph for this function:

QString Intro::getDataDirectory ( )

Definition at line 127 of file intro.cpp.

References Ui_Intro::dataDirectory, and ui.

Referenced by pickDataDirectory().

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString Intro::getPathToCheck ( )
private

Definition at line 284 of file intro.cpp.

References mutex, pathToCheck, and signalled.

Referenced by FreespaceChecker::check().

+ Here is the caller graph for this function:

void Intro::on_dataDirCustom_clicked ( )
privateslot

Definition at line 251 of file intro.cpp.

References Ui_Intro::dataDirectory, Ui_Intro::ellipsisButton, and ui.

void Intro::on_dataDirDefault_clicked ( )
privateslot

Definition at line 246 of file intro.cpp.

References getDefaultDataDirectory(), and setDataDirectory().

+ Here is the call graph for this function:

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

Definition at line 232 of file intro.cpp.

References Ui_Intro::buttonBox, checkPath(), and ui.

+ Here is the call graph for this function:

void Intro::on_ellipsisButton_clicked ( )
privateslot

Definition at line 239 of file intro.cpp.

References Ui_Intro::dataDirectory, and ui.

void Intro::pickDataDirectory ( )
static

Determine data directory.

Let the user choose if the current one doesn't exist.

Note
do NOT call global GetDataDir() before calling this function, this will cause the wrong path to be cached.

Definition at line 152 of file intro.cpp.

References GetArg(), GetBoolArg(), getDataDirectory(), getDefaultDataDirectory(), GUIUtil::qstringToBoostPath(), setDataDirectory(), SoftSetArg(), and TryCreateDirectory().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Intro::requestCheck ( )
signal

Definition at line 113 of file moc_intro.cpp.

Referenced by checkPath(), and startThread().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Intro::setStatus ( int  status,
const QString &  message,
quint64  bytesAvailable 
)
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().

+ Here is the caller graph for this function:

void Intro::startThread ( )
private

Definition at line 257 of file intro.cpp.

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

Referenced by Intro().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Intro::stopThread ( )
signal

Definition at line 119 of file moc_intro.cpp.

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

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class FreespaceChecker
friend

Definition at line 70 of file intro.h.

Referenced by startThread().

Member Data Documentation

QMutex Intro::mutex
private

Definition at line 62 of file intro.h.

Referenced by checkPath(), and getPathToCheck().

QString Intro::pathToCheck
private

Definition at line 64 of file intro.h.

Referenced by checkPath(), and getPathToCheck().

bool Intro::signalled
private

Definition at line 63 of file intro.h.

Referenced by checkPath(), and getPathToCheck().

QThread* Intro::thread
private

Definition at line 61 of file intro.h.

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

Ui::Intro* Intro::ui
private

The documentation for this class was generated from the following files: