Début de la ré-architecture
This commit is contained in:
@@ -18,18 +18,18 @@
|
||||
|
||||
COtarcikCan::COtarcikCan(QObject *parent) : QObject(parent)
|
||||
{
|
||||
mPCANInterface = new CPCANInterface;
|
||||
mCANDatabase = new CCANDatabase;
|
||||
mCANAnalyzer = new CCANAnalyzer(mPCANInterface);
|
||||
// mPCANInterface = new CPCANInterface;
|
||||
// mCANDatabase = new CCANDatabase;
|
||||
// mCANAnalyzer = new CCANAnalyzer(mPCANInterface);
|
||||
|
||||
mCANAnalyzer->mProgramPtr = this;
|
||||
//mCANAnalyzer->mProgramPtr = this;
|
||||
}
|
||||
|
||||
COtarcikCan::~COtarcikCan()
|
||||
{
|
||||
delete mCANAnalyzer;
|
||||
delete mPCANInterface;
|
||||
delete mCANDatabase;
|
||||
// delete mCANAnalyzer;
|
||||
// delete mPCANInterface;
|
||||
// delete mCANDatabase;
|
||||
|
||||
}
|
||||
|
||||
@@ -40,10 +40,10 @@ int COtarcikCan::Start()
|
||||
CGeneralMessagesLogDispatcher::instance()->BindGuiPageHandle(mMainWindow.mGeneralStatusPage);
|
||||
CGeneralMessagesLogDispatcher::instance()->Init();
|
||||
|
||||
mCANAnalyzer->Init(mPCANInterface,mCANDatabase);
|
||||
// mCANAnalyzer->Init(mPCANInterface,mCANDatabase);
|
||||
|
||||
mCANDatabase->Init();
|
||||
mCANDatabase->LoadDatabaseFile("");
|
||||
// mCANDatabase->Init();
|
||||
// mCANDatabase->LoadDatabaseFile("");
|
||||
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user