7 #ifndef WOB_INTERFACE_H
8 #define WOB_INTERFACE_H
18 class QNetworkRequest;
23 #ifndef WOLF_BASE_EXPORT
24 #define WOLF_BASE_EXPORT Q_DECL_IMPORT
31 Q_PROPERTY(QUrl url READ url)
32 Q_PROPERTY(
bool useProxy READ useProxy)
33 Q_PROPERTY(
bool useProxyAuth READ useProxyAuth)
34 Q_PROPERTY(QString proxyHost READ proxyHost)
35 Q_PROPERTY(
unsigned short proxyPort READ proxyPort)
36 Q_PROPERTY(QString proxyUser READ proxyUser)
37 Q_PROPERTY(QString proxyPassword READ proxyPassword)
38 Q_PROPERTY(
int webTimeout READ webTimeout)
39 Q_PROPERTY(QString name READ name)
41 Q_PROPERTY(
LogLevel logLevel READ logLevel)
49 QNetworkReply* post(
const QNetworkRequest&request,
const QByteArray&data);
58 virtual QMap<QString,QString> headers(QString)
const;
61 QUrl
url()
const{
return m_url;}
70 unsigned short proxyPort()
const{
return m_proxyport;}
126 void resetProxy(){m_proxyhost=
"";m_proxyport=0;m_proxyuser=
"";m_proxypass=
"";}
128 void setProxy(QString proxyhost,
unsigned short proxyport,QString proxyuser=QString(),QString proxypassword=QString());
134 virtual void sslErrors(QNetworkReply *,
const QList<QSslError>&);
137 static QMap<QString,WInterface*>inst;
139 QString m_proxyhost,m_proxyuser,m_proxypass;
140 unsigned short m_proxyport;
LogLevel logLevel() const
Definition: interface.h:100
virtual QString needCommVersion() const
convenience function: return the oldest protocol version this interface is compatible with ...
Definition: interface.h:114
the oldest version of the protocol that the interface is compatible with
Definition: wob.h:18
void setLogLevel(WInterface::LogLevel l)
Definition: interface.h:120
alias for VersionHumanReadable,
Definition: wob.h:22
LogLevel
Definition: interface.h:86
QString proxyPassword() const
Definition: interface.h:74
virtual QString version() const
convenience function: return human readable version
Definition: interface.h:116
QUrl url() const
Definition: interface.h:61
void setWebTimeout(int t)
Definition: interface.h:123
int webTimeout() const
Definition: interface.h:77
#define WOLF_BASE_EXPORT
Definition: interface.h:24
reply object for the server side: contains the data sent back to the client
Definition: server.h:70
Definition: transaction.h:20
QString proxyUser() const
Definition: interface.h:72
Definition: transaction_p.h:50
Encapsulates the request as it comes in via (S)CGI.
Definition: server.h:23
unsigned short proxyPort() const
Definition: interface.h:70
virtual QString commVersion() const
convenience function: return the protocol version of this interface
Definition: interface.h:112
void setUrl(QUrl u)
Definition: interface.h:131
the version of the protocol that the interface implements
Definition: wob.h:16
base class of all interfaces
Definition: interface.h:28
bool useProxyAuth() const
Definition: interface.h:66
VersionInfo
version information, used in conjunction with versionInfo()
Definition: wob.h:14
QString proxyHost() const
Definition: interface.h:68
void resetProxy()
Definition: interface.h:126
bool useProxy() const
Definition: interface.h:64