Mercurial > dedupe
diff DataController.hpp @ 4:f489b0c9bf99
Refactored to allow commandline tools to use DataController.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Tue, 21 Aug 2012 15:27:29 +0200 |
| parents | 2833b7f8884a |
| children | 5e4985407feb |
line wrap: on
line diff
--- a/DataController.hpp Tue Aug 21 15:09:22 2012 +0200 +++ b/DataController.hpp Tue Aug 21 15:27:29 2012 +0200 @@ -18,7 +18,8 @@ Q_OBJECT public: - DataController(); + DataController(const QString& path, bool showGUI); + DataController(bool showGUI); ~DataController(); void findFiles(const QDir& dir, FileDBLink& dblink); @@ -27,6 +28,9 @@ void setDir(const QDir& dir); +public: + void buildDB(const QDir& dir); + public slots: //void cellClicked(int row, int column); void cellDoubleClicked(int row, int column); @@ -40,10 +44,13 @@ void populateProgress(int); private: + void setup(const QString& dbpath, const QString& searchPath, bool showGUI); void populate(bool showNameDups, bool showSizeDups, bool showMTimeDups, bool showCheckSumDups, float editDistanceCutoff); + void setupGUI(); + QTreeWidgetItem* createItem(const FileDBLink::DBInfo& info); bool showFullPath;
