From d98bbdffd9f45ff8ecd1fece04cad2d93f5d0a9e Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Tue, 10 Aug 2010 08:31:00 +0000 Subject: parse/serialise XML-RPC faults --- source/QXmppRpcIq.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source/QXmppRpcIq.h') diff --git a/source/QXmppRpcIq.h b/source/QXmppRpcIq.h index 1f92f086..d6cf63ab 100644 --- a/source/QXmppRpcIq.h +++ b/source/QXmppRpcIq.h @@ -37,11 +37,22 @@ namespace XMLRPC QVariant demarshall(const QDomElement &elem, QStringList &errors); } +/// \brief The QXmppResponseIq class represents an IQ used to carry +/// an RPC response as specified by XEP-0009: Jabber-RPC. +/// +/// \ingroup Stanzas + class QXmppRpcResponseIq : public QXmppIq { public: QXmppRpcResponseIq(); + int faultCode() const; + void setFaultCode(int faultCode); + + QString faultString() const; + void setFaultString(const QString &faultString); + QVariantList values() const; void setValues(const QVariantList &values); @@ -52,9 +63,16 @@ protected: void toXmlElementFromChild(QXmlStreamWriter *writer) const; private: + int m_faultCode; + QString m_faultString; QVariantList m_values; }; +/// \brief The QXmppInvokeIq class represents an IQ used to carry +/// an RPC invocation as specified by XEP-0009: Jabber-RPC. +/// +/// \ingroup Stanzas + class QXmppRpcInvokeIq : public QXmppIq { public: -- cgit v1.2.3