00001 #ifndef MYTHSOAP_H_ 00002 #define MYTHSOAP_H_ 00003 00004 #include <qhttp.h> 00005 #include <qstring.h> 00006 00007 class MythSoap : public QObject 00008 { 00009 Q_OBJECT 00010 public: 00011 void doSoapRequest(QString, QString, QString, QString); 00012 QByteArray getResponseData(); 00013 bool isDone(); 00014 bool hasError(); 00015 inline QString getError() const { return http.errorString(); } 00016 MythSoap(); 00017 00018 private: 00019 QHttp http; 00020 bool m_done; 00021 bool m_error; 00022 QByteArray m_data; 00023 00024 public slots: 00025 void httpDone(bool); 00026 }; 00027 00028 #endif
1.5.5