Akonadi Contacts

addemaildisplayjob.h
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "akonadi-contact_export.h"
10 #include <AkonadiCore/Item>
11 #include <KJob>
12 
13 namespace Akonadi
14 {
15 class Item;
16 /**
17  * @brief The AddEmailDisplayJob class
18  * @author Laurent Montel <[email protected]>
19  */
20 class AKONADI_CONTACT_EXPORT AddEmailDisplayJob : public KJob
21 {
22  Q_OBJECT
23 
24 public:
25  explicit AddEmailDisplayJob(const QString &email, QWidget *parentWidget, QObject *parent = nullptr);
26 
27  ~AddEmailDisplayJob() override;
28  void setShowAsHTML(bool html);
29  void setRemoteContent(bool b);
30  void setContact(const Akonadi::Item &contact);
31  void setMessageId(Akonadi::Item::Id id);
32 
33  void start() override;
34 
35 Q_SIGNALS:
36  void contactUpdated(const Akonadi::Item &contact, Akonadi::Item::Id id, bool showAsHTML, bool remoteContent);
37 
38 private:
39  //@cond PRIVATE
40  class Private;
41  Private *const d;
42  //@endcond
43 };
44 }
45 
The AddEmailDisplayJob class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jun 23 2021 23:09:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.