diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-12-27 18:33:53 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-12-27 19:27:43 -0800 |
commit | e146895c7620f924a5541931e4ebc52206843176 (patch) | |
tree | 33bd6c495ada8c60cc43431f11c8598e7aa682d8 /pbap/pbap.h | |
parent | cdfb8ce39e99616d84742c337213fc4bfebd1ad4 (diff) |
libqtappfw: pbap: add VC_PHOTO support to contacts
Provide photo support for a contacts vCard data
Bug-AGL: SPEC-2088
Change-Id: Ia193a26acb4c829c09f3e57944b8e3d0e550de19
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'pbap/pbap.h')
-rw-r--r-- | pbap/pbap.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pbap/pbap.h b/pbap/pbap.h index 8249400..15cf2d4 100644 --- a/pbap/pbap.h +++ b/pbap/pbap.h @@ -64,14 +64,16 @@ class Contact : public QObject Q_OBJECT Q_PROPERTY(QString name READ name NOTIFY nameChanged) + Q_PROPERTY(QString photo READ photo NOTIFY photoChanged) Q_PROPERTY(QQmlListProperty<PhoneNumber>numbers READ numbersList NOTIFY numbersListChanged) public: - explicit Contact(QString name, QList<PhoneNumber *>numbers); + explicit Contact(QString name, QString photo, QList<PhoneNumber *>numbers); virtual ~Contact(); bool operator<(Contact& c) {return ((this->m_name < c.m_name));}; QString name() {return m_name;}; + QString photo() {return m_photo;}; QList<PhoneNumber *>numbers() {return m_numbers;}; QQmlListProperty<PhoneNumber>numbersList() { return QQmlListProperty<PhoneNumber>(this, 0, &Contact::countNumbers, &Contact::atNumbers); @@ -87,10 +89,12 @@ class Contact : public QObject signals: void nameChanged(); + void photoChanged(); void numbersListChanged(); private: QString m_name; + QString m_photo; QList<PhoneNumber *>m_numbers; }; |