summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/outboxcontroller.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-12 15:20:39 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-12 15:20:39 +0200
commit288b4ea4ae38b3548f6ab8739a3ef303854886fb (patch)
tree2bc6278f6448ec89f029871947ed09bdfe64ca4e /framework/src/domain/outboxcontroller.h
parentb07fad009b2cdfdd802bc3461c1c884c15856548 (diff)
downloadkube-288b4ea4ae38b3548f6ab8739a3ef303854886fb.tar.gz
kube-288b4ea4ae38b3548f6ab8739a3ef303854886fb.zip
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.
Diffstat (limited to 'framework/src/domain/outboxcontroller.h')
-rw-r--r--framework/src/domain/outboxcontroller.h13
1 files changed, 7 insertions, 6 deletions
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 @@
20 20
21#include <QObject> 21#include <QObject>
22#include "controller.h" 22#include "controller.h"
23#include "sink/applicationdomaintype.h"
23 24
24class OutboxController : public Kube::Controller 25class OutboxController : public Kube::Controller
25{ 26{
26 Q_OBJECT 27 Q_OBJECT
27 Q_PROPERTY (Kube::ControllerAction* sendOutboxAction READ sendOutboxAction CONSTANT) 28
29 KUBE_CONTROLLER_PROPERTY(Sink::ApplicationDomain::Mail::Ptr, Mail, mail)
30 KUBE_CONTROLLER_ACTION(sendOutbox)
31 //Trigger a move to drafts and then trigger an edit
32 KUBE_CONTROLLER_ACTION(edit)
33 KUBE_CONTROLLER_ACTION(moveToTrash)
28 34
29public: 35public:
30 explicit OutboxController(); 36 explicit OutboxController();
31 37
32 Kube::ControllerAction* sendOutboxAction() const;
33
34private slots:
35 void sendOutbox();
36
37private: 38private:
38 QScopedPointer<Kube::ControllerAction> mSynchronizeOutboxAction; 39 QScopedPointer<Kube::ControllerAction> mSynchronizeOutboxAction;
39}; 40};