comparison DataController.hpp @ 5:5e4985407feb

Add commandline tool updateDeDupe. Fix removal of removed files from DB.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Wed, 22 Aug 2012 00:41:15 +0200
parents f489b0c9bf99
children b5943e4bf676
comparison
equal deleted inserted replaced
4:f489b0c9bf99 5:5e4985407feb
10 class QTreeWidget; 10 class QTreeWidget;
11 class QTreeWidgetItem; 11 class QTreeWidgetItem;
12 class QAction; 12 class QAction;
13 class QSpinBox; 13 class QSpinBox;
14 class QTimer; 14 class QTimer;
15 class QPoint;
16 class QTreeWidgetItem;
17 class QMenu;
15 18
16 class DataController : QObject { 19 class DataController : QObject {
17 private: 20 private:
18 Q_OBJECT 21 Q_OBJECT
19 22
41 44
42 45
43 signals: 46 signals:
44 void populateProgress(int); 47 void populateProgress(int);
45 48
49 private slots:
50 void progressUpdate(int);
51 void deleteFile();
52 void itemDoubleClicked (QTreeWidgetItem * item, int column);
53 void contextMenuRequested(const QPoint&);
54
46 private: 55 private:
56 static void setShowFullPath(QTreeWidgetItem* item, bool showFullPath);
47 void setup(const QString& dbpath, const QString& searchPath, bool showGUI); 57 void setup(const QString& dbpath, const QString& searchPath, bool showGUI);
48 void populate(bool showNameDups, bool showSizeDups, 58 void populate(bool showNameDups, bool showSizeDups,
49 bool showMTimeDups, bool showCheckSumDups, 59 bool showMTimeDups, bool showCheckSumDups,
50 float editDistanceCutoff); 60 float editDistanceCutoff);
51 61
65 QAction* checksumFilter; 75 QAction* checksumFilter;
66 QSpinBox* editCutoffSpin; 76 QSpinBox* editCutoffSpin;
67 77
68 QTimer* populateDelay; 78 QTimer* populateDelay;
69 79
80 QMenu* contextMenu;
81 QTreeWidgetItem* contextMenuItem;
82
70 QDir dir; 83 QDir dir;
84
85 bool showGUI;
86
87 int progressMax;
71 }; 88 };
72 89
73 #endif //DATACONTROLLER_HPP 90 #endif //DATACONTROLLER_HPP