X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fdb%2Femufrontfileobjectmodel.h;h=5b8aaad7a23c543718bd293ef64e31b16900591c;hb=a35b1dfd221b686ab7dab81c0bb1467e47f632d2;hp=36398ac3ff2f9dc105734af1c00b1589ae41a802;hpb=fc4f578420b02ccb6532815ce651d37186cf2710;p=emufront diff --git a/src/db/emufrontfileobjectmodel.h b/src/db/emufrontfileobjectmodel.h index 36398ac..5b8aaad 100644 --- a/src/db/emufrontfileobjectmodel.h +++ b/src/db/emufrontfileobjectmodel.h @@ -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