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.
46 lines
741 B
C++
46 lines
741 B
C++
#include "CDllDesigner.h"
|
|
#include "DllLoader.h"
|
|
|
|
CDllDesigner::CDllDesigner()
|
|
{
|
|
m_pLibDesigner = new CDllLoaderM("lpdesigner", "Lib_Designer_Init", "Lib_Designer_Free", QStringList());
|
|
if (nullptr != m_pLibDesigner)
|
|
{
|
|
m_pDesigner = (IDetectorUI *)m_pLibDesigner->ModuleInit(nullptr);
|
|
if (m_pDesigner) {
|
|
|
|
}
|
|
else {
|
|
tpDebugOut("failed to get instance from tpCoreCtrl.dll");
|
|
}
|
|
}
|
|
}
|
|
|
|
CDllDesigner::~CDllDesigner()
|
|
{
|
|
|
|
}
|
|
|
|
bool CDllDesigner::Initialize(IDetectorEngine* lpDE)
|
|
{
|
|
if (!lpDE)
|
|
return false;
|
|
if (m_pDesigner)
|
|
{
|
|
m_pDesigner->Initialize(lpDE);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
IDetectorUI* CDllDesigner::GetDesignerInterface() const
|
|
{
|
|
return m_pDesigner;
|
|
}
|
|
|
|
void CDllDesigner::OnManualTrigger()
|
|
{
|
|
emit sgCloseWindow();
|
|
}
|
|
|