Messagelib

savecontactpreferencejob.h
1 /*
2  SPDX-FileCopyrightText: 2014-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "composer/keyresolver.h"
10 #include <KContacts/Addressee>
11 class KJob;
12 
13 namespace MessageComposer
14 {
15 class SaveContactPreferenceJob : public QObject
16 {
17  Q_OBJECT
18 public:
19  explicit SaveContactPreferenceJob(const QString &email, const Kleo::KeyResolver::ContactPreferences &pref, QObject *parent = nullptr);
20  ~SaveContactPreferenceJob() override;
21  void start();
22 
23 private Q_SLOTS:
24  void slotSearchContact(KJob *job);
25 
26  void slotModifyCreateItem(KJob *job);
27 
28 private:
29  void writeCustomContactProperties(KContacts::Addressee &contact, const Kleo::KeyResolver::ContactPreferences &pref) const;
30  const QString mEmail;
31  const Kleo::KeyResolver::ContactPreferences mPref;
32 };
33 }
Q_OBJECTQ_OBJECT
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Dec 2 2021 23:06:09 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.