From 78d26758184cd23b0ea27ab714a9e1d1c3aeba9b Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 31 Oct 2010 13:41:52 +0100 Subject: 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. --- shemov.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shemov.h') diff --git a/shemov.h b/shemov.h index 547fbd2..7504cfe 100644 --- a/shemov.h +++ b/shemov.h @@ -10,6 +10,7 @@ #include #include +#include class QTabWidget; class FilesystemWidget; @@ -43,6 +44,7 @@ class SheMov : public QMainWindow { void newMovieWizard(); void newMovieWizardWithFiles(); void setSize(qint64 size); + void checkConsistency(); signals: void configChanged(); @@ -87,6 +89,7 @@ class SheMov : public QMainWindow { QAction *mOpenWithMenuAVA; QAction *mRenameMenuA; QAction *mArchiveSelectedA; + QAction *mConsistencyA; //TreeView Actions //Series Actions @@ -137,6 +140,4 @@ class SheMov : public QMainWindow { ArchiveTreeView *mATree; NewMovieWizard *mNewMovieWizard; }; - #endif - -- cgit v1.2.3-70-g09d2