File indexing completed on 2024-05-19 16:31:07

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 NEWATTACHMENT_H
0008 #define NEWATTACHMENT_H
0009 
0010 #include "jsoncommand.h"
0011 
0012 namespace Bugzilla
0013 {
0014 class NewAttachment : public JsonCommand
0015 {
0016     Q_OBJECT
0017     BUGZILLA_MEMBER_PROPERTY(QList<int>, ids);
0018     BUGZILLA_MEMBER_PROPERTY(QString, data);
0019     BUGZILLA_MEMBER_PROPERTY(QString, file_name);
0020     BUGZILLA_MEMBER_PROPERTY(QString, summary);
0021     BUGZILLA_MEMBER_PROPERTY(QString, content_type);
0022     BUGZILLA_MEMBER_PROPERTY(QString, comment);
0023     BUGZILLA_MEMBER_PROPERTY(bool, is_patch) = false;
0024     BUGZILLA_MEMBER_PROPERTY(bool, is_private) = false;
0025 
0026     // flags property is not supported at this time
0027 
0028 public:
0029     virtual QVariantHash toVariantHash() const override;
0030 };
0031 
0032 } // namespace Bugzilla
0033 
0034 #endif // NEWATTACHMENT_H