Initial implementation of Setup model and view (new generation).
[emufront] / src / db / emufrontfileobjectmodel.h
index 36398ac..5b8aaad 100644 (file)
@@ -27,8 +27,10 @@ class EmuFrontFileObjectModel : public EmuFrontQueryModel
     Q_OBJECT
 public:
     EmuFrontFileObjectModel(QObject *parent = 0);
-    Qt::ItemFlags flags(const QModelIndex &index) const;
-    bool setData(const QModelIndex &index, const QVariant &value, int role);
+    virtual Qt::ItemFlags flags(const QModelIndex &index) const;
+    virtual bool setData(const QModelIndex &index, const QVariant &value, int role);
+    virtual bool insertRows(int row, int count, const QModelIndex &parent);
+    virtual bool removeRows(int row, int count, const QModelIndex &parent);
     enum {
         EmuFrontFileObject_Id,
         EmuFrontFileObject_Name,
@@ -41,9 +43,9 @@ public:
     };
 
 protected:
-    void refresh();
-    QString constructSelect(QString where = "") const;
-    bool setName(int id, const QString &name);
+    virtual void refresh();
+    virtual QString constructSelect(QString where = "") const;
+    virtual bool setName(int id, const QString &name);
 };
 
 #endif // EMUFRONTFILEOBJECTMODEL_H