BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
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:
[legend]
Collaboration diagram for Intro:
[legend]

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 (interfaces::Node &node)
 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 28 of file intro.h.

Constructor & Destructor Documentation

◆ Intro()

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

Definition at line 117 of file intro.cpp.

Here is the call graph for this function:

◆ ~Intro()

Intro::~Intro ( )

Definition at line 157 of file intro.cpp.

Member Function Documentation

◆ checkPath()

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

Definition at line 315 of file intro.cpp.

Here is the caller graph for this function:

◆ getDataDirectory()

QString Intro::getDataDirectory ( )

Definition at line 165 of file intro.cpp.

◆ getDefaultDataDirectory()

QString Intro::getDefaultDataDirectory ( )
static

Determine default data directory for operating system.

Definition at line 185 of file intro.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPathToCheck()

QString Intro::getPathToCheck ( )
private

Definition at line 327 of file intro.cpp.

Here is the caller graph for this function:

◆ on_dataDirCustom_clicked

void Intro::on_dataDirCustom_clicked ( )
privateslot

Definition at line 294 of file intro.cpp.

◆ on_dataDirDefault_clicked

void Intro::on_dataDirDefault_clicked ( )
privateslot

Definition at line 289 of file intro.cpp.

Here is the call graph for this function:

◆ on_dataDirectory_textChanged

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

Definition at line 275 of file intro.cpp.

Here is the call graph for this function:

◆ on_ellipsisButton_clicked

void Intro::on_ellipsisButton_clicked ( )
privateslot

Definition at line 282 of file intro.cpp.

◆ pickDataDirectory()

bool Intro::pickDataDirectory ( interfaces::Node node)
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.

Here is the call graph for this function:

◆ requestCheck

void Intro::requestCheck ( )
signal
Here is the caller graph for this function:

◆ setDataDirectory()

void Intro::setDataDirectory ( const QString &  dataDir)

Definition at line 170 of file intro.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStatus

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

Definition at line 243 of file intro.cpp.

Here is the caller graph for this function:

◆ startThread()

void Intro::startThread ( )
private

Definition at line 300 of file intro.cpp.

Here is the call graph for this function:

◆ stopThread

void Intro::stopThread ( )
signal
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ FreespaceChecker

friend class FreespaceChecker
friend

Definition at line 79 of file intro.h.

Member Data Documentation

◆ mutex

QMutex Intro::mutex
private

Definition at line 71 of file intro.h.

◆ pathToCheck

QString Intro::pathToCheck
private

Definition at line 73 of file intro.h.

◆ signalled

bool Intro::signalled
private

Definition at line 72 of file intro.h.

◆ thread

QThread* Intro::thread
private

Definition at line 70 of file intro.h.

◆ ui

Ui::Intro* Intro::ui
private

Definition at line 69 of file intro.h.


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