/******************************************************************************* * * * 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; }