mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
45 lines
972 B
C++
45 lines
972 B
C++
#ifndef UPDATENOTIFYWIDGET_H
|
|
#define UPDATENOTIFYWIDGET_H
|
|
|
|
#include "mainwindow.h"
|
|
|
|
#include <QDialog>
|
|
#include <QWidget>
|
|
|
|
#include <Core/FileData.h>
|
|
|
|
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<FileData> *fileDataList);
|
|
~UpdateNotifyWidget();
|
|
|
|
signals:
|
|
void sigUpdateFilesOnServer(QList<FileData> *fileSendList);
|
|
|
|
private slots:
|
|
void showCompleteDialogBox(bool flag);
|
|
void on_StartLoadButton_clicked();
|
|
void on_CancelButton_clicked();
|
|
|
|
private:
|
|
Ui::UpdateNotifyWidget *ui;
|
|
MainWindow *mainWindow;
|
|
UpdateController *updateController;
|
|
QList<FileData> *updateList;
|
|
void fillList();
|
|
};
|
|
|
|
#endif // UPDATENOTIFYWIDGET_H
|