QXmlRPC  1.1
response.h
1 // vim:tabstop=4:shiftwidth=4:expandtab:cinoptions=(s,U1,m1
2 // Copyright (C) 2007
3 // Author Dmitry Poplavsky <dmitry.poplavsky@gmail.com>
4 
5 #ifndef RESPONSE_H
6 #define RESPONSE_H
7 
8 #include "variant.h"
9 
10 namespace xmlrpc {
11 
20 class Response {
21 public:
22  Response();
23  Response( const Variant& returnValue );
24  Response( int faultCode, const QString& faultString );
25 
26  virtual ~Response();
27 
28  bool isNull() const;
29 
30  bool isFault() const;
31  int faultCode() const;
32  QString faultString() const;
33 
34  Variant returnValue() const;
35 
36 
37  bool setContent( const QByteArray& requestData, QString *errorMessage = 0 );
38  QByteArray composeResponse() const;
39 
40 private:
41  class Private;
42  QSharedDataPointer<Private> d;
43 };
44 
45 } // namespace xmlrpc
46 
47 #endif // ifndef RESPONSE_H
48 
Variant returnValue() const
Definition: response.cpp:123
bool isFault() const
Definition: response.cpp:91
Response()
Definition: response.cpp:42
QByteArray composeResponse() const
Definition: response.cpp:236
The xmlrpc::Response class contains XmlRPC response information.
Definition: response.h:20
bool isNull() const
Definition: response.cpp:83
Definition: client.cpp:15
The xmlrpc::Variant class acts like a union for XML-RPC variables types.
Definition: variant.h:24
int faultCode() const
Definition: response.cpp:101
bool setContent(const QByteArray &requestData, QString *errorMessage=0)
Definition: response.cpp:136
QString faultString() const
Definition: response.cpp:112