20 lines
251 B
C
20 lines
251 B
C
|
|
#ifndef BACKEND_H
|
||
|
|
#define BACKEND_H
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
#include <QtSql>
|
||
|
|
|
||
|
|
class Backend : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit Backend(QObject *parent = nullptr);
|
||
|
|
void start();
|
||
|
|
|
||
|
|
private:
|
||
|
|
QSqlDatabase db;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // BACKEND_H
|