Messagelib

attachmentupdatejob.h
1 /*
2  SPDX-FileCopyrightText: 2014-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "attachmentpart.h"
10 #include "messagecore_export.h"
11 #include <KJob>
12 
13 namespace MessageCore
14 {
15 /**
16  * @brief The AttachmentUpdateJob class
17  * @author Laurent Montel <[email protected]>
18  */
19 class MESSAGECORE_EXPORT AttachmentUpdateJob : public KJob
20 {
21  Q_OBJECT
22 public:
23  explicit AttachmentUpdateJob(const AttachmentPart::Ptr &part, QObject *parent = nullptr);
24  ~AttachmentUpdateJob() override;
25 
26  void start() override;
27  Q_REQUIRED_RESULT AttachmentPart::Ptr originalPart() const;
28  Q_REQUIRED_RESULT AttachmentPart::Ptr updatedPart() const;
29 
30 private:
31  //@cond PRIVATE
32  class AttachmentUpdateJobPrivate;
33  std::unique_ptr<AttachmentUpdateJobPrivate> const d;
34 };
35 }
Q_SCRIPTABLE Q_NOREPLY void start()
QSharedPointer< AttachmentPart > Ptr
Defines a pointer to an attachment object.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.