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

#include <intro.h>

Inheritance diagram for Intro:

Public Slots

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

Signals

void requestCheck ()
 

Public Member Functions

 Intro (QWidget *parent=nullptr, uint64_t blockchain_size=0, uint64_t chain_state_size=0)
 
 ~Intro ()
 
QString getDataDirectory ()
 
void setDataDirectory (const QString &dataDir)
 

Static Public Member Functions

static bool pickDataDirectory (interfaces::Node &node)
 

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
 
uint64_t m_blockchain_size
 
uint64_t m_chain_state_size
 

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

Intro::Intro ( QWidget *  parent = nullptr,
uint64_t  blockchain_size = 0,
uint64_t  chain_state_size = 0 
)
explicit

◆ ~Intro()

Intro::~Intro ( )

Member Function Documentation

◆ checkPath()

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

◆ getDataDirectory()

QString Intro::getDataDirectory ( )

◆ getPathToCheck()

QString Intro::getPathToCheck ( )
private

◆ on_dataDirCustom_clicked

void Intro::on_dataDirCustom_clicked ( )
privateslot

◆ on_dataDirDefault_clicked

void Intro::on_dataDirDefault_clicked ( )
privateslot

◆ on_dataDirectory_textChanged

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

◆ on_ellipsisButton_clicked

void Intro::on_ellipsisButton_clicked ( )
privateslot

◆ 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.

◆ requestCheck

void Intro::requestCheck ( )
signal

◆ setDataDirectory()

void Intro::setDataDirectory ( const QString &  dataDir)

◆ setStatus

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

◆ startThread()

void Intro::startThread ( )
private

Friends And Related Function Documentation

◆ FreespaceChecker

friend class FreespaceChecker
friend

Member Data Documentation

◆ m_blockchain_size

uint64_t Intro::m_blockchain_size
private

◆ m_chain_state_size

uint64_t Intro::m_chain_state_size
private

◆ mutex

QMutex Intro::mutex
private

◆ pathToCheck

QString Intro::pathToCheck
private

◆ signalled

bool Intro::signalled
private

◆ thread

QThread* Intro::thread
private

◆ ui

Ui::Intro* Intro::ui
private

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