Start of marking of images for selection
This commit is contained in:
+23
@@ -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
|
||||
Reference in New Issue
Block a user