Start of marking of images for selection

This commit is contained in:
2016-07-30 21:29:11 +02:00
parent 32e06a3e08
commit 3f226eb952
8 changed files with 135 additions and 6 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef DATABASE_H
#define DATABASE_H
#include <QObject>
#include <QSqlDatabase>
#include <QSqlQuery>
class Database : public QObject
{
Q_OBJECT
QSqlDatabase m_database;
QSqlQuery m_markQuery;
QSqlQuery m_unmarkQuery;
public:
explicit Database(QObject *parent = 0);
bool init();
bool mark(QString &filename);
bool unmark(QString &filename);
protected:
bool checkError();
};
#endif // DATABASE_H