aboutsummaryrefslogtreecommitdiff
path: root/source/xmlrpc.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-09 13:04:27 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-09 13:04:27 +0000
commit71b56f080fd955062719c6529192a347fc26313f (patch)
treec6d405edcf35f8171cbeb3e64dd4272837b28207 /source/xmlrpc.h
parent7e38b7e68e3c8bd99a1e7f263242cc7e0aa67c57 (diff)
downloadqxmpp-71b56f080fd955062719c6529192a347fc26313f.tar.gz
simplify XML RPC code
Diffstat (limited to 'source/xmlrpc.h')
-rw-r--r--source/xmlrpc.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/source/xmlrpc.h b/source/xmlrpc.h
index 021c5892..3b846f23 100644
--- a/source/xmlrpc.h
+++ b/source/xmlrpc.h
@@ -22,7 +22,7 @@
* ResponseMessage resp( SomeHttpDispatchObject( msg.xml() ) );
* if( resp.isValid() )
* {
-* int rows = resp.value().toMap()["widgets"].toInt();
+* int rows = resp.values().first().toMap()["widgets"].toInt();
* }
* else
* qWarning("Error: %s", resp.error().latin1() );
@@ -121,28 +121,9 @@ public:
*/
ResponseMessage( const QList< QVariant >& theValue );
- /**
- * Create a new response message with data. This is exactly like
- * the above method save for it only takes a single QVariant.
- */
- explicit ResponseMessage( const QVariant& theValue );
-
virtual ~ResponseMessage() {;}
/**
- * Returns the number of data elements. Usually this is only
- * 1 element, but some services will return mutiple messages in
- * a single xmlrpc packet.
- */
- int count() const;
-
- /**
- * Returns the native value for an xmlrpc message at an offset.
- * Usually this method can be called with no arguments.
- */
- QVariant value( int idx = 0 ) const;
-
- /**
* Return the xml representation of the packet.
*/
void writeXml( QXmlStreamWriter *writer ) const;