aboutsummaryrefslogtreecommitdiff
path: root/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp
index ea9c5c4..fbd4129 100644
--- a/context.cpp
+++ b/context.cpp
@@ -224,3 +224,10 @@ Context::newMessage(int viewtype)
dc_msg_t *message = dc_msg_new(m_context, viewtype);
return new DcMessage{message};
}
+
+void
+Context::importBackup(QString tarfile)
+{
+ QByteArray utf8Text = tarfile.toUtf8();
+ return dc_imex(m_context, DC_IMEX_IMPORT_BACKUP, utf8Text.constData(), NULL);
+}