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 BUGCLIENT_H
0008 #define BUGCLIENT_H
0009 
0010 #include "clientbase.h"
0011 #include "commands/bugsearch.h"
0012 #include "commands/bugupdate.h"
0013 #include "commands/newbug.h"
0014 
0015 #include <models/bug.h>
0016 
0017 namespace Bugzilla
0018 {
0019 class BugClient : public ClientBase
0020 {
0021 public:
0022     using ClientBase::ClientBase;
0023 
0024     QList<Bug::Ptr> search(KJob *kjob) const;
0025     KJob *search(const BugSearch &search);
0026 
0027     qint64 create(KJob *kjob) const;
0028     KJob *create(const NewBug &bug);
0029 
0030     qint64 update(KJob *kjob) const;
0031     KJob *update(qint64 bugId, BugUpdate &bug);
0032 };
0033 
0034 } // namespace Bugzilla
0035 
0036 #endif // BUGCLIENT_H