aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-01-24 23:13:20 +0100
committerdec05eba <dec05eba@protonmail.com>2020-08-19 00:14:44 +0200
commitf58f8a9fc33516d327620fe0059b8b855a246d30 (patch)
tree5d0085ce2c4e10fe2505dbc4f0d9f57cbd09edbc /include
parentd525a7ac28dd6403e46e8df6fa15b723b8c09503 (diff)
Move message composer to dchat core
Diffstat (limited to 'include')
-rw-r--r--include/MessageComposer.hpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/include/MessageComposer.hpp b/include/MessageComposer.hpp
deleted file mode 100644
index 5af065d..0000000
--- a/include/MessageComposer.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#pragma once
-
-#include <glibmm/ustring.h>
-#include <functional>
-
-namespace dchat
-{
- struct Range
- {
- int start;
- int end;
-
- int length() const
- {
- return end - start;
- }
- };
-
- struct MessagePart
- {
- enum class Type
- {
- TEXT,
- EMOJI
- };
-
- Type type;
- Range textRange;
- };
-
- void compose(const Glib::ustring &text, std::function<void(MessagePart)> callbackFunc);
-} \ No newline at end of file