diff options
author | link2xt <link2xt@testrun.org> | 2021-05-29 23:40:34 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-05-29 23:40:34 +0300 |
commit | 69ff191c83e5277cfe22d3735e9ac2f0256be3c5 (patch) | |
tree | a138c9a4b1914d9ef20e19d9f24401ee0179b984 /context.h | |
parent | 9c22c6d6a03f620f14f289b464354159b8a76f6b (diff) | |
download | kdeltachat-69ff191c83e5277cfe22d3735e9ac2f0256be3c5.tar.gz kdeltachat-69ff191c83e5277cfe22d3735e9ac2f0256be3c5.zip |
Implement message drafts
Diffstat (limited to 'context.h')
-rw-r--r-- | context.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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}; |