mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
* add buttonsView common(complete) * add buttonsView instructor(notWorking) * BUGFIX sendSystem meth update files * BUGFIX updateController meth checkNeedUpdate
50 lines
987 B
C++
50 lines
987 B
C++
#ifndef UPDATECONTROLLER_H
|
|
#define UPDATECONTROLLER_H
|
|
|
|
|
|
#include "Core\FileData.h"
|
|
#include "Core\dataparser.h"
|
|
#include "Core\tcpclient.h"
|
|
#include <QXmlStreamWriter>
|
|
#include <QXmlStreamReader>
|
|
#include <QXmlStreamAttribute>
|
|
#include <QCryptographicHash>
|
|
#include <QDirIterator>
|
|
#include <QFile>
|
|
#include <QTextStream>
|
|
#include <QDateTime>
|
|
#include <QDebug>
|
|
#include <QList>
|
|
#include <QObject>
|
|
|
|
class SendSystem;
|
|
|
|
class UpdateController : public QObject
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit UpdateController(DataParser *parser,SendSystem *sendSystem,QObject *parent = 0);
|
|
|
|
void calculateCommonHash();
|
|
void calculateStreamingHash();
|
|
~UpdateController();
|
|
|
|
void updateFilesOnServer(QList<FileData> *fileSendList);
|
|
|
|
signals:
|
|
void sigUpdateComplete(bool flag);
|
|
private:
|
|
DataParser *dataParser;
|
|
SendSystem *sendSystem;
|
|
QString applicationFolderPath;
|
|
QList<FileData> fileDataList;
|
|
|
|
void calculateHash(QString path);
|
|
};
|
|
|
|
|
|
|
|
#endif // UPDATECONTROLLER_H
|