Akonadi Contacts

addemaildisplayjob.h
1 /*
2  SPDX-FileCopyrightText: 2013-2023 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 <Akonadi/Item>
11 #include <KJob>
12 
13 #include <memory>
14 
15 namespace Akonadi
16 {
17 class Item;
18 class AddEmailDisplayJobPrivate;
19 
20 /**
21  * @brief The AddEmailDisplayJob class
22  * @author Laurent Montel <[email protected]>
23  */
24 class AKONADI_CONTACT_EXPORT AddEmailDisplayJob : public KJob
25 {
26  Q_OBJECT
27 
28 public:
29  explicit AddEmailDisplayJob(const QString &email, QWidget *parentWidget, QObject *parent = nullptr);
30 
31  ~AddEmailDisplayJob() override;
32  void setShowAsHTML(bool html);
33  void setRemoteContent(bool b);
34  void setContact(const Akonadi::Item &contact);
35  void setMessageId(Akonadi::Item::Id id);
36 
37  void start() override;
38 
39 Q_SIGNALS:
40  void contactUpdated(const Akonadi::Item &contact, Akonadi::Item::Id id, bool showAsHTML, bool remoteContent);
41 
42 private:
43  //@cond PRIVATE
44  friend class AddEmailDisplayJobPrivate;
45  std::unique_ptr<AddEmailDisplayJobPrivate> const d;
46  //@endcond
47 };
48 }
Q_SCRIPTABLE Q_NOREPLY void start()
The AddEmailDisplayJob class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.