diff options
Diffstat (limited to 'include/Message.hpp')
-rw-r--r-- | include/Message.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/Message.hpp b/include/Message.hpp index efc1f4c..7cd7fdf 100644 --- a/include/Message.hpp +++ b/include/Message.hpp @@ -13,10 +13,12 @@ namespace dchat Message(User *user); virtual ~Message(); - void addText(const std::string &text); - void addImage(const std::string &url); + void addText(const std::string &text, bool newLine = true); + void addEmoji(const std::string &url, bool newLine = true); std::vector<MessagePart*>& getParts(); + static Message* buildFromString(User *user, const std::string &str); + const User *user; private: std::vector<MessagePart*> messageParts; |