PACK Qt Binding
$VERSION$
|
base class of all interfaces More...
#include <interface.h>
Public Types | |
enum | LogLevel { LogNone =0, LogMinimal =1, LogInfo =2, LogOnError =0x12, LogDetailed =0xff } |
Public Slots | |
void | setLogLevel (WInterface::LogLevel l) |
void | setWebTimeout (int t) |
void | resetProxy () |
void | setProxy (QString proxyhost, unsigned short proxyport, QString proxyuser=QString(), QString proxypassword=QString()) |
void | setUrl (QUrl u) |
virtual void | sslErrors (QNetworkReply *, const QList< QSslError > &) |
Public Member Functions | |
virtual | ~WInterface () |
virtual QMap< QString, QString > | headers (QString) const |
QUrl | url () const |
bool | useProxy () const |
bool | useProxyAuth () const |
QString | proxyHost () const |
unsigned short | proxyPort () const |
QString | proxyUser () const |
QString | proxyPassword () const |
int | webTimeout () const |
QString | name () const |
LogLevel | logLevel () const |
QString | libraryVersionInfo (WOb::VersionInfo) const |
returns version info about the library More... | |
virtual QString | wocVersionInfo (WOb::VersionInfo) const =0 |
returns version info about the WOC that was used to generate the interface More... | |
virtual QString | versionInfo (WOb::VersionInfo) const =0 |
returns version info about the interface itself More... | |
virtual QString | commVersion () const |
convenience function: return the protocol version of this interface More... | |
virtual QString | needCommVersion () const |
convenience function: return the oldest protocol version this interface is compatible with More... | |
virtual QString | version () const |
convenience function: return human readable version More... | |
Static Public Member Functions | |
static WInterface * | instance (QString) |
static QString | staticLibraryVersionInfo (WOb::VersionInfo) |
returns version info about the library More... | |
Protected Member Functions | |
WInterface (QString name) | |
used by child classes for instantiation More... | |
QNetworkReply * | post (const QNetworkRequest &request, const QByteArray &data) |
called by WTransaction to post a request More... | |
virtual WServerReply | execute (const WServerRequest &) |
called by WServer to execute a transaction More... | |
Friends | |
class | WTransaction |
class | WTransaction_Private |
class | WServer |
base class of all interfaces
enum WInterface::LogLevel |
|
protected |
used by child classes for instantiation
|
virtual |
|
inlinevirtual |
convenience function: return the protocol version of this interface
|
protectedvirtual |
called by WServer to execute a transaction
|
virtual |
overwrite if you need additional headers (eg. session-ids) for certain transactions (transaction name is handed in as string argument); per default returns empty map
|
static |
returns the instance registered under that name
QString WInterface::libraryVersionInfo | ( | WOb::VersionInfo | vi | ) | const |
returns version info about the library
|
inline |
returns the current log level
QString WInterface::name | ( | ) | const |
get the name for this interface (returns empty string if not registered
|
inlinevirtual |
convenience function: return the oldest protocol version this interface is compatible with
|
protected |
called by WTransaction to post a request
|
inline |
returns the proxy host name
|
inline |
returns the proxy password
|
inline |
returns the proxy port
|
inline |
returns the proxy user name
|
inlineslot |
resets the proxy settings to no proxy use
|
inlineslot |
set log level
|
slot |
sets the proxy settings
|
inlineslot |
sets the URL of the interface
|
inlineslot |
set timeout for page loads in seconds
|
virtualslot |
handles SSL errors, per default ignores them, overwrite it if you need more sophisticated behavior
|
static |
returns version info about the library
|
inline |
returns the URL of the interface
|
inline |
returns whether the interface uses a proxy
|
inline |
returns whether the proxy needs authentication
|
inlinevirtual |
convenience function: return human readable version
|
pure virtual |
returns version info about the interface itself
|
inline |
return timeout in seconds
|
pure virtual |
returns version info about the WOC that was used to generate the interface
|
friend |
|
friend |
|
friend |