PythonQtWrapper_QNetworkProxy.h
38 lines
| 2.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QNETWORKPROXY_H | ||
#define PYTHONQTWRAPPER_QNETWORKPROXY_H | ||||
#include <qnetworkproxy.h> | ||||
#include <QObject> | ||||
#include <QVariant> | ||||
#include <qnetworkproxy.h> | ||||
class PythonQtWrapper_QNetworkProxy : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(ProxyType ) | ||||
enum ProxyType{ | ||||
DefaultProxy = QNetworkProxy::DefaultProxy, Socks5Proxy = QNetworkProxy::Socks5Proxy, NoProxy = QNetworkProxy::NoProxy, HttpProxy = QNetworkProxy::HttpProxy, HttpCachingProxy = QNetworkProxy::HttpCachingProxy, FtpCachingProxy = QNetworkProxy::FtpCachingProxy}; | ||||
public slots: | ||||
QNetworkProxy* new_QNetworkProxy(); | ||||
QNetworkProxy* new_QNetworkProxy(QNetworkProxy::ProxyType type, const QString& hostName = QString(), unsigned short port = 0, const QString& user = QString(), const QString& password = QString()); | ||||
QNetworkProxy* new_QNetworkProxy(const QNetworkProxy& other); | ||||
void delete_QNetworkProxy(QNetworkProxy* obj) { delete obj; } | ||||
QNetworkProxy static_QNetworkProxy_applicationProxy(); | ||||
QString hostName(QNetworkProxy* theWrappedObject) const; | ||||
bool isCachingProxy(QNetworkProxy* theWrappedObject) const; | ||||
bool isTransparentProxy(QNetworkProxy* theWrappedObject) const; | ||||
bool operator_equal(QNetworkProxy* theWrappedObject, const QNetworkProxy& other) const; | ||||
QString password(QNetworkProxy* theWrappedObject) const; | ||||
unsigned short port(QNetworkProxy* theWrappedObject) const; | ||||
void static_QNetworkProxy_setApplicationProxy(const QNetworkProxy& proxy); | ||||
void setHostName(QNetworkProxy* theWrappedObject, const QString& hostName); | ||||
void setPassword(QNetworkProxy* theWrappedObject, const QString& password); | ||||
void setPort(QNetworkProxy* theWrappedObject, unsigned short port); | ||||
void setType(QNetworkProxy* theWrappedObject, QNetworkProxy::ProxyType type); | ||||
void setUser(QNetworkProxy* theWrappedObject, const QString& userName); | ||||
QNetworkProxy::ProxyType type(QNetworkProxy* theWrappedObject) const; | ||||
QString user(QNetworkProxy* theWrappedObject) const; | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QNETWORKPROXY_H | ||||