00001
00002
00003
00004
00005
00006
00007
00008
00010
00011 #ifndef SOAPCLIENT_H_
00012 #define SOAPCLIENT_H_
00013
00014 #include <qdom.h>
00015 #include <qbuffer.h>
00016
00017 #include "httpcomms.h"
00018 #include "upnputil.h"
00019
00022
00023
00024
00027
00028 class SOAPClient
00029 {
00030 protected:
00031
00032 QString m_sNamespace;
00033 QString m_sControlPath;
00034 QUrl m_url;
00035
00036 public:
00037
00038 SOAPClient( const QUrl &url,
00039 const QString &sNamespace,
00040 const QString &sControlPath );
00041 virtual ~SOAPClient();
00042
00043 protected:
00044
00045 int GetNodeValue( QDomNode &node, const QString &sName, int nDefault );
00046 bool GetNodeValue( QDomNode &node, const QString &sName, bool bDefault );
00047 QString GetNodeValue( QDomNode &node, const QString &sName, const QString &sDefault );
00048
00049 QDomNode FindNode( const QString &sName , QDomNode &baseNode );
00050 QDomNode FindNode( QStringList &sParts, QDomNode &curNode );
00051
00052 bool SendSOAPRequest( const QString &sMethod,
00053 QStringMap &list,
00054 int &nErrCode,
00055 QString &sErrDesc,
00056 bool bInQtThread );
00057 };
00058
00059 #endif
00060