diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-10 08:31:00 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-10 08:31:00 +0000 |
| commit | d98bbdffd9f45ff8ecd1fece04cad2d93f5d0a9e (patch) | |
| tree | 1e371d69c010daf60dae5e04121a897394306115 /source/QXmppRpcIq.h | |
| parent | 064a65d8d2bde24369bb83d8393da1344035ad83 (diff) | |
| download | qxmpp-d98bbdffd9f45ff8ecd1fece04cad2d93f5d0a9e.tar.gz | |
parse/serialise XML-RPC faults
Diffstat (limited to 'source/QXmppRpcIq.h')
| -rw-r--r-- | source/QXmppRpcIq.h | 18 |
1 files changed, 18 insertions, 0 deletions
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: |
