//
//
// EmuFront is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
+// it under the terms of the GNU General Public License version 2 as published by
+// the Free Software Foundation and appearing in the file gpl.txt included in the
+// packaging of this file.
//
// EmuFront is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
}
-int DbEmuFrontFileObject::countDataObjectRefs(int id) const
-{
- return 0; // TODO
- // return countRows("imagecontainer", "platformid", id);
-}
-
// WARNING: this will delete also all the databindings to selected platform
bool DbEmuFrontFileObject::deleteDataObjectFromModel(QModelIndex *index)
{
+ // TODO
return false;
//QSqlDatabase::database().transaction();
//QSqlTableModel *tmodel = dynamic_cast<QSqlTableModel*>(sqlTableModel);
model->setHeaderData(EmuFrontFileObject_FileUpdateTime, Qt::Horizontal, tr("File update time"));*/
return model;
}
+
+QString DbEmuFrontFileObject::getDeleteObjectSql() const
+{
+ return QString("DELETE FROM %1 WHERE id=:id").arg(tableName);
+}