summaryrefslogtreecommitdiffstats
path: root/pbapmessage.h
diff options
context:
space:
mode:
Diffstat (limited to 'pbapmessage.h')
-rw-r--r--pbapmessage.h5
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",
};
};