mailtransport
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_p.h> 00025 #include <mailtransport/transportattribute.h> 00026 00027 #include <akonadi/itemfetchscope.h> 00028 #include <akonadi/job.h> 00029 00030 namespace MailTransport { 00031 00043 class SendQueuedAction : public Akonadi::FilterAction 00044 { 00045 public: 00047 SendQueuedAction(); 00048 00050 virtual ~SendQueuedAction(); 00051 00052 /* reimpl */ 00053 virtual Akonadi::ItemFetchScope fetchScope() const; 00054 00055 /* reimpl */ 00056 virtual bool itemAccepted( const Akonadi::Item &item ) const; 00057 00058 /* reimpl */ 00059 virtual Akonadi::Job *itemAction( const Akonadi::Item &item, 00060 Akonadi::FilterActionJob *parent ) const; 00061 00062 private: 00063 class Private; 00064 Private *const d; 00065 }; 00066 00078 class ClearErrorAction : public Akonadi::FilterAction 00079 { 00080 public: 00082 ClearErrorAction(); 00083 00085 virtual ~ClearErrorAction(); 00086 00087 /* reimpl */ 00088 virtual Akonadi::ItemFetchScope fetchScope() const; 00089 00090 /* reimpl */ 00091 virtual bool itemAccepted( const Akonadi::Item &item ) const; 00092 00093 /* reimpl */ 00094 virtual Akonadi::Job *itemAction( const Akonadi::Item &item, 00095 Akonadi::FilterActionJob *parent ) const; 00096 00097 private: 00098 class Private; 00099 Private *const d; 00100 }; 00101 00113 class DispatchManualTransportAction : public Akonadi::FilterAction 00114 { 00115 public: 00116 DispatchManualTransportAction( int transportId ); 00117 00118 virtual ~DispatchManualTransportAction(); 00119 00120 /* reimpl */ 00121 virtual Akonadi::ItemFetchScope fetchScope() const; 00122 00123 /* reimpl */ 00124 virtual bool itemAccepted( const Akonadi::Item &item ) const; 00125 00126 /* reimpl */ 00127 virtual Akonadi::Job *itemAction( const Akonadi::Item &item, 00128 Akonadi::FilterActionJob *parent ) const; 00129 00130 private: 00131 class Private; 00132 Private *const d; 00133 00134 int mTransportId; 00135 }; 00136 00137 } // namespace MailTransport 00138 00139 #endif // MAILTRANSPORT_OUTBOXACTIONS_P_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:49:32 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:49:32 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.