From 47f2f46a5e390ffe15070a415df7f194b498abd9 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 9 Aug 2010 13:58:47 +0000 Subject: further cleanup of XMP RPC code --- source/xmlrpc.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'source/xmlrpc.h') 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 -#include + #include -#include +#include +#include + /** * 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 &args = QList()); + 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 m_args; + QVariantList m_args; }; /** @@ -81,7 +82,7 @@ public: /** * Create a new response message with data. */ - ResponseMessage(const QList &theValue = QList()); + 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 m_values; -- cgit v1.2.3