outboxactions_p.h

00001 /*
00002     Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
00003 
00004     This library is free software; you can redistribute it and/or modify it
00005     under the terms of the GNU Library General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or (at your
00007     option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful, but WITHOUT
00010     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012     License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to the
00016     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 */
00019 
00020 #ifndef MAILTRANSPORT_OUTBOXACTIONS_P_H
00021 #define MAILTRANSPORT_OUTBOXACTIONS_P_H
00022 
00023 #include <mailtransport/mailtransport_export.h>
00024 #include <mailtransport/filteractionjob.h>
00025 
00026 #include <akonadi/itemfetchscope.h>
00027 #include <akonadi/job.h>
00028 
00029 namespace MailTransport {
00030 
00042 class SendQueuedAction : public Akonadi::FilterAction
00043 {
00044   public:
00046     SendQueuedAction();
00047 
00049     virtual ~SendQueuedAction();
00050 
00051     /* reimpl */
00052     virtual Akonadi::ItemFetchScope fetchScope() const;
00053 
00054     /* reimpl */
00055     virtual bool itemAccepted( const Akonadi::Item &item ) const;
00056 
00057     /* reimpl */
00058     virtual Akonadi::Job *itemAction( const Akonadi::Item &item ) const;
00059 
00060   private:
00061     class Private;
00062     Private *const d;
00063 };
00064 
00076 class ClearErrorAction : public Akonadi::FilterAction
00077 {
00078   public:
00080     ClearErrorAction();
00081 
00083     virtual ~ClearErrorAction();
00084 
00085     /* reimpl */
00086     virtual Akonadi::ItemFetchScope fetchScope() const;
00087 
00088     /* reimpl */
00089     virtual bool itemAccepted( const Akonadi::Item &item ) const;
00090 
00091     /* reimpl */
00092     virtual Akonadi::Job *itemAction( const Akonadi::Item &item ) const;
00093 
00094   private:
00095     class Private;
00096     Private *const d;
00097 };
00098 
00099 } // namespace MailTransport
00100 
00101 #endif // MAILTRANSPORT_OUTBOXACTIONS_P_H
KDE Home | KDE Accessibility Home | Description of Access Keys