Messagelib

savecontactpreferencejob.h
1 /*
2  SPDX-FileCopyrightText: 2014-2023 Laurent Montel <[email protected]>
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  void slotSearchContact(KJob *job);
33  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-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.