Messagelib

attachmentloadjob.h
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef MESSAGECORE_ATTACHMENTLOADJOB_H
8 #define MESSAGECORE_ATTACHMENTLOADJOB_H
9 
10 #include "messagecore_export.h"
11 
12 #include "attachmentpart.h"
13 
14 #include <KJob>
15 
16 namespace MessageCore {
22 class MESSAGECORE_EXPORT AttachmentLoadJob : public KJob
23 {
24  Q_OBJECT
25 
26 public:
32  explicit AttachmentLoadJob(QObject *parent = nullptr);
33 
37  ~AttachmentLoadJob() override;
38 
42  void start() override;
43 
47  Q_REQUIRED_RESULT AttachmentPart::Ptr attachmentPart() const;
48 
49 protected:
53  void setAttachmentPart(const AttachmentPart::Ptr &part);
54 
55 protected Q_SLOTS:
56  virtual void doStart() = 0;
57 
58 private:
59  //@cond PRIVATE
60  class Private;
61  Private *const d;
62  //@endcond
63 };
64 }
65 
66 #endif
A base class for jobs to load attachments from different sources.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 30 2020 23:22:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.