Messagelib

attachmentfromurljob.h
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messagecore_export.h"
10 
11 #include "MessageCore/AttachmentFromUrlBaseJob"
12 
13 namespace MessageCore
14 {
15 /**
16  * @short A job to load an attachment from an url.
17  *
18  * @author Constantin Berzan <[email protected]>
19  */
20 class MESSAGECORE_EXPORT AttachmentFromUrlJob : public AttachmentFromUrlBaseJob
21 {
22  Q_OBJECT
23 
24 public:
25  /**
26  * Creates a new job.
27  *
28  * @param url The url that will be loaded as attachment.
29  * @param parent The parent object.
30  */
31  explicit AttachmentFromUrlJob(const QUrl &url = QUrl(), QObject *parent = nullptr);
32 
33  /**
34  * Destroys the job.
35  */
36  ~AttachmentFromUrlJob() override;
37 
38 protected Q_SLOTS:
39  void doStart() override;
40 
41 private:
42  //@cond PRIVATE
43  class AttachmentLoadJobPrivate;
44  std::unique_ptr<AttachmentLoadJobPrivate> const d;
45  //@endcond
46 };
47 }
48 
A job to load an attachment from an url.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:45 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.