Changeset View
Changeset View
Standalone View
Standalone View
src/qt/intro.h
Show All 23 Lines | |||||
/** Introduction screen (pre-GUI startup). | /** Introduction screen (pre-GUI startup). | ||||
Allows the user to choose a data directory, | Allows the user to choose a data directory, | ||||
in which the wallet and block chain will be stored. | in which the wallet and block chain will be stored. | ||||
*/ | */ | ||||
class Intro : public QDialog { | class Intro : public QDialog { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
explicit Intro(QWidget *parent = nullptr); | explicit Intro(QWidget *parent = nullptr, uint64_t blockchain_size = 0, | ||||
uint64_t chain_state_size = 0); | |||||
~Intro(); | ~Intro(); | ||||
QString getDataDirectory(); | QString getDataDirectory(); | ||||
void setDataDirectory(const QString &dataDir); | void setDataDirectory(const QString &dataDir); | ||||
/** | /** | ||||
* Determine data directory. Let the user choose if the current one doesn't | * Determine data directory. Let the user choose if the current one doesn't | ||||
* exist. | * exist. | ||||
Show All 26 Lines | private Q_SLOTS: | ||||
void on_dataDirCustom_clicked(); | void on_dataDirCustom_clicked(); | ||||
private: | private: | ||||
Ui::Intro *ui; | Ui::Intro *ui; | ||||
QThread *thread; | QThread *thread; | ||||
QMutex mutex; | QMutex mutex; | ||||
bool signalled; | bool signalled; | ||||
QString pathToCheck; | QString pathToCheck; | ||||
uint64_t m_blockchain_size; | |||||
uint64_t m_chain_state_size; | |||||
void startThread(); | void startThread(); | ||||
void checkPath(const QString &dataDir); | void checkPath(const QString &dataDir); | ||||
QString getPathToCheck(); | QString getPathToCheck(); | ||||
friend class FreespaceChecker; | friend class FreespaceChecker; | ||||
}; | }; | ||||
#endif // BITCOIN_QT_INTRO_H | #endif // BITCOIN_QT_INTRO_H |