File indexing completed on 2024-05-05 17:33:25

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 PRODUCTCLIENT_H
0008 #define PRODUCTCLIENT_H
0009 
0010 #include "clientbase.h"
0011 #include "models/product.h"
0012 
0013 namespace Bugzilla
0014 {
0015 class ProductClient : public ClientBase
0016 {
0017 public:
0018     using ClientBase::ClientBase;
0019 
0020     /// Gets a single Product by its name
0021     Product::Ptr get(KJob *kjob);
0022     KJob *get(const QString &idOrName);
0023 };
0024 
0025 } // namespace Bugzilla
0026 
0027 #endif // PRODUCTCLIENT_H