• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • 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"
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:00:45 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal