31 lines
582 B
C++
31 lines
582 B
C++
#ifndef CANDATABASE_H
|
|
#define CANDATABASE_H
|
|
|
|
#include <QObject>
|
|
#include <QList>
|
|
#include "kvaDbLib.h"
|
|
#include "CANMessage.h"
|
|
#include "CANSignal.h"
|
|
|
|
class CCANDatabase : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CCANDatabase(QObject *parent = 0);
|
|
~CCANDatabase();
|
|
|
|
int Init(QString DatabaseFileName);
|
|
int LoadDatabaseFile(QString Filename);
|
|
int BuildMessageList(QList<CCANMessage*> *MsgListPtr);
|
|
|
|
private:
|
|
QString mDatabaseFileName;
|
|
KvaDbHnd mDatabaseDriverHandle;
|
|
bool mDatabaseFileLoaded;
|
|
signals:
|
|
|
|
public slots:
|
|
};
|
|
|
|
#endif // CANDATABASE_H
|