Messagelib

attachmentvcardfromaddressbookjob.h
1/*
2 SPDX-FileCopyrightText: 2015-2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "MessageCore/AttachmentLoadJob"
10#include "messagecomposer_export.h"
11#include <Akonadi/Item>
12namespace MessageComposer
13{
14class AttachmentVcardFromAddressBookJobPrivate;
15/**
16 * @brief The AttachmentVcardFromAddressBookJob class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class MESSAGECOMPOSER_EXPORT AttachmentVcardFromAddressBookJob : public MessageCore::AttachmentLoadJob
20{
22public:
23 explicit AttachmentVcardFromAddressBookJob(const Akonadi::Item &item, QObject *parent = nullptr);
24 ~AttachmentVcardFromAddressBookJob() override;
25
26protected Q_SLOTS:
27 void doStart() override;
28
29private:
30 MESSAGECOMPOSER_NO_EXPORT void slotExpandGroupResult(KJob *job);
31 MESSAGECOMPOSER_NO_EXPORT void invalidContact();
32 MESSAGECOMPOSER_NO_EXPORT void addAttachment(const QByteArray &data, const QString &attachmentName);
33 std::unique_ptr<AttachmentVcardFromAddressBookJobPrivate> const d;
34};
35}
KJob(QObject *parent=nullptr)
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 Feb 21 2025 11:47:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.