Akonadi

searchhandler.h
1/***************************************************************************
2 * SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org> *
3 * *
4 * SPDX-License-Identifier: LGPL-2.0-or-later *
5 ***************************************************************************/
6
7#pragma once
8
9#include "handler.h"
10
11#include <QSet>
12
13namespace Akonadi
14{
15namespace Server
16{
17/**
18 @ingroup akonadi_server_handler
19
20 Handler for the search commands.
21*/
22class SearchHandler : public Handler
23{
24public:
25 SearchHandler(AkonadiServer &akonadi);
26 ~SearchHandler() override = default;
27
28 bool parseStream() override;
29
30private:
31 void processResults(const QSet<qint64> &results);
32
33 Protocol::ItemFetchScope mItemFetchScope;
34 Protocol::TagFetchScope mTagFetchScope;
35 QSet<qint64> mAllResults;
36};
37
38} // namespace Server
39} // namespace Akonadi
The handler interfaces describes an entity capable of handling an AkonadiIMAP command.
Definition handler.h:32
Handler for the search commands.
bool parseStream() override
Parse and handle the IMAP message using the streaming parser.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:38 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.