aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppRpcIq.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/QXmppRpcIq.h')
-rw-r--r--source/QXmppRpcIq.h18
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: