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

167 lines
5.9 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqsessionmanager.h>
#include <qtjava/QtSupport.h>
#include <qtjava/TQSessionManager.h>
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSessionManager_allowsErrorInteraction(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQSessionManager*) QtSupport::getQt(env, obj))->allowsErrorInteraction();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSessionManager_allowsInteraction(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQSessionManager*) QtSupport::getQt(env, obj))->allowsInteraction();
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSessionManager_cancel(JNIEnv* env, jobject obj)
{
((TQSessionManager*) QtSupport::getQt(env, obj))->cancel();
return;
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSessionManager_className(JNIEnv* env, jobject obj)
{
const char* _qstring;
_qstring = ((TQSessionManager*) QtSupport::getQt(env, obj))->className();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSessionManager_discardCommand(JNIEnv* env, jobject obj)
{
TQStringList _qlist;
_qlist = ((TQSessionManager*) QtSupport::getQt(env, obj))->discardCommand();
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSessionManager_isPhase2(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQSessionManager*) QtSupport::getQt(env, obj))->isPhase2();
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSessionManager_metaObject(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSessionManager*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSessionManager_release(JNIEnv* env, jobject obj)
{
((TQSessionManager*) QtSupport::getQt(env, obj))->release();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSessionManager_requestPhase2(JNIEnv* env, jobject obj)
{
((TQSessionManager*) QtSupport::getQt(env, obj))->requestPhase2();
return;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSessionManager_restartCommand(JNIEnv* env, jobject obj)
{
TQStringList _qlist;
_qlist = ((TQSessionManager*) QtSupport::getQt(env, obj))->restartCommand();
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSessionManager_restartHint(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TQSessionManager*) QtSupport::getQt(env, obj))->restartHint();
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSessionManager_sessionId(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((TQSessionManager*) QtSupport::getQt(env, obj))->sessionId();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSessionManager_sessionKey(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((TQSessionManager*) QtSupport::getQt(env, obj))->sessionKey();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSessionManager_setDiscardCommand(JNIEnv* env, jobject obj, jobjectArray arg1)
{
static TQStringList* _qlist_arg1 = 0;
((TQSessionManager*) QtSupport::getQt(env, obj))->setDiscardCommand((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, arg1, &_qlist_arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSessionManager_setManagerProperty__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring value)
{
static TQString* _qstring_name = 0;
static TQString* _qstring_value = 0;
((TQSessionManager*) QtSupport::getQt(env, obj))->setManagerProperty((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, value, &_qstring_value));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSessionManager_setManagerProperty__Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jobjectArray value)
{
static TQString* _qstring_name = 0;
static TQStringList* _qlist_value = 0;
((TQSessionManager*) QtSupport::getQt(env, obj))->setManagerProperty((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, value, &_qlist_value));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSessionManager_setRestartCommand(JNIEnv* env, jobject obj, jobjectArray arg1)
{
static TQStringList* _qlist_arg1 = 0;
((TQSessionManager*) QtSupport::getQt(env, obj))->setRestartCommand((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, arg1, &_qlist_arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSessionManager_setRestartHint(JNIEnv* env, jobject obj, jint arg1)
{
((TQSessionManager*) QtSupport::getQt(env, obj))->setRestartHint((TQSessionManager::RestartHint) arg1);
return;
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSessionManager_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
TQString _qstring;
(void) cls;
static TQCString* _qstring_arg1 = 0;
_qstring = TQSessionManager::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSessionManager_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 = TQSessionManager::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
return QtSupport::fromTQString(env, &_qstring);
}