diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-20 18:59:04 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-20 18:59:04 +0200 |
commit | 5c72463c029804c85479d2c4426397d932c88ee1 (patch) | |
tree | 17d40e579cdc68d07e51233033cfa9db9b534c1d /include | |
parent | f41a28fe3ec5042849583081ca0e1aa6c38a7187 (diff) |
Add comments and trusted/remake colors to nyaa.si torrents
Diffstat (limited to 'include')
-rw-r--r-- | include/Body.hpp | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/include/Body.hpp b/include/Body.hpp index 81e3a69..3dfbeaa 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -13,30 +13,8 @@ namespace QuickMedia { class BodyItem { public: - BodyItem(std::string _title): visible(true), dirty(true) { - set_title(std::move(_title)); - } - - BodyItem(const BodyItem &other) { - title = other.title; - description = other.description; - url = other.url; - thumbnail_url = other.thumbnail_url; - attached_content_url = other.attached_content_url; - author = other.author; - visible = other.visible; - dirty = other.dirty; - if(other.title_text) - title_text = std::make_unique<Text>(*other.title_text); - else - title_text = nullptr; - if(other.description_text) - description_text = std::make_unique<Text>(*other.description_text); - else - description_text = nullptr; - replies = other.replies; - post_number = other.post_number; - } + BodyItem(std::string _title); + BodyItem(const BodyItem &other); void set_title(std::string new_title) { title = std::move(new_title); @@ -62,6 +40,7 @@ namespace QuickMedia { // Used by image boards for example. The elements are indices to other body items std::vector<size_t> replies; std::string post_number; + sf::Color background_color; private: std::string title; std::string description; |