Akonadi Contacts

addemaildisplayjob.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "akonadi-contact-widgets_export.h"
10#include <Akonadi/Item>
11#include <KJob>
12
13#include <memory>
14
15namespace Akonadi
16{
17class Item;
18class AddEmailDisplayJobPrivate;
19
20/**
21 * @brief The AddEmailDisplayJob class
22 * @author Laurent Montel <montel@kde.org>
23 */
24class AKONADI_CONTACT_WIDGETS_EXPORT AddEmailDisplayJob : public KJob
25{
26 Q_OBJECT
27
28public:
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
39Q_SIGNALS:
40 void contactUpdated(const Akonadi::Item &contact, Akonadi::Item::Id id, bool showAsHTML, bool remoteContent);
41
42private:
43 //@cond PRIVATE
44 friend class AddEmailDisplayJobPrivate;
45 std::unique_ptr<AddEmailDisplayJobPrivate> const d;
46 //@endcond
47};
48}
The AddEmailDisplayJob class.
Q_SCRIPTABLE Q_NOREPLY void start()
A widget for editing the display name of a contact.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:03:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.