diff options
author | Arno <arno@disconnect.de> | 2016-08-20 08:31:29 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-08-20 08:31:29 +0200 |
commit | d47427a2d51fcc7f8e1f8926a706e04ff01603ed (patch) | |
tree | 22002ee669fbce025aad1782f75733843e3581be /torrentparser.h | |
parent | 8ab990b7c6fb5348b09f451878a80e2c70695876 (diff) | |
download | ShemovCleaner-d47427a2d51fcc7f8e1f8926a706e04ff01603ed.tar.gz ShemovCleaner-d47427a2d51fcc7f8e1f8926a706e04ff01603ed.tar.bz2 ShemovCleaner-d47427a2d51fcc7f8e1f8926a706e04ff01603ed.zip |
Present torrent files as a tree
A torrent info dictionary has two modes: single and multi files. When in
multi-mode, the name-entry is the directory containing the files.
Represent it as a tree.
During testing I discovered a fatal bug in the torrent parser: If we
encounter an invalid string, we have to move mPos forward, else we will
loop indefinitely until we're OOM.
I also added some icons for folders, files and trackers.
Diffstat (limited to 'torrentparser.h')
-rw-r--r-- | torrentparser.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/torrentparser.h b/torrentparser.h index 02129fb..e1f8ef7 100644 --- a/torrentparser.h +++ b/torrentparser.h @@ -13,7 +13,6 @@ class TorrentParser : public QObject { public: TorrentParser(const QString file, QObject *parent = 0); const QList<QVariant> parse(); - const QString lastError() const { return mLastError; } private: const QVariant parseObject(); @@ -25,7 +24,6 @@ class TorrentParser : public QObject { QString mLastError; QByteArray mData; int mPos; - bool mOk; }; #endif // TORRENTPARSER_H |