You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/qtjava/javalib/qtjava/TQUriDrag.cpp

303 lines
11 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstrlist.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqdragobject.h>
#include <tqcstring.h>
#include <qtjava/QtSupport.h>
#include <qtjava/TQUriDrag.h>
class TQUriDragJBridge : public TQUriDrag
{
public:
TQUriDragJBridge(TQStrList arg1,TQWidget* arg2,const char* arg3) : TQUriDrag(arg1,arg2,arg3) {};
TQUriDragJBridge(TQStrList arg1,TQWidget* arg2) : TQUriDrag(arg1,arg2) {};
TQUriDragJBridge(TQStrList arg1) : TQUriDrag(arg1) {};
TQUriDragJBridge(TQWidget* arg1,const char* arg2) : TQUriDrag(arg1,arg2) {};
TQUriDragJBridge(TQWidget* arg1) : TQUriDrag(arg1) {};
TQUriDragJBridge() : TQUriDrag() {};
~TQUriDragJBridge() {QtSupport::qtKeyDeleted(this);}
void removeChild(TQObject* arg1) {
if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
TQObject::removeChild(arg1);
}
return;
}
void customEvent(TQCustomEvent* arg1) {
if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
TQObject::customEvent(arg1);
}
return;
}
void timerEvent(TQTimerEvent* arg1) {
if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
TQObject::timerEvent(arg1);
}
return;
}
void childEvent(TQChildEvent* arg1) {
if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
TQObject::childEvent(arg1);
}
return;
}
void insertChild(TQObject* arg1) {
if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
TQObject::insertChild(arg1);
}
return;
}
bool eventFilter(TQObject* object,TQEvent* event) {
if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.qt.TQUriDrag",object,event)) {
return TQObject::eventFilter(object,event);
} else {
return TRUE;
}
}
};
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUriDrag_canDecode(JNIEnv* env, jclass cls, jobject e)
{
(void) cls;
jboolean xret = (jboolean) TQUriDragJBridge::canDecode((const TQMimeSource*) QtSupport::mimeSource(env, e));
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QUriDrag_className(JNIEnv* env, jobject obj)
{
const char* _qstring;
_qstring = ((TQUriDrag*) QtSupport::getQt(env, obj))->className();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_dispose(JNIEnv* env, jobject obj)
{
Java_org_trinitydesktop_qt_QUriDrag_finalize(env, obj);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQUriDrag*)QtSupport::getQt(env, obj))->parent() == 0) {
delete (TQUriDrag*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUriDrag_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QUriDrag_localFileToUri(JNIEnv* env, jclass cls, jstring arg1)
{
TQCString _qstring;
(void) cls;
static TQString* _qstring_arg1 = 0;
_qstring = TQUriDragJBridge::localFileToUri((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return QtSupport::fromTQCString(env, &_qstring);
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QUriDrag_metaObject(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((TQUriDrag*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_newTQUriDrag__(JNIEnv* env, jobject obj)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQUriDragJBridge());
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_newTQUriDrag__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject dragSource)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQUriDragJBridge((TQWidget*) QtSupport::getQt(env, dragSource)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_newTQUriDrag__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject dragSource, jstring name)
{
static TQCString* _qstring_name = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQUriDragJBridge((TQWidget*) QtSupport::getQt(env, dragSource), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_newTQUriDrag___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray uris)
{
static TQStrList* _qlist_uris = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQUriDragJBridge((TQStrList)*(TQStrList*) QtSupport::toTQStrList(env, uris, &_qlist_uris)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_newTQUriDrag___3Ljava_lang_String_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobjectArray uris, jobject dragSource)
{
static TQStrList* _qlist_uris = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQUriDragJBridge((TQStrList)*(TQStrList*) QtSupport::toTQStrList(env, uris, &_qlist_uris), (TQWidget*) QtSupport::getQt(env, dragSource)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_newTQUriDrag___3Ljava_lang_String_2Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray uris, jobject dragSource, jstring name)
{
static TQStrList* _qlist_uris = 0;
static TQCString* _qstring_name = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQUriDragJBridge((TQStrList)*(TQStrList*) QtSupport::toTQStrList(env, uris, &_qlist_uris), (TQWidget*) QtSupport::getQt(env, dragSource), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_setFileNames(JNIEnv* env, jobject obj, jobjectArray fnames)
{
static TQStringList* _qlist_fnames = 0;
((TQUriDrag*) QtSupport::getQt(env, obj))->setFileNames((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, fnames, &_qlist_fnames));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_setFilenames(JNIEnv* env, jobject obj, jobjectArray fnames)
{
static TQStringList* _qlist_fnames = 0;
((TQUriDrag*) QtSupport::getQt(env, obj))->setFilenames((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, fnames, &_qlist_fnames));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_setUnicodeUris(JNIEnv* env, jobject obj, jobjectArray uuris)
{
static TQStringList* _qlist_uuris = 0;
((TQUriDrag*) QtSupport::getQt(env, obj))->setUnicodeUris((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, uuris, &_qlist_uuris));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUriDrag_setUris(JNIEnv* env, jobject obj, jobjectArray uris)
{
static TQStrList* _qlist_uris = 0;
((TQUriDrag*) QtSupport::getQt(env, obj))->setUris((TQStrList)*(TQStrList*) QtSupport::toTQStrList(env, uris, &_qlist_uris));
return;
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QUriDrag_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
TQString _qstring;
(void) cls;
static TQCString* _qstring_arg1 = 0;
_qstring = TQUriDragJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QUriDrag_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
TQString _qstring;
(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
_qstring = TQUriDragJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QUriDrag_unicodeUriToUri(JNIEnv* env, jclass cls, jstring arg1)
{
TQCString _qstring;
(void) cls;
static TQString* _qstring_arg1 = 0;
_qstring = TQUriDragJBridge::unicodeUriToUri((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return QtSupport::fromTQCString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QUriDrag_uriToLocalFile(JNIEnv* env, jclass cls, jstring arg1)
{
TQString _qstring;
(void) cls;
static TQCString* _qstring_arg1 = 0;
_qstring = TQUriDragJBridge::uriToLocalFile((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QUriDrag_uriToUnicodeUri(JNIEnv* env, jclass cls, jstring arg1)
{
TQString _qstring;
(void) cls;
static TQCString* _qstring_arg1 = 0;
_qstring = TQUriDragJBridge::uriToUnicodeUri((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUriDrag_decode(JNIEnv *env, jclass cls, jobject e, jobject i)
{
static TQStrList * _qlist_i = 0;
if (_qlist_i == 0) {
_qlist_i = new TQStrList();
}
(void) cls;
jboolean result = (jboolean) TQUriDragJBridge::decode(QtSupport::mimeSource(env, e), *_qlist_i);
QtSupport::arrayWithTQStrList(env, _qlist_i, i);
return result;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUriDrag_decodeToUnicodeUris(JNIEnv *env, jclass cls, jobject e, jobject i)
{
static TQStringList * _qlist_i = 0;
if (_qlist_i == 0) {
_qlist_i = new TQStringList();
}
(void) cls;
jboolean result = (jboolean) TQUriDragJBridge::decodeToUnicodeUris(QtSupport::mimeSource(env, e), *_qlist_i);
QtSupport::arrayWithTQStringList(env, _qlist_i, i);
return result;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUriDrag_decodeLocalFiles(JNIEnv *env, jclass cls, jobject e, jobject i)
{
static TQStringList * _qlist_i = 0;
if (_qlist_i == 0) {
_qlist_i = new TQStringList();
}
(void) cls;
jboolean result = (jboolean) TQUriDragJBridge::decodeLocalFiles(QtSupport::mimeSource(env, e), *_qlist_i);
QtSupport::arrayWithTQStringList(env, _qlist_i, i);
return result;
}