add:psdk重启后,通知本程序发送本程序的状态;

This commit is contained in:
tangchao0503
2023-10-25 15:33:52 +08:00
parent 7fa3b70d10
commit d0b67b47c1
5 changed files with 208 additions and 10 deletions

View File

@ -68,8 +68,36 @@ public:
// bool updateConfigFile();
bool writeConfig2File();
private:
string m_configfilePath;
Config cfg;
private:
};
class StateOf300tcConfigfile:public ParameterConfigfile
{
public:
StateOf300tcConfigfile();
bool getSwitchState(bool &switchState);
bool setSwitchState(bool switchState);
bool getSbgState(int &sbgState);
bool setSbgState(int sbgState);
bool getSbgSolutionMode(int &sbgSolutionMode);
bool setSbgSolutionMode(int sbgSolutionMode);
bool getXimeaState(int &ximeaState);
bool setXimeaState(int ximeaState);
bool getExposeMaxValueOfOneFrame(int &exposeMaxValueOfOneFrame);
bool setExposeMaxValueOfOneFrame(int exposeMaxValueOfOneFrame);
bool createConfigFile();
private:
bool getIntValue(int &value, string field);
bool setIntValue(int value, string field);
};
#endif //XIMEAIMAGERECORDER_CONFIGFILE_H

View File

@ -18,6 +18,8 @@
#include "sbgrecorder.h"
#include "fileoperation.h"
#include "configfile.h"
extern "C"
{
// #include <sbgEComLib.h>
@ -75,6 +77,8 @@ class UdpServer:public QObject
QThread * m_recordTempThread;
Record300TcTemperature * m_300tcTemperature;
StateOf300tcConfigfile stateOf300tc;
signals:
void systemStart();
void systemStop();