summaryrefslogtreecommitdiffstats
path: root/framework/mail/actions/akonadiactions.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-06 12:18:02 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-06 12:18:02 +0100
commit42d3a9e04e72c77004abecc01a816ea1981e2fc5 (patch)
tree5f3ae3ae867a78fc35d7cd8fc6fb8b3acdc406df /framework/mail/actions/akonadiactions.h
parent021dde561b5ce86820013c681ff554b07590b052 (diff)
downloadkube-42d3a9e04e72c77004abecc01a816ea1981e2fc5.tar.gz
kube-42d3a9e04e72c77004abecc01a816ea1981e2fc5.zip
Implemented some akonadi actions
Diffstat (limited to 'framework/mail/actions/akonadiactions.h')
-rw-r--r--framework/mail/actions/akonadiactions.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/framework/mail/actions/akonadiactions.h b/framework/mail/actions/akonadiactions.h
new file mode 100644
index 00000000..a583ebf8
--- /dev/null
+++ b/framework/mail/actions/akonadiactions.h
@@ -0,0 +1,40 @@
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 <actions/actionhandler.h>
22#include <functional>
23
24namespace Kube {
25class Context;
26
27class ActionHandlerHelper : public ActionHandler
28{
29 Q_OBJECT
30public:
31 ActionHandlerHelper(const QByteArray &actionId, const std::function<bool(Context*)> &, const std::function<void(Context*)> &);
32
33 bool isActionReady(Context *context) Q_DECL_OVERRIDE;
34 void execute(Context *context) Q_DECL_OVERRIDE;
35private:
36 const std::function<bool(Context*)> isReadyFunction;
37 const std::function<void(Context*)> handlerFunction;
38};
39
40}