diff options
Diffstat (limited to 'framework/mail/actions')
-rw-r--r-- | framework/mail/actions/sinkactions.cpp (renamed from framework/mail/actions/akonadiactions.cpp) | 12 | ||||
-rw-r--r-- | framework/mail/actions/sinkactions.h (renamed from framework/mail/actions/akonadiactions.h) | 0 |
2 files changed, 6 insertions, 6 deletions
diff --git a/framework/mail/actions/akonadiactions.cpp b/framework/mail/actions/sinkactions.cpp index d0a51deb..8918f996 100644 --- a/framework/mail/actions/akonadiactions.cpp +++ b/framework/mail/actions/sinkactions.cpp | |||
@@ -16,11 +16,11 @@ | |||
16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
17 | 02110-1301, USA. | 17 | 02110-1301, USA. |
18 | */ | 18 | */ |
19 | #include "akonadiactions.h" | 19 | #include "sinkactions.h" |
20 | 20 | ||
21 | #include <actions/context.h> | 21 | #include <actions/context.h> |
22 | 22 | ||
23 | #include <akonadi2common/clientapi.h> | 23 | #include <sinkcommon/clientapi.h> |
24 | 24 | ||
25 | using namespace Kube; | 25 | using namespace Kube; |
26 | 26 | ||
@@ -47,14 +47,14 @@ static ActionHandlerHelper markAsReadHandler("org.kde.kube.actions.mark-as-read" | |||
47 | return context->property("mail").isValid(); | 47 | return context->property("mail").isValid(); |
48 | }, | 48 | }, |
49 | [](Context *context) { | 49 | [](Context *context) { |
50 | auto mail = context->property("mail").value<Akonadi2::ApplicationDomain::Mail::Ptr>(); | 50 | auto mail = context->property("mail").value<Sink::ApplicationDomain::Mail::Ptr>(); |
51 | if (!mail) { | 51 | if (!mail) { |
52 | qWarning() << "Failed to get the mail mail: " << context->property("mail"); | 52 | qWarning() << "Failed to get the mail mail: " << context->property("mail"); |
53 | return; | 53 | return; |
54 | } | 54 | } |
55 | mail->setProperty("unread", false); | 55 | mail->setProperty("unread", false); |
56 | qDebug() << "Mark as read " << mail->identifier(); | 56 | qDebug() << "Mark as read " << mail->identifier(); |
57 | Akonadi2::Store::modify(*mail).exec(); | 57 | Sink::Store::modify(*mail).exec(); |
58 | } | 58 | } |
59 | ); | 59 | ); |
60 | 60 | ||
@@ -63,13 +63,13 @@ static ActionHandlerHelper deleteHandler("org.kde.kube.actions.delete", | |||
63 | return context->property("mail").isValid(); | 63 | return context->property("mail").isValid(); |
64 | }, | 64 | }, |
65 | [](Context *context) { | 65 | [](Context *context) { |
66 | auto mail = context->property("mail").value<Akonadi2::ApplicationDomain::Mail::Ptr>(); | 66 | auto mail = context->property("mail").value<Sink::ApplicationDomain::Mail::Ptr>(); |
67 | if (!mail) { | 67 | if (!mail) { |
68 | qWarning() << "Failed to get the mail mail: " << context->property("mail"); | 68 | qWarning() << "Failed to get the mail mail: " << context->property("mail"); |
69 | return; | 69 | return; |
70 | } | 70 | } |
71 | mail->setProperty("unread", false); | 71 | mail->setProperty("unread", false); |
72 | qDebug() << "Remove " << mail->identifier(); | 72 | qDebug() << "Remove " << mail->identifier(); |
73 | Akonadi2::Store::remove(*mail).exec(); | 73 | Sink::Store::remove(*mail).exec(); |
74 | } | 74 | } |
75 | ); | 75 | ); |
diff --git a/framework/mail/actions/akonadiactions.h b/framework/mail/actions/sinkactions.h index a583ebf8..a583ebf8 100644 --- a/framework/mail/actions/akonadiactions.h +++ b/framework/mail/actions/sinkactions.h | |||