comparison DataController.hpp @ 2:2833b7f8884a

Sql backend is working. Need to get more speed on comparisson.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Tue, 21 Aug 2012 14:25:33 +0200
parents aae83c0a771d
children f489b0c9bf99
comparison
equal deleted inserted replaced
1:aae83c0a771d 2:2833b7f8884a
1 #ifndef DATACONTROLLER_HPP 1 #ifndef DATACONTROLLER_HPP
2 #define DATACONTROLLER_HPP 2 #define DATACONTROLLER_HPP
3 3
4 #include <QtCore/QObject> 4 #include <QtCore/QObject>
5 #include <QtCore/QDir>
5 6
6 #include "FileDBLink.hpp" 7 #include "FileDBLink.hpp"
7 8
8 class QMainWindow; 9 class QMainWindow;
9 class QTreeWidget; 10 class QTreeWidget;
17 Q_OBJECT 18 Q_OBJECT
18 19
19 public: 20 public:
20 DataController(); 21 DataController();
21 ~DataController(); 22 ~DataController();
23
24 void findFiles(const QDir& dir, FileDBLink& dblink);
25 static void findFiles(const QDir& dir, QStringList& list);
26 static QStringList findFiles(const QDir& dir);
27
28 void setDir(const QDir& dir);
22 29
23 public slots: 30 public slots:
24 //void cellClicked(int row, int column); 31 //void cellClicked(int row, int column);
25 void cellDoubleClicked(int row, int column); 32 void cellDoubleClicked(int row, int column);
26 bool toggleShowFullPath(); 33 bool toggleShowFullPath();
50 QAction* mtimeFilter; 57 QAction* mtimeFilter;
51 QAction* checksumFilter; 58 QAction* checksumFilter;
52 QSpinBox* editCutoffSpin; 59 QSpinBox* editCutoffSpin;
53 60
54 QTimer* populateDelay; 61 QTimer* populateDelay;
62
63 QDir dir;
55 }; 64 };
56 65
57 #endif //DATACONTROLLER_HPP 66 #endif //DATACONTROLLER_HPP