12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef FROMWEBAPI_H
- #define FROMWEBAPI_H
- #include "lhhttpapi.h"
- #include "TransmitterSwitchInfo.h"
- struct ExecPlanItemInfo;
- class FromWebAPI
- {
- public:
- FromWebAPI();
- ~FromWebAPI();
-
- bool initWebApi(const QString& url,const QString& serverID,const QString& serverKey);
-
-
- bool getDeviceInfo(QMap<QString, DeviceInfo>& mapDevice);
-
- bool insertData(QList<ExecPlanItemInfo>& list);
-
- bool getExecPlanData(QList<ExecPlanItemInfo>& list);
-
- bool getEQMTemplateID(QList<int>& listId);
-
- bool deleteAllRow();
-
- bool deleteAllTransmitterPlan();
- private:
- lhhttpapi* m_httpApi = nullptr;
- QString m_userToken;
- };
- #endif
|