aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppRpcIq.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-07-08 13:08:33 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-07-08 13:08:33 +0000
commit8a07e9025a1865bcdcaa652665dbc97deac1ec16 (patch)
tree81b526b69b6d13ef6ae73e1c9bba2b979bd7c07f /source/QXmppRpcIq.h
parentf24306761d73480962ce4604607f4abf19806742 (diff)
downloadqxmpp-8a07e9025a1865bcdcaa652665dbc97deac1ec16.tar.gz
use parseElementFromChild in all IQ classes
Diffstat (limited to 'source/QXmppRpcIq.h')
-rw-r--r--source/QXmppRpcIq.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/source/QXmppRpcIq.h b/source/QXmppRpcIq.h
index 461fcb4a..9700a8b8 100644
--- a/source/QXmppRpcIq.h
+++ b/source/QXmppRpcIq.h
@@ -16,12 +16,13 @@ public:
void setPayload( const QVariant &payload );
static bool isRpcResponseIq(const QDomElement &element);
- void parse(const QDomElement &element);
+
+protected:
+ void parseElementFromChild(const QDomElement &element);
void toXmlElementFromChild(QXmlStreamWriter *writer) const;
private:
QVariant m_payload;
-
};
class QXmppRpcInvokeIq : public QXmppIq
@@ -39,7 +40,9 @@ public:
void setInterface( const QString &interface );
static bool isRpcInvokeIq(const QDomElement &element);
- void parse(const QDomElement &element);
+
+protected:
+ void parseElementFromChild(const QDomElement &element);
void toXmlElementFromChild(QXmlStreamWriter *writer) const;
private:
@@ -47,6 +50,7 @@ private:
QString m_method;
QString m_interface;
+ friend class QXmppRpcErrorIq;
};
class QXmppRpcErrorIq : public QXmppIq
@@ -54,11 +58,13 @@ class QXmppRpcErrorIq : public QXmppIq
public:
QXmppRpcErrorIq();
- void setQuery(const QXmppRpcInvokeIq &query );
+ void setQuery(const QXmppRpcInvokeIq &query);
QXmppRpcInvokeIq getQuery() const;
static bool isRpcErrorIq(const QDomElement &element);
- void parse(const QDomElement &element);
+
+protected:
+ void parseElementFromChild(const QDomElement &element);
void toXmlElementFromChild(QXmlStreamWriter *writer) const;
private: