-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcandatabank.h
38 lines (33 loc) · 863 Bytes
/
candatabank.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef CANDATABANK_H
#define CANDATABANK_H
#include <QWidget>
#include <QFileDialog>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QMessageBox>
#include <QVector>
#include "candatabank.h"
namespace Ui {
class CANdatabank;
}
class CANdatabank : public QWidget
{
Q_OBJECT
public:
explicit CANdatabank(QWidget *parent = 0);
~CANdatabank();
private slots:
void DBC_browsefile();
quint16 BitsToUINT16(quint8 bitstart, quint8 bitend, quint64 data);
private:
QString fileName;
Ui::CANdatabank *ui;
QSqlDatabase mydb = QSqlDatabase::addDatabase("QSQLITE");
int OKdataBankFlag;
public slots:
QString CANFrameName(quint32 CANid);
QVector<QStringList> CANSignalList(quint32 CANid, quint64 data, quint8 dlc);
int returnOKdataBankFlag();
quint32 returnCANIdfromName(QString name);
};
#endif // CANDATABANK_H