first commit
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
#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 createDB();
|
||||
};
|
||||
|
||||
#endif // CDATABASE_H
|
||||
Reference in New Issue
Block a user