mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
35 lines
717 B
C++
35 lines
717 B
C++
#ifndef HASHCOMPARER_H
|
|
#define HASHCOMPARER_H
|
|
|
|
#include "FileData.h"
|
|
#include "dataparser.h"
|
|
#include "tools.h"
|
|
|
|
#include <QObject>
|
|
#include <QFile>
|
|
#include <updatenotifywidget.h>
|
|
|
|
class UpdateNotifyWidget;
|
|
class HashComparer :public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit HashComparer(DataParser *dataParser,QObject *parent = nullptr);
|
|
void CompareDeltas();
|
|
~HashComparer();
|
|
|
|
void showDeltas();
|
|
void setWidget(UpdateNotifyWidget *updateWidget);
|
|
QList<FileData> *getFilesForUpdate() const;
|
|
|
|
signals:
|
|
void sigCallCheck();
|
|
void sigHaveDelta();
|
|
private:
|
|
UpdateNotifyWidget* updateWidget;
|
|
QList<FileData> *filesForUpdate;
|
|
DataParser *dataParser;
|
|
};
|
|
|
|
#endif // HASHCOMPARER_H
|