#ifndef UPDATENOTIFYWIDGET_H #define UPDATENOTIFYWIDGET_H #include "mainwindow.h" #include #include #include namespace Ui { class UpdateNotifyWidget; } class MainWindow; class UpdateController; class UpdateNotifyWidget : public QWidget { Q_OBJECT public: explicit UpdateNotifyWidget(QWidget *parent = nullptr); void initialize(MainWindow *mainWindow, UpdateController *updateController); void addToList(FileData fileData); void setUpdateList(QList *fileDataList); void updateCount(); ~UpdateNotifyWidget(); signals: void sigUpdateFilesOnServer(QList *fileSendList); private slots: void showCompleteDialogBox(bool flag); void on_StartLoadButton_clicked(); void on_CancelButton_clicked(); private: Ui::UpdateNotifyWidget *ui; MainWindow *mainWindow; UpdateController *updateController; QList *updateList; void fillList(); int currentLoadingCount; }; #endif // UPDATENOTIFYWIDGET_H