summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QHttp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QHttp.cpp')
-rw-r--r--qtjava/javalib/qtjava/QHttp.cpp258
1 files changed, 129 insertions, 129 deletions
diff --git a/qtjava/javalib/qtjava/QHttp.cpp b/qtjava/javalib/qtjava/QHttp.cpp
index 03d6c50e..4b0f00bb 100644
--- a/qtjava/javalib/qtjava/QHttp.cpp
+++ b/qtjava/javalib/qtjava/QHttp.cpp
@@ -10,120 +10,120 @@
class TQHttpJBridge : public TQHttp
{
public:
- TQHttpJBridge() : TTQHttp() {};
- TQHttpJBridge(TTQObject* arg1,const char* arg2) : TTQHttp(arg1,arg2) {};
- TQHttpJBridge(TTQObject* arg1) : TTQHttp(arg1) {};
- TQHttpJBridge(const TTQString& arg1,Q_UINT16 arg2,TTQObject* arg3,const char* arg4) : TTQHttp(arg1,arg2,arg3,arg4) {};
- TQHttpJBridge(const TTQString& arg1,Q_UINT16 arg2,TTQObject* arg3) : TTQHttp(arg1,arg2,arg3) {};
- TQHttpJBridge(const TTQString& arg1,Q_UINT16 arg2) : TTQHttp(arg1,arg2) {};
- TQHttpJBridge(const TTQString& arg1) : TTQHttp(arg1) {};
- void protected_operationGet(TTQNetworkOperation* arg1) {
- TTQHttp::operationGet(arg1);
+ TQHttpJBridge() : TQHttp() {};
+ TQHttpJBridge(TQObject* arg1,const char* arg2) : TQHttp(arg1,arg2) {};
+ TQHttpJBridge(TQObject* arg1) : TQHttp(arg1) {};
+ TQHttpJBridge(const TQString& arg1,Q_UINT16 arg2,TQObject* arg3,const char* arg4) : TQHttp(arg1,arg2,arg3,arg4) {};
+ TQHttpJBridge(const TQString& arg1,Q_UINT16 arg2,TQObject* arg3) : TQHttp(arg1,arg2,arg3) {};
+ TQHttpJBridge(const TQString& arg1,Q_UINT16 arg2) : TQHttp(arg1,arg2) {};
+ TQHttpJBridge(const TQString& arg1) : TQHttp(arg1) {};
+ void protected_operationGet(TQNetworkOperation* arg1) {
+ TQHttp::operationGet(arg1);
return;
}
- void protected_operationPut(TTQNetworkOperation* arg1) {
- TTQHttp::operationPut(arg1);
+ void protected_operationPut(TQNetworkOperation* arg1) {
+ TQHttp::operationPut(arg1);
return;
}
- void protected_timerEvent(TTQTimerEvent* arg1) {
- TTQHttp::timerEvent(arg1);
+ void protected_timerEvent(TQTimerEvent* arg1) {
+ TQHttp::timerEvent(arg1);
return;
}
~TQHttpJBridge() {QtSupport::qtKeyDeleted(this);}
- void operationRename(TTQNetworkOperation* arg1) {
- if (!QtSupport::eventDelegate(this,"operationRename",(void*)arg1,"org.kde.qt.TTQNetworkOperation")) {
- TTQNetworkProtocol::operationRename(arg1);
+ void operationRename(TQNetworkOperation* arg1) {
+ if (!QtSupport::eventDelegate(this,"operationRename",(void*)arg1,"org.kde.qt.TQNetworkOperation")) {
+ TQNetworkProtocol::operationRename(arg1);
}
return;
}
- void operationPutChunk(TTQNetworkOperation* arg1) {
- if (!QtSupport::eventDelegate(this,"operationPutChunk",(void*)arg1,"org.kde.qt.TTQNetworkOperation")) {
- TTQNetworkProtocol::operationPutChunk(arg1);
+ void operationPutChunk(TQNetworkOperation* arg1) {
+ if (!QtSupport::eventDelegate(this,"operationPutChunk",(void*)arg1,"org.kde.qt.TQNetworkOperation")) {
+ TQNetworkProtocol::operationPutChunk(arg1);
}
return;
}
- void processOperation(TTQNetworkOperation* arg1) {
- if (!QtSupport::eventDelegate(this,"processOperation",(void*)arg1,"org.kde.qt.TTQNetworkOperation")) {
- TTQNetworkProtocol::processOperation(arg1);
+ void processOperation(TQNetworkOperation* arg1) {
+ if (!QtSupport::eventDelegate(this,"processOperation",(void*)arg1,"org.kde.qt.TQNetworkOperation")) {
+ TQNetworkProtocol::processOperation(arg1);
}
return;
}
- void removeChild(TTQObject* arg1) {
- if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TTQObject")) {
- TTQObject::removeChild(arg1);
+ void removeChild(TQObject* arg1) {
+ if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) {
+ TQObject::removeChild(arg1);
}
return;
}
- void operationListChildren(TTQNetworkOperation* arg1) {
- if (!QtSupport::eventDelegate(this,"operationListChildren",(void*)arg1,"org.kde.qt.TTQNetworkOperation")) {
- TTQNetworkProtocol::operationListChildren(arg1);
+ void operationListChildren(TQNetworkOperation* arg1) {
+ if (!QtSupport::eventDelegate(this,"operationListChildren",(void*)arg1,"org.kde.qt.TQNetworkOperation")) {
+ TQNetworkProtocol::operationListChildren(arg1);
}
return;
}
- void customEvent(TTQCustomEvent* arg1) {
- if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TTQCustomEvent")) {
- TTQObject::customEvent(arg1);
+ void customEvent(TQCustomEvent* arg1) {
+ if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TQCustomEvent")) {
+ TQObject::customEvent(arg1);
}
return;
}
- void operationRemove(TTQNetworkOperation* arg1) {
- if (!QtSupport::eventDelegate(this,"operationRemove",(void*)arg1,"org.kde.qt.TTQNetworkOperation")) {
- TTQNetworkProtocol::operationRemove(arg1);
+ void operationRemove(TQNetworkOperation* arg1) {
+ if (!QtSupport::eventDelegate(this,"operationRemove",(void*)arg1,"org.kde.qt.TQNetworkOperation")) {
+ TQNetworkProtocol::operationRemove(arg1);
}
return;
}
- void timerEvent(TTQTimerEvent* arg1) {
- if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TTQTimerEvent")) {
- TTQHttp::timerEvent(arg1);
+ void timerEvent(TQTimerEvent* arg1) {
+ if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TQTimerEvent")) {
+ TQHttp::timerEvent(arg1);
}
return;
}
- void childEvent(TTQChildEvent* arg1) {
- if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TTQChildEvent")) {
- TTQObject::childEvent(arg1);
+ void childEvent(TQChildEvent* arg1) {
+ if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TQChildEvent")) {
+ TQObject::childEvent(arg1);
}
return;
}
- void addOperation(TTQNetworkOperation* arg1) {
- if (!QtSupport::eventDelegate(this,"addOperation",(void*)arg1,"org.kde.qt.TTQNetworkOperation")) {
- TTQNetworkProtocol::addOperation(arg1);
+ void addOperation(TQNetworkOperation* arg1) {
+ if (!QtSupport::eventDelegate(this,"addOperation",(void*)arg1,"org.kde.qt.TQNetworkOperation")) {
+ TQNetworkProtocol::addOperation(arg1);
}
return;
}
- void insertChild(TTQObject* arg1) {
- if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TTQObject")) {
- TTQObject::insertChild(arg1);
+ void insertChild(TQObject* arg1) {
+ if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TQObject")) {
+ TQObject::insertChild(arg1);
}
return;
}
void clearOperationQueue() {
- if (!QtSupport::voidDelegate(this,"org.kde.qt.TTQHttp","clearOperationQueue")) {
- TTQNetworkProtocol::clearOperationQueue();
+ if (!QtSupport::voidDelegate(this,"org.kde.qt.TQHttp","clearOperationQueue")) {
+ TQNetworkProtocol::clearOperationQueue();
}
return;
}
- void operationMkDir(TTQNetworkOperation* arg1) {
- if (!QtSupport::eventDelegate(this,"operationMkDir",(void*)arg1,"org.kde.qt.TTQNetworkOperation")) {
- TTQNetworkProtocol::operationMkDir(arg1);
+ void operationMkDir(TQNetworkOperation* arg1) {
+ if (!QtSupport::eventDelegate(this,"operationMkDir",(void*)arg1,"org.kde.qt.TQNetworkOperation")) {
+ TQNetworkProtocol::operationMkDir(arg1);
}
return;
}
- bool eventFilter(TTQObject* object,TTQEvent* event) {
- if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.TTQHttp",object,event)) {
- return TTQObject::eventFilter(object,event);
+ bool eventFilter(TQObject* object,TQEvent* event) {
+ if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.TQHttp",object,event)) {
+ return TQObject::eventFilter(object,event);
} else {
return TRUE;
}
}
void stop() {
- if (!QtSupport::voidDelegate(this,"org.kde.qt.TTQHttp","stop")) {
- TTQNetworkProtocol::stop();
+ if (!QtSupport::voidDelegate(this,"org.kde.qt.TQHttp","stop")) {
+ TQNetworkProtocol::stop();
}
return;
}
- void setUrl(TTQUrlOperator* arg1) {
- if (!QtSupport::eventDelegate(this,"setUrl",(void*)arg1,"org.kde.qt.TTQUrlOperator")) {
- TTQNetworkProtocol::setUrl(arg1);
+ void setUrl(TQUrlOperator* arg1) {
+ if (!QtSupport::eventDelegate(this,"setUrl",(void*)arg1,"org.kde.qt.TQUrlOperator")) {
+ TQNetworkProtocol::setUrl(arg1);
}
return;
}
@@ -132,14 +132,14 @@ public:
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_abort(JNIEnv* env, jobject obj)
{
- ((TTQHttp*) QtSupport::getQt(env, obj))->abort();
+ ((TQHttp*) QtSupport::getQt(env, obj))->abort();
return;
}
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QHttp_bytesAvailable(JNIEnv* env, jobject obj)
{
- jlong xret = (jlong) ((TTQHttp*) QtSupport::getQt(env, obj))->bytesAvailable();
+ jlong xret = (jlong) ((TQHttp*) QtSupport::getQt(env, obj))->bytesAvailable();
return xret;
}
@@ -147,49 +147,49 @@ JNIEXPORT jstring JNICALL
Java_org_kde_qt_QHttp_className(JNIEnv* env, jobject obj)
{
const char* _qstring;
- _qstring = ((TTQHttp*) QtSupport::getQt(env, obj))->className();
+ _qstring = ((TQHttp*) QtSupport::getQt(env, obj))->className();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_clearPendingRequests(JNIEnv* env, jobject obj)
{
- ((TTQHttp*) QtSupport::getQt(env, obj))->clearPendingRequests();
+ ((TQHttp*) QtSupport::getQt(env, obj))->clearPendingRequests();
return;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_closeConnection(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->closeConnection();
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->closeConnection();
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QHttp_currentDestinationDevice(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQHttp*) QtSupport::getQt(env, obj))->currentDestinationDevice(), "org.kde.qt.TQIODeviceInterface");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((TQHttp*) QtSupport::getQt(env, obj))->currentDestinationDevice(), "org.kde.qt.TQIODeviceInterface");
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_currentId(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->currentId();
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->currentId();
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QHttp_currentRequest(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQHttpRequestHeader(((TTQHttp*) QtSupport::getQt(env, obj))->currentRequest()), "org.kde.qt.TTQHttpRequestHeader", TRUE);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQHttpRequestHeader(((TQHttp*) QtSupport::getQt(env, obj))->currentRequest()), "org.kde.qt.TQHttpRequestHeader", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QHttp_currentSourceDevice(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQHttp*) QtSupport::getQt(env, obj))->currentSourceDevice(), "org.kde.qt.TQIODeviceInterface");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((TQHttp*) QtSupport::getQt(env, obj))->currentSourceDevice(), "org.kde.qt.TQIODeviceInterface");
return xret;
}
@@ -203,23 +203,23 @@ Java_org_kde_qt_QHttp_dispose(JNIEnv* env, jobject obj)
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QHttp_errorString(JNIEnv* env, jobject obj)
{
- TTQString _qstring;
- _qstring = ((TTQHttp*) QtSupport::getQt(env, obj))->errorString();
+ TQString _qstring;
+ _qstring = ((TQHttp*) QtSupport::getQt(env, obj))->errorString();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_error(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->error();
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->error();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_finalize(JNIEnv* env, jobject obj)
{
- if (QtSupport::allocatedInJavaWorld(env, obj) && ((TTQHttp*)QtSupport::getQt(env, obj))->parent() == 0) {
- delete (TTQHttp*)QtSupport::getQt(env, obj);
+ if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQHttp*)QtSupport::getQt(env, obj))->parent() == 0) {
+ delete (TQHttp*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
@@ -228,31 +228,31 @@ Java_org_kde_qt_QHttp_finalize(JNIEnv* env, jobject obj)
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_get__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path)
{
-static TTQString* _qstring_path = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->get((const TTQString&)*(TTQString*) QtSupport::toTQString(env, path, &_qstring_path));
+static TQString* _qstring_path = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->get((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_get__Ljava_lang_String_2Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jstring path, jobject to)
{
-static TTQString* _qstring_path = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->get((const TTQString&)*(TTQString*) QtSupport::toTQString(env, path, &_qstring_path), (TTQIODevice*) QtSupport::getQt(env, to));
+static TQString* _qstring_path = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->get((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (TQIODevice*) QtSupport::getQt(env, to));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QHttp_hasPendingRequests(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((TTQHttp*) QtSupport::getQt(env, obj))->hasPendingRequests();
+ jboolean xret = (jboolean) ((TQHttp*) QtSupport::getQt(env, obj))->hasPendingRequests();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_head(JNIEnv* env, jobject obj, jstring path)
{
-static TTQString* _qstring_path = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->head((const TTQString&)*(TTQString*) QtSupport::toTQString(env, path, &_qstring_path));
+static TQString* _qstring_path = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->head((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
return xret;
}
@@ -265,7 +265,7 @@ Java_org_kde_qt_QHttp_isDisposed(JNIEnv* env, jobject obj)
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QHttp_metaObject(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQHttp*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TTQMetaObject");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((TQHttp*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject");
return xret;
}
@@ -282,9 +282,9 @@ Java_org_kde_qt_QHttp_newTQHttp__(JNIEnv* env, jobject obj)
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_newTQHttp__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring hostname)
{
-static TTQString* _qstring_hostname = 0;
+static TQString* _qstring_hostname = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new TQHttpJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname)));
+ QtSupport::setQt(env, obj, new TQHttpJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -293,9 +293,9 @@ static TTQString* _qstring_hostname = 0;
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_newTQHttp__Ljava_lang_String_2S(JNIEnv* env, jobject obj, jstring hostname, jshort port)
{
-static TTQString* _qstring_hostname = 0;
+static TQString* _qstring_hostname = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new TQHttpJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname), (Q_UINT16) port));
+ QtSupport::setQt(env, obj, new TQHttpJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname), (Q_UINT16) port));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -304,9 +304,9 @@ static TTQString* _qstring_hostname = 0;
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_newTQHttp__Ljava_lang_String_2SLorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jstring hostname, jshort port, jobject parent)
{
-static TTQString* _qstring_hostname = 0;
+static TQString* _qstring_hostname = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new TQHttpJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname), (Q_UINT16) port, (TTQObject*) QtSupport::getQt(env, parent)));
+ QtSupport::setQt(env, obj, new TQHttpJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname), (Q_UINT16) port, (TQObject*) QtSupport::getQt(env, parent)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -315,10 +315,10 @@ static TTQString* _qstring_hostname = 0;
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_newTQHttp__Ljava_lang_String_2SLorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring hostname, jshort port, jobject parent, jstring name)
{
-static TTQString* _qstring_hostname = 0;
-static TTQCString* _qstring_name = 0;
+static TQString* _qstring_hostname = 0;
+static TQCString* _qstring_name = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new TQHttpJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname), (Q_UINT16) port, (TTQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
+ QtSupport::setQt(env, obj, new TQHttpJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname), (Q_UINT16) port, (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -328,7 +328,7 @@ JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_newTQHttp__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new TQHttpJBridge((TTQObject*) QtSupport::getQt(env, parent)));
+ QtSupport::setQt(env, obj, new TQHttpJBridge((TQObject*) QtSupport::getQt(env, parent)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -337,9 +337,9 @@ Java_org_kde_qt_QHttp_newTQHttp__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj,
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_newTQHttp__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
-static TTQCString* _qstring_name = 0;
+static TQCString* _qstring_name = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new TQHttpJBridge((TTQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
+ QtSupport::setQt(env, obj, new TQHttpJBridge((TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -348,66 +348,66 @@ static TTQCString* _qstring_name = 0;
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_operationGet(JNIEnv* env, jobject obj, jobject op)
{
- ((TQHttpJBridge*) QtSupport::getQt(env, obj))->protected_operationGet((TTQNetworkOperation*) QtSupport::getQt(env, op));
+ ((TQHttpJBridge*) QtSupport::getQt(env, obj))->protected_operationGet((TQNetworkOperation*) QtSupport::getQt(env, op));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_operationPut(JNIEnv* env, jobject obj, jobject op)
{
- ((TQHttpJBridge*) QtSupport::getQt(env, obj))->protected_operationPut((TTQNetworkOperation*) QtSupport::getQt(env, op));
+ ((TQHttpJBridge*) QtSupport::getQt(env, obj))->protected_operationPut((TQNetworkOperation*) QtSupport::getQt(env, op));
return;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_post__Ljava_lang_String_2Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jstring path, jobject data)
{
-static TTQString* _qstring_path = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->post((const TTQString&)*(TTQString*) QtSupport::toTQString(env, path, &_qstring_path), (TTQIODevice*) QtSupport::getQt(env, data));
+static TQString* _qstring_path = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->post((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (TQIODevice*) QtSupport::getQt(env, data));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_post__Ljava_lang_String_2Lorg_kde_qt_QIODeviceInterface_2Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jstring path, jobject data, jobject to)
{
-static TTQString* _qstring_path = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->post((const TTQString&)*(TTQString*) QtSupport::toTQString(env, path, &_qstring_path), (TTQIODevice*) QtSupport::getQt(env, data), (TTQIODevice*) QtSupport::getQt(env, to));
+static TQString* _qstring_path = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->post((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (TQIODevice*) QtSupport::getQt(env, data), (TQIODevice*) QtSupport::getQt(env, to));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_post__Ljava_lang_String_2_3B(JNIEnv* env, jobject obj, jstring path, jbyteArray data)
{
-static TTQString* _qstring_path = 0;
-static TTQByteArray* _qbyteArray_data = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->post((const TTQString&)*(TTQString*) QtSupport::toTQString(env, path, &_qstring_path), (const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
+static TQString* _qstring_path = 0;
+static TQByteArray* _qbyteArray_data = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->post((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_post__Ljava_lang_String_2_3BLorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jstring path, jbyteArray data, jobject to)
{
-static TTQString* _qstring_path = 0;
-static TTQByteArray* _qbyteArray_data = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->post((const TTQString&)*(TTQString*) QtSupport::toTQString(env, path, &_qstring_path), (const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TTQIODevice*) QtSupport::getQt(env, to));
+static TQString* _qstring_path = 0;
+static TQByteArray* _qbyteArray_data = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->post((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TQIODevice*) QtSupport::getQt(env, to));
return xret;
}
JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QHttp_readAll(JNIEnv* env, jobject obj)
{
- TTQByteArray _qbyteArray;
- _qbyteArray = ((TTQHttp*) QtSupport::getQt(env, obj))->readAll();
+ TQByteArray _qbyteArray;
+ _qbyteArray = ((TQHttp*) QtSupport::getQt(env, obj))->readAll();
return QtSupport::fromTQByteArray(env, &_qbyteArray);
}
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QHttp_readBlock(JNIEnv* env, jobject obj, jobject data, jlong maxlen)
{
-static TTQCString* _qstring_data = 0;
- if (_qstring_data == 0) { _qstring_data = new TTQCString(); }
+static TQCString* _qstring_data = 0;
+ if (_qstring_data == 0) { _qstring_data = new TQCString(); }
_qstring_data->resize((uint) maxlen);
- jlong xret = (jlong) ((TTQHttp*) QtSupport::getQt(env, obj))->readBlock((char*) _qstring_data->data(), (Q_ULONG) maxlen);
+ jlong xret = (jlong) ((TQHttp*) QtSupport::getQt(env, obj))->readBlock((char*) _qstring_data->data(), (Q_ULONG) maxlen);
QtSupport::fromTQCStringToStringBuffer(env, _qstring_data, data);
return xret;
}
@@ -415,83 +415,83 @@ static TTQCString* _qstring_data = 0;
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_request__Lorg_kde_qt_QHttpRequestHeader_2(JNIEnv* env, jobject obj, jobject header)
{
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->request((const TTQHttpRequestHeader&)*(const TTQHttpRequestHeader*) QtSupport::getQt(env, header));
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->request((const TQHttpRequestHeader&)*(const TQHttpRequestHeader*) QtSupport::getQt(env, header));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_request__Lorg_kde_qt_QHttpRequestHeader_2Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject header, jobject device)
{
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->request((const TTQHttpRequestHeader&)*(const TTQHttpRequestHeader*) QtSupport::getQt(env, header), (TTQIODevice*) QtSupport::getQt(env, device));
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->request((const TQHttpRequestHeader&)*(const TQHttpRequestHeader*) QtSupport::getQt(env, header), (TQIODevice*) QtSupport::getQt(env, device));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_request__Lorg_kde_qt_QHttpRequestHeader_2Lorg_kde_qt_QIODeviceInterface_2Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject header, jobject device, jobject to)
{
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->request((const TTQHttpRequestHeader&)*(const TTQHttpRequestHeader*) QtSupport::getQt(env, header), (TTQIODevice*) QtSupport::getQt(env, device), (TTQIODevice*) QtSupport::getQt(env, to));
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->request((const TQHttpRequestHeader&)*(const TQHttpRequestHeader*) QtSupport::getQt(env, header), (TQIODevice*) QtSupport::getQt(env, device), (TQIODevice*) QtSupport::getQt(env, to));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_request__Lorg_kde_qt_QHttpRequestHeader_2_3B(JNIEnv* env, jobject obj, jobject header, jbyteArray data)
{
-static TTQByteArray* _qbyteArray_data = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->request((const TTQHttpRequestHeader&)*(const TTQHttpRequestHeader*) QtSupport::getQt(env, header), (const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
+static TQByteArray* _qbyteArray_data = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->request((const TQHttpRequestHeader&)*(const TQHttpRequestHeader*) QtSupport::getQt(env, header), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_request__Lorg_kde_qt_QHttpRequestHeader_2_3BLorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject header, jbyteArray data, jobject to)
{
-static TTQByteArray* _qbyteArray_data = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->request((const TTQHttpRequestHeader&)*(const TTQHttpRequestHeader*) QtSupport::getQt(env, header), (const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TTQIODevice*) QtSupport::getQt(env, to));
+static TQByteArray* _qbyteArray_data = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->request((const TQHttpRequestHeader&)*(const TQHttpRequestHeader*) QtSupport::getQt(env, header), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TQIODevice*) QtSupport::getQt(env, to));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_setHost__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring hostname)
{
-static TTQString* _qstring_hostname = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->setHost((const TTQString&)*(TTQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname));
+static TQString* _qstring_hostname = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->setHost((const TQString&)*(TQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_setHost__Ljava_lang_String_2S(JNIEnv* env, jobject obj, jstring hostname, jshort port)
{
-static TTQString* _qstring_hostname = 0;
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->setHost((const TTQString&)*(TTQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname), (Q_UINT16) port);
+static TQString* _qstring_hostname = 0;
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->setHost((const TQString&)*(TQString*) QtSupport::toTQString(env, hostname, &_qstring_hostname), (Q_UINT16) port);
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_state(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->state();
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->state();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttp_supportedOperations(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TTQHttp*) QtSupport::getQt(env, obj))->supportedOperations();
+ jint xret = (jint) ((TQHttp*) QtSupport::getQt(env, obj))->supportedOperations();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttp_timerEvent(JNIEnv* env, jobject obj, jobject arg1)
{
- ((TQHttpJBridge*) QtSupport::getQt(env, obj))->protected_timerEvent((TTQTimerEvent*) QtSupport::getQt(env, arg1));
+ ((TQHttpJBridge*) QtSupport::getQt(env, obj))->protected_timerEvent((TQTimerEvent*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QHttp_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
- TTQString _qstring;
+ TQString _qstring;
(void) cls;
-static TTQCString* _qstring_arg1 = 0;
+static TQCString* _qstring_arg1 = 0;
_qstring = TQHttpJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return QtSupport::fromTQString(env, &_qstring);
}
@@ -499,10 +499,10 @@ static TTQCString* _qstring_arg1 = 0;
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QHttp_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
- TTQString _qstring;
+ TQString _qstring;
(void) cls;
-static TTQCString* _qstring_arg1 = 0;
-static TTQCString* _qstring_arg2 = 0;
+static TQCString* _qstring_arg1 = 0;
+static TQCString* _qstring_arg2 = 0;
_qstring = TQHttpJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
return QtSupport::fromTQString(env, &_qstring);
}