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

akonadi

preprocessorbase.cpp

00001 /******************************************************************************
00002  *
00003  *  Copyright (c) 2009 Szymon Stefanek <s.stefanek at gmail dot com>
00004  *
00005  *  This library is free software; you can redistribute it and/or modify it
00006  *  under the terms of the GNU Library General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or (at your
00008  *  option) any later version.
00009  *
00010  *  This library is distributed in the hope that it will be useful, but WITHOUT
00011  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013  *  License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this library; see the file COPYING.LIB.  If not, write to the
00017  *  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00018  *  MA, 02110-1301, USA.
00019  *
00020  *****************************************************************************/
00021 
00022 #include "preprocessorbase.h"
00023 
00024 #include "preprocessorbase_p.h"
00025 
00026 #include <kdebug.h>
00027 
00028 using namespace Akonadi;
00029 
00030 PreprocessorBase::PreprocessorBase( const QString &id )
00031   : AgentBase( new PreprocessorBasePrivate( this ), id )
00032 {
00033 }
00034 
00035 PreprocessorBase::~PreprocessorBase()
00036 {
00037 }
00038 
00039 void PreprocessorBase::finishProcessing( ProcessingResult result )
00040 {
00041   Q_D( PreprocessorBase );
00042 
00043   Q_ASSERT_X( result != ProcessingDelayed, "PreprocessorBase::terminateProcessing", "You should never pass ProcessingDelayed to this function" );
00044   Q_ASSERT_X( d->mInDelayedProcessing, "PreprocessorBase::terminateProcessing", "terminateProcessing() called while not in delayed processing mode" );
00045   Q_UNUSED( result );
00046 
00047   d->mInDelayedProcessing = false;
00048   emit d->itemProcessed( d->mDelayedProcessingItemId );
00049 }
00050 
00051 void PreprocessorBase::setFetchScope( const ItemFetchScope &fetchScope )
00052 {
00053   Q_D( PreprocessorBase );
00054 
00055   d->mFetchScope = fetchScope;
00056 }
00057 
00058 ItemFetchScope &PreprocessorBase::fetchScope()
00059 {
00060   Q_D( PreprocessorBase );
00061 
00062   return d->mFetchScope;
00063 }
00064 #include "preprocessorbase.moc"

akonadi

Skip menu "akonadi"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • 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.6.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