Messagelib

attachmentfrompublickeyjob.h
1/*
2 SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
3
4 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5*/
6
7#pragma once
8
9#include <MessageCore/AttachmentLoadJob>
10
11#include "messagecomposer_export.h"
12
13namespace MessageComposer
14{
15// TODO I have no idea how to test this. Have a fake keyring???
16/**
17 * @brief The AttachmentFromPublicKeyJob class
18 */
19class MESSAGECOMPOSER_EXPORT AttachmentFromPublicKeyJob : public MessageCore::AttachmentLoadJob
20{
22
23public:
24 explicit AttachmentFromPublicKeyJob(const QString &fingerprint, QObject *parent = nullptr);
25 ~AttachmentFromPublicKeyJob() override;
26
27 [[nodiscard]] QString fingerprint() const;
28 void setFingerprint(const QString &fingerprint);
29
30protected Q_SLOTS:
31 void doStart() override;
32
33private:
34 class AttachmentFromPublicKeyJobPrivate;
35 friend class AttachmentFromPublicKeyJobPrivate;
36 std::unique_ptr<AttachmentFromPublicKeyJobPrivate> const d;
37};
38} //
A base class for jobs to load attachments from different sources.
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:39 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.