mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 11:49:42 +08:00
调试上传用
This commit is contained in:
37
source/Uploader/DataFileTransfer.h
Normal file
37
source/Uploader/DataFileTransfer.h
Normal file
@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
#include "pch.h"
|
||||
#include "ZZ_Types.h"
|
||||
//http://172.16.0.234/fileup/Data_uper.php
|
||||
//http://172.16.0.234/fileup/Dev_info_uper.php
|
||||
//http://172.16.0.234/fileup/Warning.php
|
||||
|
||||
using namespace std;
|
||||
using namespace ZZ_MISCDEF::ZZ_DATAFILE;
|
||||
using namespace ZZ_MISCDEF::ZZ_RUNPARAMS;
|
||||
using namespace ZZ_MISCDEF::IRIS::FS;
|
||||
|
||||
class ZZ_HttpTransfer :public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ZZ_HttpTransfer(QObject* parent = nullptr);
|
||||
~ZZ_HttpTransfer();
|
||||
public:
|
||||
public:
|
||||
int SendData();
|
||||
int SendInfo();
|
||||
int SendErr();
|
||||
|
||||
void SetContext(EContext struEC, MEContext struMEC);
|
||||
void SetDeviceInfo(RunTimeGrabberParams struGrabberRTParams);
|
||||
void SetCalData(vector<vector<CalDataFrame>> vecCalcedData);
|
||||
private:
|
||||
QNetworkAccessManager *m_pNetworkManager;
|
||||
EContext m_struEC;
|
||||
MEContext m_struMEC;
|
||||
RunTimeGrabberParams m_struGrabberRTParams;
|
||||
vector<vector<CalDataFrame>> m_vecCalcedData;
|
||||
private:
|
||||
public slots:
|
||||
int SlotReplyFinished(QNetworkReply* qnReply);
|
||||
};
|
Reference in New Issue
Block a user