Messagelib

attachmentvcardfromaddressbookjob.h
1 /*
2  SPDX-FileCopyrightText: 2015-2022 Laurent Montel <[email protected]>
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>
12 namespace MessageComposer
13 {
14 class AttachmentVcardFromAddressBookJobPrivate;
15 /**
16  * @brief The AttachmentVcardFromAddressBookJob class
17  * @author Laurent Montel <[email protected]>
18  */
20 {
21  Q_OBJECT
22 public:
23  explicit AttachmentVcardFromAddressBookJob(const Akonadi::Item &item, QObject *parent = nullptr);
25 
26 protected Q_SLOTS:
27  void doStart() override;
28 
29 private Q_SLOTS:
30  void slotExpandGroupResult(KJob *job);
31 
32 private:
33  void invalidContact();
34  void addAttachment(const QByteArray &data, const QString &attachmentName);
35  std::unique_ptr<AttachmentVcardFromAddressBookJobPrivate> const d;
36 };
37 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
A base class for jobs to load attachments from different sources.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon May 16 2022 04:18:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.