Akonadi

searchhandler.h
1 /***************************************************************************
2  * SPDX-FileCopyrightText: 2009 Tobias Koenig <[email protected]> *
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 
13 namespace Akonadi
14 {
15 namespace Server
16 {
17 /**
18  @ingroup akonadi_server_handler
19 
20  Handler for the search commands.
21 */
22 class SearchHandler : public Handler
23 {
24 public:
25  SearchHandler(AkonadiServer &akonadi);
26  ~SearchHandler() override = default;
27 
28  bool parseStream() override;
29 
30 private:
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
40 
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-2022 The KDE developers.
Generated on Thu Jun 30 2022 03:51:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.