QList<QString> list; list << "val1" << "val2"; requestIdNews = client->request( list, "getnews" );
int request( QList<Variant> params, QString methodName );
class Variant : public QVariant {public: Variant(); Variant( const Variant& ); Variant( const QDomElement& ); /*! Next constructors should be used to build xmlrpc::Variant values from users data, to be passed to the xmlrpc::Client::request call*/ Variant ( uint val ); Variant ( int val ); Variant ( bool val ); Variant ( double val ); Variant ( const QByteArray & val ); Variant ( const QString & val ); Variant ( const QStringList & val ); Variant ( const QDateTime & val ); Variant ( const QList<Variant> & val ); Variant ( const QMap<QString, Variant> & val ); ....};
C++ (Qt)QList<Variant> list;list << "val1" << "val2"; requestIdNews = client->request( list, "getnews" );
requestIdSum = client->request( "sum", ui.p1->text(), ui.c1->text() );
.... int request( QList<Variant> params, QString methodName ); /* overloaded methods */ int request( QString methodName ); int request( QString methodName, Variant param1 ); int request( QString methodName, Variant param1, Variant param2 ); int request( QString methodName, Variant param1, Variant param2, Variant param3 ); int request( QString methodName, Variant param1, Variant param2, Variant param3, Variant param4 );