From 348b173dd5cf746ce9f8939aeb7bd2cc3ebb766d Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 22 Mar 2010 10:28:33 +0000 Subject: make it possible to detect / parse bind and session IQs --- source/QXmppBind.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source/QXmppBind.h') diff --git a/source/QXmppBind.h b/source/QXmppBind.h index ed1a14e2..e621eb4f 100644 --- a/source/QXmppBind.h +++ b/source/QXmppBind.h @@ -1,8 +1,9 @@ /* * Copyright (C) 2008-2010 Manjeet Dahiya * - * Author: + * Authors: * Manjeet Dahiya + * Jeremy Lainé * * Source: * http://code.google.com/p/qxmpp @@ -32,13 +33,15 @@ class QXmppBind : public QXmppIq public: QXmppBind(QXmppIq::Type type); QXmppBind(const QString& type); - ~QXmppBind(); QString jid() const; QString resource() const; void setJid(const QString&); void setResource(const QString&); + static bool isBind(const QDomElement &element); + void parse(const QDomElement &element); + // deprecated accessors, use the form without "get" instead // obsolete start QString Q_DECL_DEPRECATED getJid() const; -- cgit v1.2.3