Messagelib

savecontactpreferencejob.h
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <MessageComposer/ContactPreference>
10
11#include <QObject>
12
13#include <memory>
14
15#include "messagecomposer_export.h"
16
17class KJob;
18
19namespace MessageComposer
20{
21class SaveContactPreferenceJobPrivate;
22
23class MESSAGECOMPOSER_EXPORT SaveContactPreferenceJob : public QObject
24{
25 Q_OBJECT
26public:
27 explicit SaveContactPreferenceJob(const QString &email, const ContactPreference &pref, QObject *parent = nullptr);
28 ~SaveContactPreferenceJob() override;
29 void start();
30
31private:
32 MESSAGECOMPOSER_NO_EXPORT void slotSearchContact(KJob *job);
33 MESSAGECOMPOSER_NO_EXPORT void slotModifyCreateItem(KJob *job);
34
35 std::unique_ptr<SaveContactPreferenceJobPrivate> d_ptr;
36 Q_DECLARE_PRIVATE(SaveContactPreferenceJob)
37};
38}
Q_SCRIPTABLE Q_NOREPLY void start()
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:08:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.