aboutsummaryrefslogtreecommitdiff
path: root/message.cpp
diff options
context:
space:
mode:
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 fdaae93..4da0fd1 100644
--- a/message.cpp
+++ b/message.cpp
@@ -68,6 +68,13 @@ DcMessage::getText()
return result;
}
+void
+DcMessage::setFile(QString file)
+{
+ QByteArray utf8File = file.toUtf8();
+ return dc_msg_set_file(m_message, utf8File.constData(), NULL);
+}
+
QString
DcMessage::getSubject()
{