Messagelib

attachmentfromurljob.h
1/*
2 SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
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
13namespace MessageCore
14{
15/**
16 * @short A job to load an attachment from an url.
17 *
18 * @author Constantin Berzan <exit3219@gmail.com>
19 */
20class MESSAGECORE_EXPORT AttachmentFromUrlJob : public AttachmentFromUrlBaseJob
21{
22 Q_OBJECT
23
24public:
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 */
37
38protected Q_SLOTS:
39 void doStart() override;
40
41private:
42 //@cond PRIVATE
43 class AttachmentLoadJobPrivate;
44 std::unique_ptr<AttachmentLoadJobPrivate> const d;
45 //@endcond
46};
47}
A job to load an attachment from an url.
~AttachmentFromUrlJob() override
Destroys the job.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.