diff options
author | link2xt <link2xt@testrun.org> | 2021-07-04 22:31:32 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-07-04 22:31:32 +0300 |
commit | 92de31840ed3ec7cc8ec90fe58b1955278a8acff (patch) | |
tree | 2f3ce4a997d93772cf2180afbb2a1fd8a71110fd /context.cpp | |
parent | 76b844bd6461d90f91a42fc02002accb694ec56d (diff) | |
download | kdeltachat-92de31840ed3ec7cc8ec90fe58b1955278a8acff.tar.gz kdeltachat-92de31840ed3ec7cc8ec90fe58b1955278a8acff.zip |
Replace Accounts.importAccount() with Context.importBackup()
dc_accounts_import_account() is going to be removed from the core.
Diffstat (limited to 'context.cpp')
-rw-r--r-- | context.cpp | 7 |
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); +} |