QXmlRPC 1.1
|
00001 // vim:tabstop=4:shiftwidth=4:expandtab:cinoptions=(s,U1,m1 00002 // Copyright (C) 2007 00003 // Author Dmitry Poplavsky <dmitry.poplavsky@gmail.com> 00004 00005 #ifndef REQUEST_H 00006 #define REQUEST_H 00007 00008 #include "variant.h" 00009 00010 namespace xmlrpc { 00011 00020 class Request { 00021 public: 00022 Request(); 00023 Request( const QString& methodName, const QList<Variant>& ); 00024 00025 ~Request(); 00026 00027 bool isNull() const; 00028 00029 QString methodName() const; 00030 QList<Variant> parameters() const; 00031 00032 bool setContent( const QByteArray& requestData, QString *errorMessage = 0 ); 00033 QByteArray composeRequest() const; 00034 00035 private: 00036 class Private; 00037 QSharedDataPointer<Private> d; 00038 }; 00039 00040 } // namespace xmlrpc 00041 00042 #endif // ifndef REQUEST_H 00043