File indexing completed on 2024-05-12 16:59: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 BUGFIELDCLIENT_H 0008 #define BUGFIELDCLIENT_H 0009 0010 #include "clientbase.h" 0011 #include "models/bugfield.h" 0012 0013 namespace Bugzilla 0014 { 0015 class BugFieldClient : public ClientBase 0016 { 0017 public: 0018 using ClientBase::ClientBase; 0019 0020 KJob *getFields(const QString &idOrName = QString()); 0021 QList<BugField::Ptr> getFields(KJob *kjob) const; 0022 0023 KJob *getField(const QString &idOrName); 0024 /// Ptr may be null if the idOrName matched nothing! 0025 BugField::Ptr getField(KJob *kjob) const; 0026 }; 0027 0028 } // namespace Bugzilla 0029 0030 #endif // BUGFIELDCLIENT_H