X-Git-Url: http://git.maemo.org/git/?p=emufront;a=blobdiff_plain;f=src%2Fmodels%2Ffilepathmodel.h;fp=src%2Fmodels%2Ffilepathmodel.h;h=712ba351028789bd0ef4c3ac02456c5ff618c4dd;hp=a6691e3fb3015636df9210edc7babca2451b124c;hb=6bd5521ba6eedac17d194df82eda4e36de2ccb20;hpb=e19eaf49bd199c59cfd9d9d5ad2c12f6ebd4addd diff --git a/src/models/filepathmodel.h b/src/models/filepathmodel.h index a6691e3..712ba35 100644 --- a/src/models/filepathmodel.h +++ b/src/models/filepathmodel.h @@ -23,6 +23,7 @@ #define FILEPATHMODEL_H #include "emufrontquerymodel.h" +class FilePathObject; class FilePathModel : public EmuFrontQueryModel { @@ -40,12 +41,18 @@ public: FilePath_SetupName, FilePath_FileTypeId }; + FilePathObject* getFilePathObject(const QModelIndex &index); + virtual bool setScanned(int id); protected: virtual void refresh(); virtual QString constructSelect(QString where = "") const; virtual bool setFilePath(int id, QString filePath); virtual bool setSetup(int isd, int setupId); + + // Implemented for EmuFrontQueryModel: + virtual EmuFrontObject* recordToDataObject(const QSqlRecord* ); + virtual QString constructFilterById(int id) const; }; #endif // FILEPATHMODEL_H