KPeople

declarativepersondata.h
1 /*
2  SPDX-FileCopyrightText: 2013 David Edmundson <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef DECLARATIVEPERSONDATA_H
8 #define DECLARATIVEPERSONDATA_H
9 
10 #include "persondata.h"
11 
12 class DeclarativePersonData : public QObject
13 {
14  Q_OBJECT
15 
16  Q_PROPERTY(QString personUri READ personUri WRITE setPersonUri NOTIFY personChanged)
17  Q_PROPERTY(KPeople::PersonData *person READ person NOTIFY personChanged)
18 
19 public:
20  explicit DeclarativePersonData(QObject *parent = nullptr);
21 
22  void setPersonUri(const QString &id);
23  QString personUri() const;
24 
25  KPeople::PersonData *person() const;
26 
27 Q_SIGNALS:
28  void personChanged();
29 
30 private:
31  QString m_id;
32  KPeople::PersonData *m_person = nullptr;
33 };
34 
35 #endif // DECLARATIVEPERSONDATA_H
Q_SIGNALSQ_SIGNALS
Allows to query the information about a given person.
Definition: persondata.h:34
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
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.