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/TQSettings.cpp

360 lines
16 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqsettings.h>
#include <qtjava/QtSupport.h>
#include <qtjava/TQSettings.h>
class TQSettingsJBridge : public TQSettings
{
public:
TQSettingsJBridge() : TQSettings() {};
TQSettingsJBridge(TQSettings::Format arg1) : TQSettings(arg1) {};
~TQSettingsJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_beginGroup(JNIEnv* env, jobject obj, jstring group)
{
static TQString* _qstring_group = 0;
((TQSettings*) QtSupport::getQt(env, obj))->beginGroup((const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_dispose(JNIEnv* env, jobject obj)
{
Java_org_trinitydesktop_qt_QSettings_finalize(env, obj);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_endGroup(JNIEnv* env, jobject obj)
{
((TQSettings*) QtSupport::getQt(env, obj))->endGroup();
return;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSettings_entryList(JNIEnv* env, jobject obj, jstring arg1)
{
TQStringList _qlist;
static TQString* _qstring_arg1 = 0;
_qlist = ((TQSettings*) QtSupport::getQt(env, obj))->entryList((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj)) {
delete (TQSettings*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSettings_group(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((TQSettings*) QtSupport::getQt(env, obj))->group();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_insertSearchPath(JNIEnv* env, jobject obj, jint arg1, jstring arg2)
{
static TQString* _qstring_arg2 = 0;
((TQSettings*) QtSupport::getQt(env, obj))->insertSearchPath((TQSettings::System) arg1, (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
return;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_newTQSettings__(JNIEnv* env, jobject obj)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQSettingsJBridge());
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_newTQSettings__I(JNIEnv* env, jobject obj, jint format)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQSettingsJBridge((TQSettings::Format) format));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_readBoolEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->readBoolEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_readBoolEntry__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring arg1, jboolean def)
{
static TQString* _qstring_arg1 = 0;
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->readBoolEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (bool) def);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_readBoolEntry__Ljava_lang_String_2Z_3Z(JNIEnv* env, jobject obj, jstring arg1, jboolean def, jbooleanArray arg3)
{
static TQString* _qstring_arg1 = 0;
bool* _bool_arg3 = QtSupport::toBooleanPtr(env, arg3);
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->readBoolEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (bool) def, (bool*) _bool_arg3);
env->SetBooleanArrayRegion(arg3, 0, 1, (jboolean*) _bool_arg3);
return xret;
}
JNIEXPORT jdouble JNICALL
Java_org_trinitydesktop_qt_QSettings_readDoubleEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
jdouble xret = (jdouble) ((TQSettings*) QtSupport::getQt(env, obj))->readDoubleEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return xret;
}
JNIEXPORT jdouble JNICALL
Java_org_trinitydesktop_qt_QSettings_readDoubleEntry__Ljava_lang_String_2D(JNIEnv* env, jobject obj, jstring arg1, jdouble def)
{
static TQString* _qstring_arg1 = 0;
jdouble xret = (jdouble) ((TQSettings*) QtSupport::getQt(env, obj))->readDoubleEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (double) def);
return xret;
}
JNIEXPORT jdouble JNICALL
Java_org_trinitydesktop_qt_QSettings_readDoubleEntry__Ljava_lang_String_2D_3Z(JNIEnv* env, jobject obj, jstring arg1, jdouble def, jbooleanArray arg3)
{
static TQString* _qstring_arg1 = 0;
bool* _bool_arg3 = QtSupport::toBooleanPtr(env, arg3);
jdouble xret = (jdouble) ((TQSettings*) QtSupport::getQt(env, obj))->readDoubleEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (double) def, (bool*) _bool_arg3);
env->SetBooleanArrayRegion(arg3, 0, 1, (jboolean*) _bool_arg3);
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSettings_readEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
TQString _qstring;
static TQString* _qstring_arg1 = 0;
_qstring = ((TQSettings*) QtSupport::getQt(env, obj))->readEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSettings_readEntry__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring def)
{
TQString _qstring;
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_def = 0;
_qstring = ((TQSettings*) QtSupport::getQt(env, obj))->readEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, def, &_qstring_def));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSettings_readEntry__Ljava_lang_String_2Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring arg1, jstring def, jbooleanArray arg3)
{
TQString _qstring;
static TQString* _qstring_arg1 = 0;
static TQString* _qstring_def = 0;
bool* _bool_arg3 = QtSupport::toBooleanPtr(env, arg3);
_qstring = ((TQSettings*) QtSupport::getQt(env, obj))->readEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, def, &_qstring_def), (bool*) _bool_arg3);
env->SetBooleanArrayRegion(arg3, 0, 1, (jboolean*) _bool_arg3);
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSettings_readListEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
TQStringList _qlist;
static TQString* _qstring_arg1 = 0;
_qlist = ((TQSettings*) QtSupport::getQt(env, obj))->readListEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSettings_readListEntry__Ljava_lang_String_2C(JNIEnv* env, jobject obj, jstring arg1, jchar sep)
{
TQStringList _qlist;
static TQString* _qstring_arg1 = 0;
static TQChar* _qchar_sep = 0;
_qlist = ((TQSettings*) QtSupport::getQt(env, obj))->readListEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQChar&)*(TQChar*) QtSupport::toTQChar(env, sep, &_qchar_sep));
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSettings_readListEntry__Ljava_lang_String_2C_3Z(JNIEnv* env, jobject obj, jstring arg1, jchar sep, jbooleanArray arg3)
{
TQStringList _qlist;
static TQString* _qstring_arg1 = 0;
static TQChar* _qchar_sep = 0;
bool* _bool_arg3 = QtSupport::toBooleanPtr(env, arg3);
_qlist = ((TQSettings*) QtSupport::getQt(env, obj))->readListEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQChar&)*(TQChar*) QtSupport::toTQChar(env, sep, &_qchar_sep), (bool*) _bool_arg3);
env->SetBooleanArrayRegion(arg3, 0, 1, (jboolean*) _bool_arg3);
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSettings_readListEntry__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring arg1, jbooleanArray arg2)
{
TQStringList _qlist;
static TQString* _qstring_arg1 = 0;
bool* _bool_arg2 = QtSupport::toBooleanPtr(env, arg2);
_qlist = ((TQSettings*) QtSupport::getQt(env, obj))->readListEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (bool*) _bool_arg2);
env->SetBooleanArrayRegion(arg2, 0, 1, (jboolean*) _bool_arg2);
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSettings_readNumEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
jint xret = (jint) ((TQSettings*) QtSupport::getQt(env, obj))->readNumEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSettings_readNumEntry__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jint def)
{
static TQString* _qstring_arg1 = 0;
jint xret = (jint) ((TQSettings*) QtSupport::getQt(env, obj))->readNumEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (int) def);
return xret;
}
JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSettings_readNumEntry__Ljava_lang_String_2I_3Z(JNIEnv* env, jobject obj, jstring arg1, jint def, jbooleanArray arg3)
{
static TQString* _qstring_arg1 = 0;
bool* _bool_arg3 = QtSupport::toBooleanPtr(env, arg3);
jint xret = (jint) ((TQSettings*) QtSupport::getQt(env, obj))->readNumEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (int) def, (bool*) _bool_arg3);
env->SetBooleanArrayRegion(arg3, 0, 1, (jboolean*) _bool_arg3);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_removeEntry(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->removeEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_removeSearchPath(JNIEnv* env, jobject obj, jint arg1, jstring arg2)
{
static TQString* _qstring_arg2 = 0;
((TQSettings*) QtSupport::getQt(env, obj))->removeSearchPath((TQSettings::System) arg1, (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_resetGroup(JNIEnv* env, jobject obj)
{
((TQSettings*) QtSupport::getQt(env, obj))->resetGroup();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_setPath__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring domain, jstring product)
{
static TQString* _qstring_domain = 0;
static TQString* _qstring_product = 0;
((TQSettings*) QtSupport::getQt(env, obj))->setPath((const TQString&)*(TQString*) QtSupport::toTQString(env, domain, &_qstring_domain), (const TQString&)*(TQString*) QtSupport::toTQString(env, product, &_qstring_product));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSettings_setPath__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring domain, jstring product, jint arg3)
{
static TQString* _qstring_domain = 0;
static TQString* _qstring_product = 0;
((TQSettings*) QtSupport::getQt(env, obj))->setPath((const TQString&)*(TQString*) QtSupport::toTQString(env, domain, &_qstring_domain), (const TQString&)*(TQString*) QtSupport::toTQString(env, product, &_qstring_product), (TQSettings::Scope) arg3);
return;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSettings_subkeyList(JNIEnv* env, jobject obj, jstring arg1)
{
TQStringList _qlist;
static TQString* _qstring_arg1 = 0;
_qlist = ((TQSettings*) QtSupport::getQt(env, obj))->subkeyList((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_sync(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->sync();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_writeEntry__Ljava_lang_String_2D(JNIEnv* env, jobject obj, jstring arg1, jdouble arg2)
{
static TQString* _qstring_arg1 = 0;
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->writeEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (double) arg2);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_writeEntry__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jint arg2)
{
static TQString* _qstring_arg1 = 0;
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->writeEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (int) arg2);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_writeEntry__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static TQString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->writeEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_writeEntry__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring arg1, jboolean arg2)
{
static TQString* _qstring_arg1 = 0;
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->writeEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (bool) arg2);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_writeEntry__Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jobjectArray arg2)
{
static TQString* _qstring_arg1 = 0;
static TQStringList* _qlist_arg2 = 0;
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->writeEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, arg2, &_qlist_arg2));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSettings_writeEntry__Ljava_lang_String_2_3Ljava_lang_String_2C(JNIEnv* env, jobject obj, jstring arg1, jobjectArray arg2, jchar sep)
{
static TQString* _qstring_arg1 = 0;
static TQStringList* _qlist_arg2 = 0;
static TQChar* _qchar_sep = 0;
jboolean xret = (jboolean) ((TQSettings*) QtSupport::getQt(env, obj))->writeEntry((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, arg2, &_qlist_arg2), (const TQChar&)*(TQChar*) QtSupport::toTQChar(env, sep, &_qchar_sep));
return xret;
}