summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/mailcontroller.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-24 21:51:24 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-24 21:51:24 +0200
commitb3223155b178427354b44f05167d0afba0926cbd (patch)
tree25021116a0f465a6973e36b668945080f3b9fc4b /framework/src/domain/mailcontroller.h
parent4ba8c5b72fd7a3db6e593853c4669750dc6dd2a2 (diff)
downloadkube-b3223155b178427354b44f05167d0afba0926cbd.tar.gz
kube-b3223155b178427354b44f05167d0afba0926cbd.zip
Another bunch of controllers gone
Diffstat (limited to 'framework/src/domain/mailcontroller.h')
-rw-r--r--framework/src/domain/mailcontroller.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/framework/src/domain/mailcontroller.h b/framework/src/domain/mailcontroller.h
deleted file mode 100644
index 0bc000f1..00000000
--- a/framework/src/domain/mailcontroller.h
+++ /dev/null
@@ -1,51 +0,0 @@
1/*
2 Copyright (c) 2016 Christian Mollekopf <mollekopf@kolabsys.com>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18*/
19#pragma once
20
21#include <QObject>
22#include "controller.h"
23#include "sink/applicationdomaintype.h"
24
25class MailController : public Kube::Controller
26{
27 Q_OBJECT
28 //Use this instead of mail property to get overall status of thread.
29 KUBE_CONTROLLER_PROPERTY(bool, Unread, unread)
30 KUBE_CONTROLLER_PROPERTY(bool, Important, important)
31 KUBE_CONTROLLER_PROPERTY(bool, Trash, trash)
32 KUBE_CONTROLLER_PROPERTY(bool, Draft, draft)
33
34 KUBE_CONTROLLER_PROPERTY(Sink::ApplicationDomain::Mail::Ptr, Mail, mail)
35 KUBE_CONTROLLER_PROPERTY(Sink::ApplicationDomain::Folder::Ptr, TargetFolder, targetFolder)
36 KUBE_CONTROLLER_PROPERTY(bool, OperateOnThreads, operateOnThreads)
37 KUBE_CONTROLLER_ACTION(markAsRead)
38 KUBE_CONTROLLER_ACTION(markAsUnread)
39 KUBE_CONTROLLER_ACTION(markAsImportant)
40 KUBE_CONTROLLER_ACTION(toggleImportant)
41 KUBE_CONTROLLER_ACTION(moveToTrash)
42 KUBE_CONTROLLER_ACTION(restoreFromTrash)
43 KUBE_CONTROLLER_ACTION(remove)
44 KUBE_CONTROLLER_ACTION(moveToFolder)
45
46public:
47 explicit MailController();
48private slots:
49 void updateActions();
50 void runModification(const std::function<void(Sink::ApplicationDomain::Mail &)> &f);
51};