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.
106 lines
3.1 KiB
106 lines
3.1 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
#include <kemailsettings.h>
|
|
#include <tqstring.h>
|
|
#include <tqstringlist.h>
|
|
|
|
#include <qtjava/QtSupport.h>
|
|
#include <kdejava/KDESupport.h>
|
|
#include <kdejava/KEMailSettings.h>
|
|
|
|
class KEMailSettingsJBridge : public KEMailSettings
|
|
{
|
|
public:
|
|
KEMailSettingsJBridge() : KEMailSettings() {};
|
|
~KEMailSettingsJBridge() {QtSupport::qtKeyDeleted(this);}
|
|
};
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_koala_KEMailSettings_currentProfileName(JNIEnv* env, jobject obj)
|
|
{
|
|
TQString _qstring;
|
|
_qstring = ((KEMailSettings*) QtSupport::getQt(env, obj))->currentProfileName();
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_koala_KEMailSettings_defaultProfileName(JNIEnv* env, jobject obj)
|
|
{
|
|
TQString _qstring;
|
|
_qstring = ((KEMailSettings*) QtSupport::getQt(env, obj))->defaultProfileName();
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KEMailSettings_dispose(JNIEnv* env, jobject obj)
|
|
{
|
|
Java_org_kde_koala_KEMailSettings_finalize(env, obj);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KEMailSettings_finalize(JNIEnv* env, jobject obj)
|
|
{
|
|
if (QtSupport::allocatedInJavaWorld(env, obj)) {
|
|
delete (KEMailSettings*)QtSupport::getQt(env, obj);
|
|
QtSupport::setQt(env, obj, 0);
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_koala_KEMailSettings_getSetting(JNIEnv* env, jobject obj, jint s)
|
|
{
|
|
TQString _qstring;
|
|
_qstring = ((KEMailSettings*) QtSupport::getQt(env, obj))->getSetting((KEMailSettings::Setting) s);
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_koala_KEMailSettings_isDisposed(JNIEnv* env, jobject obj)
|
|
{
|
|
return (QtSupport::getQt(env, obj) == 0);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KEMailSettings_newKEMailSettings(JNIEnv* env, jobject obj)
|
|
{
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new KEMailSettingsJBridge());
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KEMailSettings_profiles(JNIEnv* env, jobject obj)
|
|
{
|
|
TQStringList _qlist;
|
|
_qlist = ((KEMailSettings*) QtSupport::getQt(env, obj))->profiles();
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KEMailSettings_setDefault(JNIEnv* env, jobject obj, jstring def)
|
|
{
|
|
static TQString* _qstring_def = 0;
|
|
((KEMailSettings*) QtSupport::getQt(env, obj))->setDefault((const TQString&)*(TQString*) QtSupport::toTQString(env, def, &_qstring_def));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KEMailSettings_setProfile(JNIEnv* env, jobject obj, jstring s)
|
|
{
|
|
static TQString* _qstring_s = 0;
|
|
((KEMailSettings*) QtSupport::getQt(env, obj))->setProfile((const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KEMailSettings_setSetting(JNIEnv* env, jobject obj, jint s, jstring v)
|
|
{
|
|
static TQString* _qstring_v = 0;
|
|
((KEMailSettings*) QtSupport::getQt(env, obj))->setSetting((KEMailSettings::Setting) s, (const TQString&)*(TQString*) QtSupport::toTQString(env, v, &_qstring_v));
|
|
return;
|
|
}
|
|
|