Commit 30fc5e05 authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Make Akonadi::MessageStatus a QGadget



This makes it easier to interact from QML

Signed-off-by: Carl Schwan's avatarCarl Schwan <carl@carlschwan.eu>
parent b105beec
Pipeline #189252 passed with stage
in 1 minute and 47 seconds
......@@ -36,6 +36,26 @@ namespace Akonadi
*/
class AKONADI_MIME_EXPORT MessageStatus
{
Q_GADGET
Q_PROPERTY(bool isOfUnknownStatus READ isOfUnknownStatus CONSTANT)
Q_PROPERTY(bool isRead READ isRead WRITE setRead CONSTANT)
Q_PROPERTY(bool isDeleted READ isDeleted WRITE setDeleted CONSTANT)
Q_PROPERTY(bool isReplied READ isReplied WRITE setReplied CONSTANT)
Q_PROPERTY(bool isForwarded READ isForwarded WRITE setForwarded CONSTANT)
Q_PROPERTY(bool isQueued READ isQueued WRITE setQueued CONSTANT)
Q_PROPERTY(bool isSent READ isSent WRITE setSent CONSTANT)
Q_PROPERTY(bool isImportant READ isImportant WRITE setImportant CONSTANT)
Q_PROPERTY(bool isWatched READ isWatched WRITE setWatched CONSTANT)
Q_PROPERTY(bool isIgnored READ isIgnored WRITE setIgnored CONSTANT)
Q_PROPERTY(bool isSpam READ isSpam WRITE setSpam CONSTANT)
Q_PROPERTY(bool isHam READ isHam WRITE setHam CONSTANT)
Q_PROPERTY(bool isToAct READ isToAct WRITE setToAct CONSTANT)
Q_PROPERTY(bool hasAttachment READ hasAttachment WRITE setHasAttachment CONSTANT)
Q_PROPERTY(bool hasInvitation READ hasInvitation WRITE setHasInvitation CONSTANT)
Q_PROPERTY(bool isEncrypted READ isEncrypted WRITE setEncrypted CONSTANT)
Q_PROPERTY(bool isSigned READ isSigned WRITE setSigned CONSTANT)
Q_PROPERTY(bool hasError READ hasError WRITE setHasError CONSTANT)
public:
/** Constructor - sets status initially to unknown. */
MessageStatus();
......
  • AutoMoc: /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:41: Warning: Property declaration isRead is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:42: Warning: Property declaration isDeleted is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:43: Warning: Property declaration isReplied is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:44: Warning: Property declaration isForwarded is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:45: Warning: Property declaration isQueued is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:46: Warning: Property declaration isSent is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:47: Warning: Property declaration isImportant is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:48: Warning: Property declaration isWatched is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:49: Warning: Property declaration isIgnored is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:50: Warning: Property declaration isSpam is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:51: Warning: Property declaration isHam is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:52: Warning: Property declaration isToAct is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:53: Warning: Property declaration hasAttachment is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:54: Warning: Property declaration hasInvitation is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:55: Warning: Property declaration isEncrypted is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:56: Warning: Property declaration isSigned is both WRITEable and CONSTANT. CONSTANT will be ignored.
    /source/kde5/framework/kde/pim/akonadi-mime/src/messagestatus.h:57: Warning: Property declaration hasError is both WRITEable and CONSTANT. CONSTANT will be ignored.

    Could you fix it please ?

    Edited by Laurent Montel
  • Fixed with 00483185

  • Thanks!

Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment