Changeset View
Changeset View
Standalone View
Standalone View
src/qt/intro.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | /* Check free space asynchronously to prevent hanging the UI thread. | ||||
still entering the path, and that always the most recently entered path is | still entering the path, and that always the most recently entered path is | ||||
checked as | checked as | ||||
soon as the thread becomes available. | soon as the thread becomes available. | ||||
*/ | */ | ||||
class FreespaceChecker : public QObject { | class FreespaceChecker : public QObject { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
FreespaceChecker(Intro *intro); | explicit FreespaceChecker(Intro *intro); | ||||
enum Status { ST_OK, ST_ERROR }; | enum Status { ST_OK, ST_ERROR }; | ||||
public Q_SLOTS: | public Q_SLOTS: | ||||
void check(); | void check(); | ||||
Q_SIGNALS: | Q_SIGNALS: | ||||
void reply(int status, const QString &message, quint64 available); | void reply(int status, const QString &message, quint64 available); | ||||
▲ Show 20 Lines • Show All 241 Lines • Show Last 20 Lines |