47 lines
1.5 KiB
C++
47 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;
|
|
}
|
|
|
|
COtarcikCan::~COtarcikCan()
|
|
{
|
|
delete mPCANInterface;
|
|
}
|
|
|
|
int COtarcikCan::Start()
|
|
{
|
|
w.show();
|
|
|
|
CGeneralMessagesLogDispatcher::instance()->BindGuiPageHandle(w.mGeneralStatusPage);
|
|
CGeneralMessagesLogDispatcher::instance()->Init();
|
|
|
|
CGeneralMessagesLogDispatcher::instance()->AddLogMessage("OtarcikCan modules starting...");
|
|
|
|
mPCANInterface->Init();
|
|
|
|
mCANDatabase->Init();
|
|
mCANDatabase->LoadDatabaseFile("");
|
|
|
|
|
|
return 0;
|
|
}
|