File indexing completed on 2024-06-23 05:07:02
0001 /*************************************************************************** 0002 * SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org> * 0003 * * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later * 0005 ***************************************************************************/ 0006 0007 #pragma once 0008 0009 #include "handler.h" 0010 0011 #include <QSet> 0012 0013 namespace Akonadi 0014 { 0015 namespace Server 0016 { 0017 /** 0018 @ingroup akonadi_server_handler 0019 0020 Handler for the search commands. 0021 */ 0022 class SearchHandler : public Handler 0023 { 0024 public: 0025 SearchHandler(AkonadiServer &akonadi); 0026 ~SearchHandler() override = default; 0027 0028 bool parseStream() override; 0029 0030 private: 0031 void processResults(const QSet<qint64> &results); 0032 0033 Protocol::ItemFetchScope mItemFetchScope; 0034 Protocol::TagFetchScope mTagFetchScope; 0035 QSet<qint64> mAllResults; 0036 }; 0037 0038 } // namespace Server 0039 } // namespace Akonadi