diff options
Diffstat (limited to 'message.cpp')
-rw-r--r-- | message.cpp | 7 |
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() { |