File indexing completed on 2025-01-19 04:58:03

0001 /*
0002     SPDX-FileCopyrightText: 2019 Harald Sitter <sitter@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef QUERYCOMMAND_H
0008 #define QUERYCOMMAND_H
0009 
0010 #include <QObject>
0011 #include <QSet>
0012 #include <QString>
0013 
0014 #include "commandbase.h"
0015 #include "query.h"
0016 
0017 namespace Bugzilla
0018 {
0019 class QueryCommand : public QObject
0020 {
0021 public:
0022     using QObject::QObject;
0023 
0024     virtual Query toQuery() const;
0025     Query expandQuery(Query &query, const QSet<QString> &seen) const;
0026 };
0027 
0028 } // namespace Bugzilla
0029 
0030 #endif // QUERYCOMMAND_H