Mercurial > hg > easaier-soundaccess
comparison data/fileio/HttpClient.h @ 104:40effd83ebcf
servlet name in the file xml \ user name and pwd are encoding
author | benoitrigolleau |
---|---|
date | Thu, 12 Jul 2007 15:06:41 +0000 |
parents | ca3a5912fd78 |
children |
comparison
equal
deleted
inserted
replaced
103:33105d5afff8 | 104:40effd83ebcf |
---|---|
15 #define _HTTP_CLIENT_H_ | 15 #define _HTTP_CLIENT_H_ |
16 | 16 |
17 #include <QHttp> | 17 #include <QHttp> |
18 #include <QFile> | 18 #include <QFile> |
19 #include <QXmlDefaultHandler> | 19 #include <QXmlDefaultHandler> |
20 #include <QByteArray> | |
20 | 21 |
21 #include "widgets/ConnectionSettings.h" | 22 #include "widgets/ConnectionSettings.h" |
22 #include "base/XmlExportable.h" | 23 #include "base/XmlExportable.h" |
23 | 24 |
24 class ConnectionSettings; | 25 class ConnectionSettings; |
48 inline void setUserProxyId(const QString& user) { m_userProxyId = user;} | 49 inline void setUserProxyId(const QString& user) { m_userProxyId = user;} |
49 inline void setPwdProxyId(const QString& pwd) { m_pwdProxyId = pwd;} | 50 inline void setPwdProxyId(const QString& pwd) { m_pwdProxyId = pwd;} |
50 | 51 |
51 inline void setHostInfo(const QString& host) { m_host = host;} | 52 inline void setHostInfo(const QString& host) { m_host = host;} |
52 inline void setHostPortInfo(const quint16 port) { m_hostPort = port;} | 53 inline void setHostPortInfo(const quint16 port) { m_hostPort = port;} |
54 inline void setServletNameInfo(const QString& servletName) { m_servletName = servletName;} | |
53 | 55 |
54 void valuesChanged(ConnectionSettings* dialogBox); | 56 void valuesChanged(ConnectionSettings* dialogBox); |
55 | 57 |
56 virtual QString toXmlString(QString indent = "", QString extraAttributes = "") const; | 58 virtual QString toXmlString(QString indent = "", QString extraAttributes = "") const; |
57 bool fromXmlString(QIODevice *file); | 59 bool fromXmlString(QIODevice *file); |
58 | 60 static QString encodeString(const QString& str); |
61 static QString decodeString(const QString& str) ; | |
59 private: | 62 private: |
60 | 63 |
61 bool m_useProxy; | 64 bool m_useProxy; |
62 QString m_proxy; | 65 QString m_proxy; |
63 int m_proxyPort; | 66 int m_proxyPort; |
66 | 69 |
67 QString m_host; | 70 QString m_host; |
68 quint16 m_hostPort; | 71 quint16 m_hostPort; |
69 | 72 |
70 QString m_servletName; | 73 QString m_servletName; |
74 | |
75 | |
71 }; | 76 }; |
72 | 77 |
73 | 78 |
74 class HttpClientConfigXmlHandler : public QXmlDefaultHandler | 79 class HttpClientConfigXmlHandler : public QXmlDefaultHandler |
75 { | 80 { |