From 5c72463c029804c85479d2c4426397d932c88ee1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 20 Sep 2020 18:59:04 +0200 Subject: Add comments and trusted/remake colors to nyaa.si torrents --- include/Body.hpp | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) (limited to 'include') 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(*other.title_text); - else - title_text = nullptr; - if(other.description_text) - description_text = std::make_unique(*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 replies; std::string post_number; + sf::Color background_color; private: std::string title; std::string description; -- cgit v1.2.3