#ifndef _COW_GUI_H_ #define _COW_GUI_H_ #include #include 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 _items; QLabel *_status; }; #endif