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 ATTACHMENTCLIENT_H 0008 #define ATTACHMENTCLIENT_H 0009 0010 #include "clientbase.h" 0011 #include "commands/newattachment.h" 0012 0013 namespace Bugzilla 0014 { 0015 class AttachmentClient : public ClientBase 0016 { 0017 public: 0018 using ClientBase::ClientBase; 0019 0020 /// Attach to a bug. @returns list of bugs that were attached to. 0021 QList<int> createAttachment(KJob *kjob); 0022 KJob *createAttachment(int bugId, const NewAttachment &attachment); 0023 }; 0024 0025 } // namespace Bugzilla 0026 0027 #endif // ATTACHMENTCLIENT_H