YULTek/Otarcik_CAN/Sources/OtarcikCan.cpp
2023-01-15 12:38:14 -05:00

49 lines
1.5 KiB
C++

/*******************************************************************************
* *
* Gros Gin électronique *
* 2023 *
* *
* Project: Otarcik CAN *
* *
* *
* *
*******************************************************************************/
/*
Description:
This is our main program
*/
#include "OtarcikCan.h"
COtarcikCan::COtarcikCan(QObject *parent) : QObject(parent)
{
mPCANInterface = new CPCANInterface;
mCANDatabase = new CCANDatabase;
mCANAnalyzer = new CCANAnalyzer(mPCANInterface);
}
COtarcikCan::~COtarcikCan()
{
delete mCANAnalyzer;
delete mPCANInterface;
delete mCANDatabase;
}
int COtarcikCan::Start()
{
w.show();
CGeneralMessagesLogDispatcher::instance()->BindGuiPageHandle(w.mGeneralStatusPage);
CGeneralMessagesLogDispatcher::instance()->Init();
mCANAnalyzer->Init(mPCANInterface,mCANDatabase);
mCANDatabase->Init();
mCANDatabase->LoadDatabaseFile("");
return 0;
}