blob: c4a4b39686373c7919707eb12fe47f2765329b8a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef _COW_GUI_H_
#define _COW_GUI_H_
#include <QDialog>
#include <QHash>
class QVBoxLayout;
class QNetworkAccessManager;
class QPushButton;
class QTimer;
class QLabel;
class Progress;
class Gui : public QDialog
{
Q_OBJECT
public:
explicit Gui(const char *urlbase, const char *uuid, QWidget *parent = nullptr);
~Gui();
protected:
virtual void closeEvent(QCloseEvent *event) override;
private slots:
void pushedCancel(bool pushed);
void pushedOk(bool pushed);
private:
void setupUi();
void updateButtons();
QNetworkAccessManager *_nam;
QVBoxLayout *_itemBox;
QString _remoteState;
QString _urlStatus, _urlAbort, _urlFinish;
bool _denyInteraction;
bool _allowClose;
QPushButton *_btnAbort, *_btnOk;
QTimer *_tmrStatus;
QHash<QString, Progress*> _items;
QLabel *_status;
};
#endif
|