File indexing completed on 2024-05-19 05:11:53
0001 /* 0002 * This file is part of the KDE Akonadi Search Project 0003 * SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 * 0007 */ 0008 0009 #pragma once 0010 0011 #include "search_pim_export.h" 0012 #include <QByteArray> 0013 0014 namespace Akonadi 0015 { 0016 namespace Search 0017 { 0018 namespace PIM 0019 { 0020 class ResultIterator; 0021 0022 /** Query base class. */ 0023 class AKONADI_SEARCH_PIM_EXPORT Query 0024 { 0025 public: 0026 Query(); 0027 virtual ~Query(); 0028 virtual ResultIterator exec() = 0; 0029 0030 static Query *fromJSON(const QByteArray &json); 0031 static QString defaultLocation(const QString &dbName); 0032 }; 0033 } 0034 } 0035 }