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 
17 class KJob;
18 
19 namespace MessageComposer
20 {
21 class SaveContactPreferenceJobPrivate;
22 
23 class MESSAGECOMPOSER_EXPORT SaveContactPreferenceJob : public QObject
24 {
25  Q_OBJECT
26 public:
27  explicit SaveContactPreferenceJob(const QString &email, const ContactPreference &pref, QObject *parent = nullptr);
28  ~SaveContactPreferenceJob() override;
29  void start();
30 
31 private:
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 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.