aboutsummaryrefslogtreecommitdiff
path: root/message.cpp
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-05-29 23:40:34 +0300
committerlink2xt <link2xt@testrun.org>2021-05-29 23:40:34 +0300
commit69ff191c83e5277cfe22d3735e9ac2f0256be3c5 (patch)
treea138c9a4b1914d9ef20e19d9f24401ee0179b984 /message.cpp
parent9c22c6d6a03f620f14f289b464354159b8a76f6b (diff)
downloadkdeltachat-69ff191c83e5277cfe22d3735e9ac2f0256be3c5.tar.gz
kdeltachat-69ff191c83e5277cfe22d3735e9ac2f0256be3c5.zip
Implement message drafts
Diffstat (limited to 'message.cpp')
-rw-r--r--message.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/message.cpp b/message.cpp
index cf29dae..90723d9 100644
--- a/message.cpp
+++ b/message.cpp
@@ -46,6 +46,13 @@ DcMessage::getState()
return dc_msg_get_state(m_message);
}
+void
+DcMessage::setText(QString text)
+{
+ QByteArray utf8Text = text.toUtf8();
+ return dc_msg_set_text(m_message, utf8Text.constData());
+}
+
QString
DcMessage::getText()
{