aboutsummaryrefslogtreecommitdiff
path: root/context.h
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-05-29 23:40:34 +0300
committerlink2xt <link2xt@testrun.org>2021-05-29 23:40:34 +0300
commit69ff191c83e5277cfe22d3735e9ac2f0256be3c5 (patch)
treea138c9a4b1914d9ef20e19d9f24401ee0179b984 /context.h
parent9c22c6d6a03f620f14f289b464354159b8a76f6b (diff)
downloadkdeltachat-69ff191c83e5277cfe22d3735e9ac2f0256be3c5.tar.gz
kdeltachat-69ff191c83e5277cfe22d3735e9ac2f0256be3c5.zip
Implement message drafts
Diffstat (limited to 'context.h')
-rw-r--r--context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/context.h b/context.h
index df3fbfb..2d31f71 100644
--- a/context.h
+++ b/context.h
@@ -39,6 +39,8 @@ public:
Q_INVOKABLE DcMessage *getMessage(uint32_t msgId);
Q_INVOKABLE DcContact *getContact(uint32_t contactId);
Q_INVOKABLE uint32_t sendTextMessage(uint32_t chatId, QString textToSend);
+ Q_INVOKABLE void setDraft(uint32_t chatId, DcMessage *message);
+ Q_INVOKABLE DcMessage *getDraft(uint32_t chatId);
QString getBlobdir();
Q_INVOKABLE bool setConfig(QString key, QString value);
Q_INVOKABLE QString getConfig(QString key);
@@ -46,6 +48,7 @@ public:
Q_INVOKABLE QString getMessageInfo(uint32_t msgId);
Q_INVOKABLE QString getMessageHtml(uint32_t msgId);
Q_INVOKABLE uint32_t decideOnContactRequest(uint32_t msgId, int decision);
+ Q_INVOKABLE DcMessage *newMessage(int viewtype);
private:
dc_context_t *m_context{nullptr};