Mercurial > minori
diff include/core/torrent.h @ 236:4d461ef7d424
HUGE UPDATE: convert build system to autotools
why? because cmake sucks :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 19 Jan 2024 00:24:02 -0500 |
parents | 39521c47c7a3 |
children | 862d0d8619f6 |
line wrap: on
line diff
--- a/include/core/torrent.h Tue Jan 16 15:22:29 2024 -0500 +++ b/include/core/torrent.h Fri Jan 19 00:24:02 2024 -0500 @@ -5,9 +5,10 @@ #include <QDateTime> /* this is really just a fancy struct... - - this will be moved into its own namespace if - it's deemed necessary */ + * + * this will be moved into its own namespace if + * it's deemed necessary +*/ class Torrent { public: std::string GetTitle() const { return _title; }; @@ -18,7 +19,7 @@ std::string GetResolution() const { return _resolution; }; int GetSeeders() const { return _seeders; }; int GetLeechers() const { return _leechers; }; - int GetDownloaders() const { return _downloaders; }; + int GetDownloads() const { return _downloads; }; std::string GetDescription() const { return _description; }; std::string GetFilename() const { return _filename; }; std::string GetLink() const { return _link; }; @@ -33,7 +34,7 @@ void SetResolution(const std::string& resolution) { _resolution = resolution; }; void SetSeeders(const int seeders) { _seeders = seeders; }; void SetLeechers(const int leechers) { _leechers = leechers; }; - void SetDownloaders(const int downloaders) { _downloaders = downloaders; }; + void SetDownloads(const int downloads) { _downloads = downloads; }; void SetDescription(const std::string& description) { _description = description; }; void SetFilename(const std::string& filename) { _filename = filename; }; void SetLink(const std::string& link) { _link = link; }; @@ -50,7 +51,7 @@ but std::string is more useful */ int _seeders = 0; int _leechers = 0; - int _downloaders = 0; + int _downloads = 0; std::string _description; std::string _filename; std::string _link;