From 8ab990b7c6fb5348b09f451878a80e2c70695876 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 19 Aug 2016 17:51:10 +0200 Subject: 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. --- shemovcleaner.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shemovcleaner.h') 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 -- cgit v1.2.3-70-g09d2