Akonadi

preprocessorbase.cpp
1/******************************************************************************
2 *
3 * SPDX-FileCopyrightText: 2009 Szymon Stefanek <s.stefanek at gmail dot com>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 *
7 *****************************************************************************/
8
9#include "preprocessorbase.h"
10
11#include "preprocessorbase_p.h"
12
13using namespace Akonadi;
14
16 : AgentBase(new PreprocessorBasePrivate(this), id)
17{
18}
19
23
25{
27
28 Q_ASSERT_X(result != ProcessingDelayed, "PreprocessorBase::terminateProcessing", "You should never pass ProcessingDelayed to this function");
29 Q_ASSERT_X(d->mInDelayedProcessing, "PreprocessorBase::terminateProcessing", "terminateProcessing() called while not in delayed processing mode");
30 Q_UNUSED(result)
31
32 d->mInDelayedProcessing = false;
33 Q_EMIT d->itemProcessed(d->mDelayedProcessingItemId);
34}
35
37{
39
40 d->mFetchScope = fetchScope;
41}
42
44{
46
47 return d->mFetchScope;
48}
49
50#include "moc_preprocessorbase.cpp"
The base class for all Akonadi agents and resources.
Definition agentbase.h:73
Specifies which parts of an item should be fetched from the Akonadi storage.
The base class for all Akonadi preprocessor agents.
void setFetchScope(const ItemFetchScope &fetchScope)
Sets the item fetch scope.
PreprocessorBase(const QString &id)
Creates a new preprocessor base agent.
ItemFetchScope & fetchScope()
Returns the item fetch scope.
ProcessingResult
Describes the possible return values of the processItem() method.
@ ProcessingDelayed
Processing was delayed to a later stage.
~PreprocessorBase() override
Destroys the preprocessor base agent.
void finishProcessing(ProcessingResult result)
This method must be called if processing is implemented asynchronously.
Helper integration between Akonadi and Qt.
Q_EMITQ_EMIT
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.