diff options
author | Matt Porter <mporter@konsulko.com> | 2018-06-19 14:56:26 -0400 |
---|---|---|
committer | Matt Porter <mporter@konsulko.com> | 2018-06-22 16:38:30 -0400 |
commit | e8b328e0516d8ead9af13c8379a6cd1dbbb8a9e9 (patch) | |
tree | dec002e6adcf197c3ac7913fb211b65b73772bc9 /pbapmessage.h | |
parent | fc65716b43af6be84d42599d813d3d40df07d376 (diff) |
pbap: add contacts support and recent call model
Add support for parsing contacts and recent call data from
the PBAP-provided vCards using libvcard. Expose a recent
call list model and interfaces to refresh the data.
Bug-AGL: SPEC-1436
Change-Id: Ia4a02443e22e4a27dc974ef414b765667b26ff83
Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'pbapmessage.h')
-rw-r--r-- | pbapmessage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pbapmessage.h b/pbapmessage.h index e3d78c2..65751cb 100644 --- a/pbapmessage.h +++ b/pbapmessage.h @@ -24,6 +24,8 @@ class PbapMessage : public Message Q_OBJECT public: bool createRequest(QString verb, QJsonObject parameter); + bool isStatusEvent() {return (this->eventName() == "status"); }; + bool connected() { return m_event_data.find("connected").value().toBool(); }; private: QStringList verbs { @@ -31,6 +33,9 @@ class PbapMessage : public Message "entry", "history", "search", + "status", + "subscribe", + "unsubscribe", }; }; |