From 71b56f080fd955062719c6529192a347fc26313f Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 9 Aug 2010 13:04:27 +0000 Subject: simplify XML RPC code --- source/xmlrpc.h | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'source/xmlrpc.h') 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,27 +121,8 @@ 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. */ -- cgit v1.2.3