File indexing completed on 2024-05-12 05:29:08

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 NEWBUG_H
0008 #define NEWBUG_H
0009 
0010 #include "jsoncommand.h"
0011 
0012 namespace Bugzilla
0013 {
0014 class NewBug : public JsonCommand
0015 {
0016     Q_OBJECT
0017     BUGZILLA_MEMBER_PROPERTY(QString, product);
0018     BUGZILLA_MEMBER_PROPERTY(QString, component);
0019     BUGZILLA_MEMBER_PROPERTY(QString, summary); // aka shortdesc
0020     BUGZILLA_MEMBER_PROPERTY(QString, version);
0021     BUGZILLA_MEMBER_PROPERTY(QString, description);
0022     BUGZILLA_MEMBER_PROPERTY(QString, op_sys);
0023     BUGZILLA_MEMBER_PROPERTY(QString, platform);
0024     BUGZILLA_MEMBER_PROPERTY(QString, priority);
0025     BUGZILLA_MEMBER_PROPERTY(QString, severity);
0026     BUGZILLA_MEMBER_PROPERTY(QStringList, keywords); // not documented but also supported
0027 public:
0028     // only needed because we impl the copy ctor, otherwise this could be `using`
0029     explicit NewBug(QObject *parent = nullptr);
0030     NewBug(const NewBug &other);
0031 };
0032 
0033 } // namespace Bugzilla
0034 
0035 #endif // NEWBUG_H