summaryrefslogtreecommitdiffstats
path: root/shemovcleaner.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-08-19 17:51:10 +0200
committerArno <arno@disconnect.de>2016-08-19 17:51:10 +0200
commit8ab990b7c6fb5348b09f451878a80e2c70695876 (patch)
tree8a90c848308c09e729d9256a6af921abfeb786b3 /shemovcleaner.h
parentcead61f9598302a83fa72e99f82f7bfa2c0b19cb (diff)
downloadShemovCleaner-8ab990b7c6fb5348b09f451878a80e2c70695876.tar.gz
ShemovCleaner-8ab990b7c6fb5348b09f451878a80e2c70695876.tar.bz2
ShemovCleaner-8ab990b7c6fb5348b09f451878a80e2c70695876.zip
Added torrent support
The BEncode parser is loosely based on this: https://github.com/jif/Bencode/blob/master/bencode.cpp Not perfect, but enough to display all the essential data in the shiny new TorrentDisplay dialog.
Diffstat (limited to 'shemovcleaner.h')
-rw-r--r--shemovcleaner.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shemovcleaner.h b/shemovcleaner.h
index c2e0f32..fe02fc6 100644
--- a/shemovcleaner.h
+++ b/shemovcleaner.h
@@ -10,6 +10,7 @@ class QTreeView;
class QStandardItemModel;
class QLabel;
class FileSorter;
+class TorrentDisplay;
class ShemovCleaner : public QMainWindow {
Q_OBJECT
@@ -23,6 +24,7 @@ class ShemovCleaner : public QMainWindow {
void gatherData();
void deleteFiles();
void moveFiles();
+ void torrentInfo();
private:
void setupGui();
@@ -37,10 +39,12 @@ class ShemovCleaner : public QMainWindow {
QPushButton *mSelExt;
QPushButton *mMove;
QPushButton *mDelete;
+ QPushButton *mInfo;
QLabel *mSelected;
QStandardItemModel *mModel;
FileSorter *mProxy;
QTreeView *mFileView;
+ TorrentDisplay *mTorrentDisplay;
};
#endif // SHEMOVCLEANER_H