Warning, file /frameworks/kpeople/src/backends/abstracteditablecontact.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2019 Aleix Pol i Gonzalez <aleixpol@blue-systems.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef KPEOPLE_ABSTRACT_EDITABLE_CONTACT_H 0008 #define KPEOPLE_ABSTRACT_EDITABLE_CONTACT_H 0009 0010 #include "abstractcontact.h" 0011 #include <kpeoplebackend/kpeoplebackend_export.h> 0012 0013 namespace KPeople 0014 { 0015 /** 0016 * @brief Additionally to @class AbstractContact features, it will allow us 0017 * to suggest the backend property values for a said key. 0018 * 0019 * @since 5.62 0020 * @internal 0021 */ 0022 0023 class KPEOPLEBACKEND_EXPORT AbstractEditableContact : public AbstractContact 0024 { 0025 public: 0026 typedef QExplicitlySharedDataPointer<AbstractEditableContact> Ptr; 0027 typedef QList<AbstractEditableContact::Ptr> List; 0028 AbstractEditableContact(); 0029 ~AbstractEditableContact() override; 0030 0031 /** 0032 * @p key @see AbstractContact for key identifiers 0033 * @p value suggested value 0034 * 0035 * @returns whether the change was successful 0036 */ 0037 virtual bool setCustomProperty(const QString &key, const QVariant &value) = 0; 0038 0039 private: 0040 Q_DISABLE_COPY(AbstractEditableContact) 0041 }; 0042 0043 } 0044 0045 Q_DECLARE_METATYPE(KPeople::AbstractEditableContact::List) 0046 Q_DECLARE_METATYPE(KPeople::AbstractEditableContact::Ptr) 0047 0048 #endif