mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#ifndef SENDSYSTEM_H
|
|
#define SENDSYSTEM_H
|
|
|
|
#include <QObject>
|
|
#include <QFile>
|
|
#include <QFileInfo>
|
|
#include <QThread>
|
|
#include <QTcpSocket>
|
|
#include <QDataStream>
|
|
#include <Core/tools.h>
|
|
|
|
class SendSystem :public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SendSystem(QObject* parent = nullptr);
|
|
void setSocket(QTcpSocket *socket);
|
|
void sendClientAutorization();
|
|
void sendDisable();
|
|
void sendFileBlock(const QString& path);
|
|
void sendFolderBlock(const QString& path);
|
|
void sendFileBlockWithVersion(const QString& localPath,const QString& serverPath);
|
|
void sendQTConnect();
|
|
void sendXMLAnswer(const QByteArray& array);
|
|
void sendFinish();
|
|
void sendChangeVersion(StreamingVersionData *streamingVersion);
|
|
void sendDeleteVersion(StreamingVersionData *streamingVersion);
|
|
void sendCopyVersion(const QString& versionName);
|
|
void sendCheckHash();
|
|
void sendPacketType(PacketType packetType);
|
|
|
|
~SendSystem(){};
|
|
signals:
|
|
void sigSend();
|
|
QByteArray sigGetXmlAnswer(QString);
|
|
|
|
public slots:
|
|
void xmlAnswer(const QString& message);
|
|
private:
|
|
QTcpSocket *socket;
|
|
int readSize;
|
|
|
|
};
|
|
|
|
#endif // SENDSYSTEM_H
|