You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
418 B
C++

#ifndef CDATABASE_H
#define CDATABASE_H
#include <QObject>
#include <QtSql>
#include <QSqlDatabase>
#include <QTableView>
#include <QSqlError>
class cDatabase : public QObject
{
Q_OBJECT
public:
explicit cDatabase(QObject *parent = 0);
~cDatabase();
QSqlDatabase getDB();
signals:
public slots:
protected:
QSqlDatabase m_DB;
qint16 m_iVersion;
void init();
int initDB();
};
#endif // CDATABASE_H