aboutsummaryrefslogtreecommitdiff
path: root/context.cpp
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-02-19 04:30:03 +0300
committerlink2xt <link2xt@testrun.org>2021-02-19 04:30:03 +0300
commit73ebfd5e795743650f2b1fe32734ad2f36d6a6df (patch)
tree1e194f01f8f32b76d86e6dcc57bd1012d22660cf /context.cpp
parent7bbdbbe7fbc95573876657bd483a729ae04a2717 (diff)
downloadkdeltachat-73ebfd5e795743650f2b1fe32734ad2f36d6a6df.tar.gz
kdeltachat-73ebfd5e795743650f2b1fe32734ad2f36d6a6df.zip
Implement Context::setConfig()
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp
index cc415f0..0951241 100644
--- a/context.cpp
+++ b/context.cpp
@@ -103,6 +103,14 @@ Context::getBlobdir()
return result;
}
+bool
+Context::setConfig(QString key, QString value)
+{
+ QByteArray utf8Key = key.toUtf8();
+ QByteArray utf8Value = value.toUtf8();
+ return dc_set_config(m_context, utf8Key.constData(), utf8Value.constData());
+}
+
QString
Context::getConfig(QString key)
{