comparison include/core/torrent.h @ 369:47c9f8502269

*: clang-format all the things I've edited the formatting a bit. Now pointer asterisks (and reference ampersands) are on the variable instead of the type, as well as having newlines for function braces (but nothing else)
author Paper <paper@tflc.us>
date Fri, 25 Jul 2025 10:16:02 -0400
parents b1f625b0227c
children
comparison
equal deleted inserted replaced
368:6d37a998cf91 369:47c9f8502269
24 std::string GetFilename() const { return _filename; }; 24 std::string GetFilename() const { return _filename; };
25 std::string GetLink() const { return _link; }; 25 std::string GetLink() const { return _link; };
26 std::string GetGuid() const { return _guid; }; 26 std::string GetGuid() const { return _guid; };
27 QDateTime GetDate() const { return _date; }; 27 QDateTime GetDate() const { return _date; };
28 28
29 void SetTitle(const std::string& title) { _title = title; }; 29 void SetTitle(const std::string &title) { _title = title; };
30 void SetCategory(const std::string& category) { _category = category; }; 30 void SetCategory(const std::string &category) { _category = category; };
31 void SetEpisode(const std::string& episode) { _episode = episode; }; 31 void SetEpisode(const std::string &episode) { _episode = episode; };
32 void SetGroup(const std::string& group) { _group = group; }; 32 void SetGroup(const std::string &group) { _group = group; };
33 void SetSize(const size_t size) { _size = size; }; 33 void SetSize(const size_t size) { _size = size; };
34 void SetResolution(const std::string& resolution) { _resolution = resolution; }; 34 void SetResolution(const std::string &resolution) { _resolution = resolution; };
35 void SetSeeders(const int seeders) { _seeders = seeders; }; 35 void SetSeeders(const int seeders) { _seeders = seeders; };
36 void SetLeechers(const int leechers) { _leechers = leechers; }; 36 void SetLeechers(const int leechers) { _leechers = leechers; };
37 void SetDownloads(const int downloads) { _downloads = downloads; }; 37 void SetDownloads(const int downloads) { _downloads = downloads; };
38 void SetDescription(const std::string& description) { _description = description; }; 38 void SetDescription(const std::string &description) { _description = description; };
39 void SetFilename(const std::string& filename) { _filename = filename; }; 39 void SetFilename(const std::string &filename) { _filename = filename; };
40 void SetLink(const std::string& link) { _link = link; }; 40 void SetLink(const std::string &link) { _link = link; };
41 void SetGuid(const std::string& guid) { _guid = guid; }; 41 void SetGuid(const std::string &guid) { _guid = guid; };
42 void SetDate(const QDateTime& date) { _date = date; }; 42 void SetDate(const QDateTime &date) { _date = date; };
43 43
44 private: 44 private:
45 std::string _title; 45 std::string _title;
46 std::string _category; 46 std::string _category;
47 std::string _episode; 47 std::string _episode;