Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

intro.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_QT_INTRO_H
6 #define BITCOIN_QT_INTRO_H
7 
8 #include <QDialog>
9 #include <QMutex>
10 #include <QThread>
11 
12 static const bool DEFAULT_CHOOSE_DATADIR = false;
13 
14 class FreespaceChecker;
15 
16 namespace Ui {
17  class Intro;
18 }
19 
24 class Intro : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
29  explicit Intro(QWidget *parent = 0);
30  ~Intro();
31 
32  QString getDataDirectory();
33  void setDataDirectory(const QString &dataDir);
34 
44  static bool pickDataDirectory();
45 
49  static QString getDefaultDataDirectory();
50 
51 Q_SIGNALS:
52  void requestCheck();
53  void stopThread();
54 
55 public Q_SLOTS:
56  void setStatus(int status, const QString &message, quint64 bytesAvailable);
57 
58 private Q_SLOTS:
59  void on_dataDirectory_textChanged(const QString &arg1);
63 
64 private:
65  Ui::Intro *ui;
66  QThread *thread;
67  QMutex mutex;
68  bool signalled;
69  QString pathToCheck;
70 
71  void startThread();
72  void checkPath(const QString &dataDir);
73  QString getPathToCheck();
74 
75  friend class FreespaceChecker;
76 };
77 
78 #endif // BITCOIN_QT_INTRO_H
static const bool DEFAULT_CHOOSE_DATADIR
Definition: intro.h:12
void requestCheck()
void on_dataDirCustom_clicked()
Definition: intro.cpp:297
QString getDataDirectory()
Definition: intro.cpp:165
Intro(QWidget *parent=0)
Definition: intro.cpp:117
bool signalled
Definition: intro.h:68
static QString getDefaultDataDirectory()
Determine default data directory for operating system.
Definition: intro.cpp:185
void on_dataDirectory_textChanged(const QString &arg1)
Definition: intro.cpp:278
void setStatus(int status, const QString &message, quint64 bytesAvailable)
Definition: intro.cpp:246
void checkPath(const QString &dataDir)
Definition: intro.cpp:318
void on_ellipsisButton_clicked()
Definition: intro.cpp:285
void on_dataDirDefault_clicked()
Definition: intro.cpp:292
QString getPathToCheck()
Definition: intro.cpp:330
void setDataDirectory(const QString &dataDir)
Definition: intro.cpp:170
Ui::Intro * ui
Definition: intro.h:65
void startThread()
Definition: intro.cpp:303
~Intro()
Definition: intro.cpp:157
static bool pickDataDirectory()
Determine data directory.
Definition: intro.cpp:190
QMutex mutex
Definition: intro.h:67
QThread * thread
Definition: intro.h:66
QString pathToCheck
Definition: intro.h:69
Introduction screen (pre-GUI startup).
Definition: intro.h:24
void stopThread()
Released under the MIT license