aboutsummaryrefslogtreecommitdiff
path: root/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp
index ad5c2c9..1e44f7e 100644
--- a/context.cpp
+++ b/context.cpp
@@ -86,6 +86,16 @@ Context::getBlobdir()
}
QString
+Context::getConfig(QString key)
+{
+ QByteArray utf8Key = key.toUtf8();
+ char *value = dc_get_config(m_context, utf8Key.constData());
+ QString result{value};
+ dc_str_unref(value);
+ return result;
+}
+
+QString
Context::getMessageInfo(uint32_t msgId)
{
char *info = dc_get_msg_info(m_context, msgId);