summaryrefslogtreecommitdiffstats
path: root/filewidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-01-04 06:40:38 +0100
committerArno <arno@disconnect.de>2018-01-04 06:40:38 +0100
commit65cb7d95cd2b8e5d24f686fd22be7325e5a9d039 (patch)
tree3fd2222f686ed35a14830059cf8e13a7184ebe13 /filewidget.h
parentb416e9dcbb41422e0ba964b05e65f4b549b7680b (diff)
downloadShemovCleaner-65cb7d95cd2b8e5d24f686fd22be7325e5a9d039.tar.gz
ShemovCleaner-65cb7d95cd2b8e5d24f686fd22be7325e5a9d039.tar.bz2
ShemovCleaner-65cb7d95cd2b8e5d24f686fd22be7325e5a9d039.zip
Add cache operations
Implement functions to remove files from cached data, or clear it completely. This may be necessary if something happened without us knowing, e.g. a file was copied by another program.
Diffstat (limited to 'filewidget.h')
-rw-r--r--filewidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/filewidget.h b/filewidget.h
index c9e40d4..5e2b910 100644
--- a/filewidget.h
+++ b/filewidget.h
@@ -73,6 +73,8 @@ class FileWidget : public QWidget {
void copyFiles(QString destDir);
void hideCopyProgress();
void copySuccess(bool success, QString source);
+ void removeFromCache();
+ void clearCache();
protected:
virtual void keyPressEvent(QKeyEvent *e);
@@ -116,6 +118,8 @@ class FileWidget : public QWidget {
QAction *mPasteA;
QAction *mDeleteA;
QAction *mAddAsOriginA;
+ QAction *mRemoveFromCacheA;
+ QAction *mClearCacheA;
ProgressDialog *mCopyProgress;
FileDisplay *mFileDisplay;
VideoSorter *mProxy;