From 288b4ea4ae38b3548f6ab8739a3ef303854886fb Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 12 Apr 2017 15:20:39 +0200 Subject: Move back to trash or drafts. The move back to drafts should also trigger an edit of the mail, but that's not implemented yet. --- framework/src/domain/outboxcontroller.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'framework/src/domain/outboxcontroller.h') diff --git a/framework/src/domain/outboxcontroller.h b/framework/src/domain/outboxcontroller.h index 4c24ad59..0d33956a 100644 --- a/framework/src/domain/outboxcontroller.h +++ b/framework/src/domain/outboxcontroller.h @@ -20,20 +20,21 @@ #include #include "controller.h" +#include "sink/applicationdomaintype.h" class OutboxController : public Kube::Controller { Q_OBJECT - Q_PROPERTY (Kube::ControllerAction* sendOutboxAction READ sendOutboxAction CONSTANT) + + KUBE_CONTROLLER_PROPERTY(Sink::ApplicationDomain::Mail::Ptr, Mail, mail) + KUBE_CONTROLLER_ACTION(sendOutbox) + //Trigger a move to drafts and then trigger an edit + KUBE_CONTROLLER_ACTION(edit) + KUBE_CONTROLLER_ACTION(moveToTrash) public: explicit OutboxController(); - Kube::ControllerAction* sendOutboxAction() const; - -private slots: - void sendOutbox(); - private: QScopedPointer mSynchronizeOutboxAction; }; -- cgit v1.2.3