Changeset View
Changeset View
Standalone View
Standalone View
src/qt/intro.h
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_QT_INTRO_H | #ifndef BITCOIN_QT_INTRO_H | ||||
#define BITCOIN_QT_INTRO_H | #define BITCOIN_QT_INTRO_H | ||||
#include <QDialog> | #include <QDialog> | ||||
#include <QMutex> | #include <QMutex> | ||||
#include <QThread> | #include <QThread> | ||||
static const bool DEFAULT_CHOOSE_DATADIR = false; | static const bool DEFAULT_CHOOSE_DATADIR = false; | ||||
class FreespaceChecker; | class FreespaceChecker; | ||||
namespace interfaces { | |||||
class Node; | |||||
} | |||||
namespace Ui { | namespace Ui { | ||||
class Intro; | class Intro; | ||||
} | } | ||||
/** 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. | ||||
*/ | */ | ||||
Show All 13 Lines | public: | ||||
* | * | ||||
* @returns true if a data directory was selected, false if the user | * @returns true if a data directory was selected, false if the user | ||||
* cancelled the selection | * cancelled the selection | ||||
* dialog. | * dialog. | ||||
* | * | ||||
* @note do NOT call global GetDataDir() before calling this function, this | * @note do NOT call global GetDataDir() before calling this function, this | ||||
* will cause the wrong path to be cached. | * will cause the wrong path to be cached. | ||||
*/ | */ | ||||
static bool pickDataDirectory(); | static bool pickDataDirectory(interfaces::Node &node); | ||||
/** | /** | ||||
* Determine default data directory for operating system. | * Determine default data directory for operating system. | ||||
*/ | */ | ||||
static QString getDefaultDataDirectory(); | static QString getDefaultDataDirectory(); | ||||
Q_SIGNALS: | Q_SIGNALS: | ||||
void requestCheck(); | void requestCheck(); | ||||
Show All 26 Lines |