mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Merge branch 'work48' into DEV
This commit is contained in:
@@ -19,11 +19,15 @@ class SendSystem : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SendSystem(QObject* parent = nullptr);
|
||||
~SendSystem();
|
||||
|
||||
void initialize(DataParser* dataParser,QMutex *globalMutex);
|
||||
void setClient(Client* client,QTcpSocket *socket);
|
||||
|
||||
void sendMessageBlock(QString message);
|
||||
void sendFileBlock(QString path);
|
||||
void sendFileBlock_V2(QString path);
|
||||
void sendFileBlock_V3(QString path);
|
||||
void sendFileBlockByteArray(QByteArray array, PacketType packetType);
|
||||
void sendFileBlockWithRename(QString path,QString newName);
|
||||
void sendFolderBlock(QString path);
|
||||
@@ -35,18 +39,21 @@ public:
|
||||
void sendDocs(QString docPath);
|
||||
void sendXmlAnswer(QByteArray array, PacketType packetType = PacketType::TYPE_XMLANSWER);
|
||||
void sendNeedUpdate(bool flag,quint64 size,quint64 fileCount,quint64 deleteCount);
|
||||
|
||||
void updateFiles(QList<FileData> fileSendList, QList<FileData> deleteList);
|
||||
|
||||
bool getIsSendStopped() const;
|
||||
|
||||
~SendSystem();
|
||||
|
||||
|
||||
void updateFilesFULL(QList<FileData> fileSendList, QList<FileData> deleteList);
|
||||
|
||||
bool waitWrittenData(QString marker, int msec = 500);
|
||||
|
||||
public slots:
|
||||
void socketClose();
|
||||
void sendVersion();
|
||||
|
||||
void slot_BytesWrittenToSocket(qint64 bytes);
|
||||
|
||||
signals:
|
||||
void sigLoadHash();
|
||||
//QByteArray sigSendXMLmessage(QString loginFrom, QString loginTo, QString text, QString userType); //сигнал не используется
|
||||
@@ -57,12 +64,19 @@ private:
|
||||
Client *client;
|
||||
QTcpSocket* socket;
|
||||
DataParser* dataParser;
|
||||
quint64 fileSize;
|
||||
QMutex *mutex;
|
||||
|
||||
QMutex *globalMutex;
|
||||
QWaitCondition *waitCondition;
|
||||
int countSend;
|
||||
bool isSendStopped;
|
||||
|
||||
char* buffer;
|
||||
|
||||
TypeClientAutorization type;
|
||||
|
||||
bool isSendStopped;
|
||||
bool flWaitWriten;
|
||||
|
||||
quint64 fileSize;
|
||||
int countSend;
|
||||
};
|
||||
|
||||
#endif // SENDSYSTEM_H
|
||||
|
||||
Reference in New Issue
Block a user