diff options
author | link2xt <link2xt@testrun.org> | 2021-05-22 15:23:11 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-05-22 15:23:11 +0300 |
commit | 166d17e61da080ee7b83317b1a97ec2046960706 (patch) | |
tree | e97b48d2f604927116f8490a991efc972c08a41e /message.h | |
parent | ace0d420686be26ea88cca64406a7b6cf5e10260 (diff) | |
download | kdeltachat-166d17e61da080ee7b83317b1a97ec2046960706.tar.gz kdeltachat-166d17e61da080ee7b83317b1a97ec2046960706.zip |
Implement libdeltachat API for HTML view
HTML API:
- Context::getMessageHtml()
- DcMessage::getSubject()
- DcMessage::hasHtml()
Also implemented:
- DcMessage::getFilemime()
- DcMessage::getShowPadlock()
- DcMessage::getError()
Diffstat (limited to 'message.h')
-rw-r--r-- | message.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -12,6 +12,7 @@ class DcMessage : public QObject { Q_PROPERTY(int viewtype READ getViewtype CONSTANT) Q_PROPERTY(int state READ getState CONSTANT) Q_PROPERTY(QString text READ getText CONSTANT) + Q_PROPERTY(QString subject READ getSubject CONSTANT) Q_PROPERTY(QString file READ getFile CONSTANT) Q_PROPERTY(QString filename READ getFilename CONSTANT) Q_PROPERTY(int width READ getWidth CONSTANT) @@ -19,6 +20,7 @@ class DcMessage : public QObject { Q_PROPERTY(bool isInfo READ isInfo CONSTANT) Q_PROPERTY(QString quotedText READ getQuotedText CONSTANT) Q_PROPERTY(DcMessage *quotedMessage READ getQuotedMessage CONSTANT) + Q_PROPERTY(bool hasHtml READ hasHtml CONSTANT) dc_msg_t *m_message{nullptr}; public: @@ -35,14 +37,15 @@ public: //Q_INVOKABLE int64_t getReceivedTimestamp(); //Q_INVOKABLE int64_t getSortTimestamp(); Q_INVOKABLE QString getText(); + Q_INVOKABLE QString getSubject(); QString getFile(); QString getFilename(); - //QString getFilemime(); + QString getFilemime(); //uint64_t getFilebytes(); int getWidth(); int getHeight(); //int getDuration(); - //bool showPadlock(); + bool getShowPadlock(); //uint32_t getEphemeralTimer(); //int64_t getEphemeralTimestamp(); //... getsummary ... @@ -53,6 +56,8 @@ public: //isStarred //isForwarded bool isInfo(); + Q_INVOKABLE QString getError(); + bool hasHtml(); //isIncreation //isSetupmessage Q_INVOKABLE QString getQuotedText(); |