feat: added add and delete featuries
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
// Qt
|
||||
#include <QAbstractItemModel>
|
||||
#include <QFutureWatcher>
|
||||
#include <QtSql/QSqlDatabase>
|
||||
|
||||
class LicenseModel : public QAbstractItemModel
|
||||
@@ -16,6 +17,7 @@ public:
|
||||
Ok,
|
||||
DbStructError,
|
||||
DbExistError,
|
||||
Working,
|
||||
};
|
||||
|
||||
struct LicenseItem
|
||||
@@ -46,10 +48,13 @@ public:
|
||||
QString getStatusText();
|
||||
bool prepareDatabase();
|
||||
void addClient(const LicenseItem &item);
|
||||
void deleteClient(int index);
|
||||
void deleteClient(const QList<int> &rows);
|
||||
void editClient(const LicenseItem &item, int index);
|
||||
|
||||
void updateModel();
|
||||
LicenseItem getItem(int index) const;
|
||||
signals:
|
||||
void statusChanged();
|
||||
private:
|
||||
bool checkTables();
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user