KPeople

abstracteditablecontact.h
1/*
2 SPDX-FileCopyrightText: 2019 Aleix Pol i Gonzalez <aleixpol@blue-systems.com>
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
13namespace 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
23class KPEOPLEBACKEND_EXPORT AbstractEditableContact : public AbstractContact
24{
25public:
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
39private:
40 Q_DISABLE_COPY(AbstractEditableContact)
41};
42
43}
44
47
48#endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:45 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.