aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp27
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;