summaryrefslogtreecommitdiffstats
path: root/src/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.h')
-rw-r--r--src/gui.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui.h b/src/gui.h
index 24b4478..e6706ae 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -16,7 +16,7 @@ class Gui : public QDialog
{
Q_OBJECT
public:
- explicit Gui(const QString &urlbase, const QString &uuid, int dnbd3pid, QWidget *parent = nullptr);
+ explicit Gui(const QString &urlbase, const QString &uuid, int dnbd3pid, const QString &statusFile, QWidget *parent = nullptr);
~Gui();
protected:
@@ -29,6 +29,9 @@ private slots:
private:
void setupUi();
void updateButtons();
+ void readDnbd3Status();
+ void queryRemoteStatus();
+ void setProgressState(const QString &title, int percent, const QString &err);
QNetworkAccessManager *_nam;
QVBoxLayout *_itemBox;
@@ -41,6 +44,8 @@ private:
QHash<QString, Progress*> _items;
QLabel *_status;
int _dnbd3pid;
+ QString _statusFile;
+ int _totalClusters;
};
#endif