aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppBind.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-03-22 10:28:33 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-03-22 10:28:33 +0000
commit348b173dd5cf746ce9f8939aeb7bd2cc3ebb766d (patch)
treeac2d2dcd20dbbd020a719220ace4cb244dd469fc /source/QXmppBind.h
parentf05f29132920c00568b867456adc15fdde576fbf (diff)
downloadqxmpp-348b173dd5cf746ce9f8939aeb7bd2cc3ebb766d.tar.gz
make it possible to detect / parse bind and session IQs
Diffstat (limited to 'source/QXmppBind.h')
-rw-r--r--source/QXmppBind.h7
1 files changed, 5 insertions, 2 deletions
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;