• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

mailtransport

filteractionjob_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 AKONADI_FILTERACTIONJOB_H
00021 #define AKONADI_FILTERACTIONJOB_H
00022 
00023 #include <mailtransport/mailtransport_export.h>
00024 
00025 #include <akonadi/item.h>
00026 #include <akonadi/transactionsequence.h>
00027 
00028 namespace Akonadi {
00029 
00030 class Collection;
00031 class ItemFetchScope;
00032 class Job;
00033 
00034 class FilterActionJob;
00035 
00074 class MAILTRANSPORT_EXPORT FilterAction
00075 {
00076   public:
00082     virtual ~FilterAction();
00083 
00091     virtual Akonadi::ItemFetchScope fetchScope() const = 0;
00092 
00097     virtual bool itemAccepted( const Akonadi::Item &item ) const = 0;
00098 
00103     virtual Akonadi::Job *itemAction( const Akonadi::Item &item, Akonadi::FilterActionJob *parent ) const = 0;
00104 };
00105 
00127 class MAILTRANSPORT_EXPORT FilterActionJob : public TransactionSequence
00128 {
00129   Q_OBJECT
00130 
00131   public:
00139     FilterActionJob( const Item &item, FilterAction *functor, QObject *parent = 0 );
00140 
00148     FilterActionJob( const Item::List &items, FilterAction *functor, QObject *parent = 0 );
00149 
00158     FilterActionJob( const Collection &collection, FilterAction *functor, QObject *parent = 0 );
00159 
00163     ~FilterActionJob();
00164 
00165   protected:
00166     /* reimpl */
00167     virtual void doStart();
00168 
00169   private:
00170     //@cond PRIVATE
00171     class Private;
00172     Private *const d;
00173 
00174     Q_PRIVATE_SLOT( d, void fetchResult( KJob* ) )
00175     //@endcond
00176 };
00177 
00178 } // namespace Akonadi
00179 
00180 #endif // AKONADI_FILTERACTIONJOB_H

mailtransport

Skip menu "mailtransport"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal