aboutsummaryrefslogtreecommitdiff
path: root/include/Message.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-20 01:29:54 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-20 01:31:23 +0200
commit391f7fd6d832cb40f74fb37f9e0af7ff33db202f (patch)
tree1d3e2b54dfade403da579a23029ae98f1a5c8f5b /include/Message.hpp
parentc670ad2839d886107189a5a0d0854a02aa0ace53 (diff)
Add message board, in the middle of text selection
Diffstat (limited to 'include/Message.hpp')
-rw-r--r--include/Message.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/Message.hpp b/include/Message.hpp
new file mode 100644
index 0000000..c037eb3
--- /dev/null
+++ b/include/Message.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "MessagePart.hpp"
+#include "User.hpp"
+#include <string>
+#include <vector>
+
+namespace dchat
+{
+ class Message
+ {
+ public:
+ Message(User *user);
+ virtual ~Message();
+
+ void addText(const std::string &text);
+ std::vector<MessagePart*>& getParts();
+
+ const User *user;
+ private:
+ std::vector<MessagePart*> messageParts;
+ };
+}