summaryrefslogtreecommitdiffstats
path: root/seriestreemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-10-31 13:41:52 +0100
committerArno <am@disconnect.de>2010-10-31 13:41:52 +0100
commit78d26758184cd23b0ea27ab714a9e1d1c3aeba9b (patch)
tree0dd48b7e5038ca8ede582dab2a2e2dd131127d78 /seriestreemodel.h
parent31bc791cb48e110db8f7b994931c1879974168a1 (diff)
downloadSheMov-78d26758184cd23b0ea27ab714a9e1d1c3aeba9b.tar.gz
SheMov-78d26758184cd23b0ea27ab714a9e1d1c3aeba9b.tar.bz2
SheMov-78d26758184cd23b0ea27ab714a9e1d1c3aeba9b.zip
First try on ConsistencyChecker
Well, it works, so let's shit it :) Unfortunately the database is inconsistent, so add a checker for that. Still needs some work, though. Eg. display errors seperately and make it possible to delete stray files. Also the Filesystem check must be implemented.
Diffstat (limited to 'seriestreemodel.h')
-rw-r--r--seriestreemodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/seriestreemodel.h b/seriestreemodel.h
index d7e7a12..63820ec 100644
--- a/seriestreemodel.h
+++ b/seriestreemodel.h
@@ -54,12 +54,14 @@ class SeriesTreeModel : public SmTreeModel {
signals:
void needResort();
+ void consistencyMsg(const QString &msg);
private:
void populate();
bool mergeSeries(const QModelIndex &from, const QModelIndex &to);
bool renameSeries(const QModelIndex &source, const QVariant &value);
bool setNewSeries(const QModelIndex &source, const QVariant &value);
+ QString archivePath(const QString &fileName, const QString &md5sum) const;
QSqlDatabase mDb;
QSqlQuery *mSeriesPartsQuery;
QSqlQuery *mUpdateSeriesIdQuery;