blob: 80ccddb155d2dc23d0c58d9cf62810936af8d258 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#ifndef SHEMOVCLEANER_H
#define SHEMOVCLEANER_H
#include <QMainWindow>
#include <QItemSelection>
#include <QString>
class QPushButton;
class QLineEdit;
class QTreeView;
class QStandardItemModel;
class QLabel;
class FileSorter;
class TorrentDisplay;
class ShemovCleaner : public QMainWindow {
Q_OBJECT
public:
ShemovCleaner(QWidget *parent = 0);
~ShemovCleaner();
private slots:
void selectDir();
void fileSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void gatherData();
void deleteFiles();
void moveFiles();
void torrentInfo();
void searchFile();
private:
void setupGui();
void createStatusbar();
void readHeaderData();
void writeHeaderData();
void readSettings();
void writeSettings();
QLineEdit *mDir;
QPushButton *mSelDir;
QLineEdit *mSearchTorrents;
QPushButton *mDoSearchTorrents;
QPushButton *mMove;
QPushButton *mDelete;
QPushButton *mInfo;
QString mExt;
QLabel *mSelected;
QStandardItemModel *mModel;
FileSorter *mProxy;
QTreeView *mFileView;
TorrentDisplay *mTorrentDisplay;
};
#endif // SHEMOVCLEANER_H
|