|
@@ -11,6 +11,9 @@ struct InitData
|
|
QString serverKey;
|
|
QString serverKey;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+/* 回调函数 */
|
|
|
|
+using trackCallBack = void(*)(int actionID, QString strMemo);
|
|
|
|
+
|
|
class LHTransmitterSwitchAPI
|
|
class LHTransmitterSwitchAPI
|
|
{
|
|
{
|
|
using pInit = int(*)(const InitData*);
|
|
using pInit = int(*)(const InitData*);
|
|
@@ -19,6 +22,7 @@ class LHTransmitterSwitchAPI
|
|
using pGetExecPlanFromEQM = int(*)();
|
|
using pGetExecPlanFromEQM = int(*)();
|
|
using pSaveExecPlanToEQM = int(*)();
|
|
using pSaveExecPlanToEQM = int(*)();
|
|
using pRelease = int(*)();
|
|
using pRelease = int(*)();
|
|
|
|
+ using pSetCallBack = int(*)(trackCallBack);
|
|
|
|
|
|
public:
|
|
public:
|
|
LHTransmitterSwitchAPI();
|
|
LHTransmitterSwitchAPI();
|
|
@@ -33,6 +37,7 @@ public:
|
|
int DoGetExecPlanFromEQM();
|
|
int DoGetExecPlanFromEQM();
|
|
int DoSaveExecPlanToEQM();
|
|
int DoSaveExecPlanToEQM();
|
|
int DoRelease();
|
|
int DoRelease();
|
|
|
|
+ int DoSetCallBack(trackCallBack cb);
|
|
|
|
|
|
private:
|
|
private:
|
|
pInit m_pInit = nullptr;
|
|
pInit m_pInit = nullptr;
|
|
@@ -41,7 +46,7 @@ private:
|
|
pGetExecPlanFromEQM m_pGetExecPlanFromEQM = nullptr;
|
|
pGetExecPlanFromEQM m_pGetExecPlanFromEQM = nullptr;
|
|
pSaveExecPlanToEQM m_pSaveExecPlanToEQM = nullptr;
|
|
pSaveExecPlanToEQM m_pSaveExecPlanToEQM = nullptr;
|
|
pRelease m_pRelease = nullptr;
|
|
pRelease m_pRelease = nullptr;
|
|
-
|
|
|
|
|
|
+ pSetCallBack m_pSetCallBack = nullptr;
|
|
};
|
|
};
|
|
|
|
|
|
#endif /* LHTRANSMITTERSWITCHAPI_H */
|
|
#endif /* LHTRANSMITTERSWITCHAPI_H */
|