You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
863 B
C

4 years ago
#ifndef LPDESIGNER_H
#define LPDESIGNER_H
#include "lpdsgdefine.h"
#include "SystemStateInfo.h"
#include <QtCore>
class IDetectorEngine;
class IDetectorTask;
class IDetectorUISink
{
public:
virtual void OnManualTrigger() = 0;
virtual void ResetItem(QPoint pos, QRect size) = 0;
virtual void OnSetParam(IDetectorTask* pTask) = 0;
};
class IDetectorUI
{
public:
virtual bool Initialize(IDetectorEngine* lpDE) = 0;
virtual bool ShowMainFrame(class QWidget* parent = nullptr) = 0;
virtual void HideMainFrame() = 0;
virtual bool IsMainFrameHidden() = 0;
};
#ifdef LPDESIGNER_LIB
# define LPDESIGNER_EXPORT extern "C" __declspec(dllexport)
#else
# define LPDESIGNER_EXPORT extern "C" __declspec(dllimport)
#endif
LPDESIGNER_EXPORT IDetectorUI * Lib_Designer_Init(void);
LPDESIGNER_EXPORT void Lib_Designer_Free(IDetectorUI *ptr);
#endif // LPDESIGNER_H