diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-09 13:58:47 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-09 13:58:47 +0000 |
| commit | 47f2f46a5e390ffe15070a415df7f194b498abd9 (patch) | |
| tree | bab46621b05a2b89dd6e5beb5e662453c751ac4d /source/xmlrpc.h | |
| parent | ed9c0fa49eec55bd5840967098af80df0196117b (diff) | |
| download | qxmpp-47f2f46a5e390ffe15070a415df7f194b498abd9.tar.gz | |
further cleanup of XMP RPC code
Diffstat (limited to 'source/xmlrpc.h')
| -rw-r--r-- | source/xmlrpc.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/xmlrpc.h b/source/xmlrpc.h index 67f1a028..d27ec491 100644 --- a/source/xmlrpc.h +++ b/source/xmlrpc.h @@ -1,9 +1,10 @@ #ifndef PACKET_H #define PACKET_H -#include <QXmlStreamWriter> -#include <QVariant> + #include <QDomElement> -#include <QList> +#include <QVariant> +#include <QXmlStreamWriter> + /** * Packets are serialized QVariants that map to XMLRPC types. * @li int -> int @@ -51,7 +52,7 @@ public: /** * Creates a method packet that will call method with a list of args. */ - RequestMessage(const QByteArray &method = QByteArray(), const QList<QVariant> &args = QList<QVariant>()); + RequestMessage(const QByteArray &method = QByteArray(), const QVariantList &args = QVariantList()); /** * Parse an xml packet. @@ -64,11 +65,11 @@ public: void writeXml( QXmlStreamWriter *writer ) const; QByteArray method() const; - QList< QVariant > args() const; + QVariantList args() const; private: QByteArray m_method; - QList<QVariant> m_args; + QVariantList m_args; }; /** @@ -81,7 +82,7 @@ public: /** * Create a new response message with data. */ - ResponseMessage(const QList<QVariant> &theValue = QList<QVariant>()); + ResponseMessage(const QVariantList &values = QVariantList()); /** * Parse an xml packet. @@ -93,7 +94,7 @@ public: */ void writeXml( QXmlStreamWriter *writer ) const; - QList< QVariant > values() const; + QVariantList values() const; private: QList<QVariant> m_values; |
