KPeople

abstracteditablecontact.h
1 /*
2  SPDX-FileCopyrightText: 2019 Aleix Pol i Gonzalez <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef KPEOPLE_ABSTRACT_EDITABLE_CONTACT_H
8 #define KPEOPLE_ABSTRACT_EDITABLE_CONTACT_H
9 
10 #include "abstractcontact.h"
11 #include <kpeoplebackend/kpeoplebackend_export.h>
12 
13 namespace KPeople
14 {
15 /**
16  * @brief Additionally to @class AbstractContact features, it will allow us
17  * to suggest the backend property values for a said key.
18  *
19  * @since 5.62
20  * @internal
21  */
22 
23 class KPEOPLEBACKEND_EXPORT AbstractEditableContact : public AbstractContact
24 {
25 public:
28  AbstractEditableContact();
29  ~AbstractEditableContact() override;
30 
31  /**
32  * @p key @see AbstractContact for key identifiers
33  * @p value suggested value
34  *
35  * @returns whether the change was successful
36  */
37  virtual bool setCustomProperty(const QString &key, const QVariant &value) = 0;
38 
39 private:
40  Q_DISABLE_COPY(AbstractEditableContact)
41 };
42 
43 }
44 
46 Q_DECLARE_METATYPE(KPeople::AbstractEditableContact::Ptr)
47 
48 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jan 27 2022 22:42:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.