|
|
|
@ -6,469 +6,469 @@
|
|
|
|
|
|
|
|
|
|
#include <qtjava/QtSupport.h>
|
|
|
|
|
#include <kdejava/KDESupport.h>
|
|
|
|
|
#include <kdejava/KStandardDirs.h>
|
|
|
|
|
#include <kdejava/TDEStandardDirs.h>
|
|
|
|
|
|
|
|
|
|
class KStandardDirsJBridge : public KStandardDirs
|
|
|
|
|
class TDEStandardDirsJBridge : public TDEStandardDirs
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
KStandardDirsJBridge() : KStandardDirs() {};
|
|
|
|
|
~KStandardDirsJBridge() {QtSupport::qtKeyDeleted(this);}
|
|
|
|
|
TDEStandardDirsJBridge() : TDEStandardDirs() {};
|
|
|
|
|
~TDEStandardDirsJBridge() {QtSupport::qtKeyDeleted(this);}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_addCustomized(JNIEnv* env, jobject obj, jobject config)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_addCustomized(JNIEnv* env, jobject obj, jobject config)
|
|
|
|
|
{
|
|
|
|
|
jboolean xret = (jboolean) ((KStandardDirs*) QtSupport::getQt(env, obj))->addCustomized((TDEConfig*) QtSupport::getQt(env, config));
|
|
|
|
|
jboolean xret = (jboolean) ((TDEStandardDirs*) QtSupport::getQt(env, obj))->addCustomized((TDEConfig*) QtSupport::getQt(env, config));
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_addKDEDefaults(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_addKDEDefaults(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
((KStandardDirs*) QtSupport::getQt(env, obj))->addKDEDefaults();
|
|
|
|
|
((TDEStandardDirs*) QtSupport::getQt(env, obj))->addKDEDefaults();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_addPrefix(JNIEnv* env, jobject obj, jstring dir)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_addPrefix(JNIEnv* env, jobject obj, jstring dir)
|
|
|
|
|
{
|
|
|
|
|
static TQString* _qstring_dir = 0;
|
|
|
|
|
((KStandardDirs*) QtSupport::getQt(env, obj))->addPrefix((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir));
|
|
|
|
|
((TDEStandardDirs*) QtSupport::getQt(env, obj))->addPrefix((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_addResourceDir(JNIEnv* env, jobject obj, jstring type, jstring absdir)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_addResourceDir(JNIEnv* env, jobject obj, jstring type, jstring absdir)
|
|
|
|
|
{
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_absdir = 0;
|
|
|
|
|
jboolean xret = (jboolean) ((KStandardDirs*) QtSupport::getQt(env, obj))->addResourceDir((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, absdir, &_qstring_absdir));
|
|
|
|
|
jboolean xret = (jboolean) ((TDEStandardDirs*) QtSupport::getQt(env, obj))->addResourceDir((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, absdir, &_qstring_absdir));
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_addResourceType(JNIEnv* env, jobject obj, jstring type, jstring relativename)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_addResourceType(JNIEnv* env, jobject obj, jstring type, jstring relativename)
|
|
|
|
|
{
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_relativename = 0;
|
|
|
|
|
jboolean xret = (jboolean) ((KStandardDirs*) QtSupport::getQt(env, obj))->addResourceType((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, relativename, &_qstring_relativename));
|
|
|
|
|
jboolean xret = (jboolean) ((TDEStandardDirs*) QtSupport::getQt(env, obj))->addResourceType((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, relativename, &_qstring_relativename));
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_addXdgConfigPrefix(JNIEnv* env, jobject obj, jstring dir)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_addXdgConfigPrefix(JNIEnv* env, jobject obj, jstring dir)
|
|
|
|
|
{
|
|
|
|
|
static TQString* _qstring_dir = 0;
|
|
|
|
|
((KStandardDirs*) QtSupport::getQt(env, obj))->addXdgConfigPrefix((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir));
|
|
|
|
|
((TDEStandardDirs*) QtSupport::getQt(env, obj))->addXdgConfigPrefix((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_addXdgDataPrefix(JNIEnv* env, jobject obj, jstring dir)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_addXdgDataPrefix(JNIEnv* env, jobject obj, jstring dir)
|
|
|
|
|
{
|
|
|
|
|
static TQString* _qstring_dir = 0;
|
|
|
|
|
((KStandardDirs*) QtSupport::getQt(env, obj))->addXdgDataPrefix((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir));
|
|
|
|
|
((TDEStandardDirs*) QtSupport::getQt(env, obj))->addXdgDataPrefix((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_allTypes(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_allTypes(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
TQStringList _qlist;
|
|
|
|
|
_qlist = ((KStandardDirs*) QtSupport::getQt(env, obj))->allTypes();
|
|
|
|
|
_qlist = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->allTypes();
|
|
|
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jint JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_calcResourceHash(JNIEnv* env, jobject obj, jstring type, jstring filename, jboolean deep)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_calcResourceHash(JNIEnv* env, jobject obj, jstring type, jstring filename, jboolean deep)
|
|
|
|
|
{
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_filename = 0;
|
|
|
|
|
jint xret = (jint) ((KStandardDirs*) QtSupport::getQt(env, obj))->calcResourceHash((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (bool) deep);
|
|
|
|
|
jint xret = (jint) ((TDEStandardDirs*) QtSupport::getQt(env, obj))->calcResourceHash((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (bool) deep);
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_dispose(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_dispose(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_finalize(env, obj);
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_finalize(env, obj);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_exists(JNIEnv* env, jclass cls, jstring fullPath)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_exists(JNIEnv* env, jclass cls, jstring fullPath)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQString* _qstring_fullPath = 0;
|
|
|
|
|
jboolean xret = (jboolean) KStandardDirsJBridge::exists((const TQString&)*(TQString*) QtSupport::toTQString(env, fullPath, &_qstring_fullPath));
|
|
|
|
|
jboolean xret = (jboolean) TDEStandardDirsJBridge::exists((const TQString&)*(TQString*) QtSupport::toTQString(env, fullPath, &_qstring_fullPath));
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_finalize(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_finalize(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
if (QtSupport::allocatedInJavaWorld(env, obj)) {
|
|
|
|
|
delete (KStandardDirs*)QtSupport::getQt(env, obj);
|
|
|
|
|
delete (TDEStandardDirs*)QtSupport::getQt(env, obj);
|
|
|
|
|
QtSupport::setQt(env, obj, 0);
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jint JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findAllExe___3Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray list, jstring appname)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findAllExe___3Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray list, jstring appname)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQStringList* _qlist_list = 0;
|
|
|
|
|
static TQString* _qstring_appname = 0;
|
|
|
|
|
jint xret = (jint) KStandardDirsJBridge::findAllExe((TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list), (const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname));
|
|
|
|
|
jint xret = (jint) TDEStandardDirsJBridge::findAllExe((TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list), (const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname));
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jint JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findAllExe___3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray list, jstring appname, jstring pathstr)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findAllExe___3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray list, jstring appname, jstring pathstr)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQStringList* _qlist_list = 0;
|
|
|
|
|
static TQString* _qstring_appname = 0;
|
|
|
|
|
static TQString* _qstring_pathstr = 0;
|
|
|
|
|
jint xret = (jint) KStandardDirsJBridge::findAllExe((TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list), (const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname), (const TQString&)*(TQString*) QtSupport::toTQString(env, pathstr, &_qstring_pathstr));
|
|
|
|
|
jint xret = (jint) TDEStandardDirsJBridge::findAllExe((TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list), (const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname), (const TQString&)*(TQString*) QtSupport::toTQString(env, pathstr, &_qstring_pathstr));
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jint JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findAllExe___3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jobjectArray list, jstring appname, jstring pathstr, jboolean ignoreExecBit)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findAllExe___3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jobjectArray list, jstring appname, jstring pathstr, jboolean ignoreExecBit)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQStringList* _qlist_list = 0;
|
|
|
|
|
static TQString* _qstring_appname = 0;
|
|
|
|
|
static TQString* _qstring_pathstr = 0;
|
|
|
|
|
jint xret = (jint) KStandardDirsJBridge::findAllExe((TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list), (const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname), (const TQString&)*(TQString*) QtSupport::toTQString(env, pathstr, &_qstring_pathstr), (bool) ignoreExecBit);
|
|
|
|
|
jint xret = (jint) TDEStandardDirsJBridge::findAllExe((TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list), (const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname), (const TQString&)*(TQString*) QtSupport::toTQString(env, pathstr, &_qstring_pathstr), (bool) ignoreExecBit);
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findAllResources__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findAllResources__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type)
|
|
|
|
|
{
|
|
|
|
|
TQStringList _qlist;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
_qlist = ((KStandardDirs*) QtSupport::getQt(env, obj))->findAllResources((const char*) QtSupport::toCharString(env, type, &_qstring_type));
|
|
|
|
|
_qlist = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->findAllResources((const char*) QtSupport::toCharString(env, type, &_qstring_type));
|
|
|
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findAllResources__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring filter)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findAllResources__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring filter)
|
|
|
|
|
{
|
|
|
|
|
TQStringList _qlist;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_filter = 0;
|
|
|
|
|
_qlist = ((KStandardDirs*) QtSupport::getQt(env, obj))->findAllResources((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter));
|
|
|
|
|
_qlist = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->findAllResources((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter));
|
|
|
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findAllResources__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring type, jstring filter, jboolean recursive)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findAllResources__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring type, jstring filter, jboolean recursive)
|
|
|
|
|
{
|
|
|
|
|
TQStringList _qlist;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_filter = 0;
|
|
|
|
|
_qlist = ((KStandardDirs*) QtSupport::getQt(env, obj))->findAllResources((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (bool) recursive);
|
|
|
|
|
_qlist = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->findAllResources((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (bool) recursive);
|
|
|
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findAllResources__Ljava_lang_String_2Ljava_lang_String_2ZZ(JNIEnv* env, jobject obj, jstring type, jstring filter, jboolean recursive, jboolean unique)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findAllResources__Ljava_lang_String_2Ljava_lang_String_2ZZ(JNIEnv* env, jobject obj, jstring type, jstring filter, jboolean recursive, jboolean unique)
|
|
|
|
|
{
|
|
|
|
|
TQStringList _qlist;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_filter = 0;
|
|
|
|
|
_qlist = ((KStandardDirs*) QtSupport::getQt(env, obj))->findAllResources((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (bool) recursive, (bool) unique);
|
|
|
|
|
_qlist = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->findAllResources((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (bool) recursive, (bool) unique);
|
|
|
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findAllResources__Ljava_lang_String_2Ljava_lang_String_2ZZ_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring filter, jboolean recursive, jboolean unique, jobjectArray relPaths)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findAllResources__Ljava_lang_String_2Ljava_lang_String_2ZZ_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring filter, jboolean recursive, jboolean unique, jobjectArray relPaths)
|
|
|
|
|
{
|
|
|
|
|
TQStringList _qlist;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_filter = 0;
|
|
|
|
|
static TQStringList* _qlist_relPaths = 0;
|
|
|
|
|
_qlist = ((KStandardDirs*) QtSupport::getQt(env, obj))->findAllResources((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (bool) recursive, (bool) unique, (TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, relPaths, &_qlist_relPaths));
|
|
|
|
|
_qlist = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->findAllResources((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (bool) recursive, (bool) unique, (TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, relPaths, &_qlist_relPaths));
|
|
|
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findDirs(JNIEnv* env, jobject obj, jstring type, jstring reldir)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findDirs(JNIEnv* env, jobject obj, jstring type, jstring reldir)
|
|
|
|
|
{
|
|
|
|
|
TQStringList _qlist;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_reldir = 0;
|
|
|
|
|
_qlist = ((KStandardDirs*) QtSupport::getQt(env, obj))->findDirs((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, reldir, &_qstring_reldir));
|
|
|
|
|
_qlist = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->findDirs((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, reldir, &_qstring_reldir));
|
|
|
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findExe__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring appname)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findExe__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring appname)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQString* _qstring_appname = 0;
|
|
|
|
|
_qstring = KStandardDirsJBridge::findExe((const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname));
|
|
|
|
|
_qstring = TDEStandardDirsJBridge::findExe((const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname));
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findExe__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring appname, jstring pathstr)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findExe__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring appname, jstring pathstr)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQString* _qstring_appname = 0;
|
|
|
|
|
static TQString* _qstring_pathstr = 0;
|
|
|
|
|
_qstring = KStandardDirsJBridge::findExe((const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname), (const TQString&)*(TQString*) QtSupport::toTQString(env, pathstr, &_qstring_pathstr));
|
|
|
|
|
_qstring = TDEStandardDirsJBridge::findExe((const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname), (const TQString&)*(TQString*) QtSupport::toTQString(env, pathstr, &_qstring_pathstr));
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findExe__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring appname, jstring pathstr, jboolean ignoreExecBit)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findExe__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring appname, jstring pathstr, jboolean ignoreExecBit)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQString* _qstring_appname = 0;
|
|
|
|
|
static TQString* _qstring_pathstr = 0;
|
|
|
|
|
_qstring = KStandardDirsJBridge::findExe((const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname), (const TQString&)*(TQString*) QtSupport::toTQString(env, pathstr, &_qstring_pathstr), (bool) ignoreExecBit);
|
|
|
|
|
_qstring = TDEStandardDirsJBridge::findExe((const TQString&)*(TQString*) QtSupport::toTQString(env, appname, &_qstring_appname), (const TQString&)*(TQString*) QtSupport::toTQString(env, pathstr, &_qstring_pathstr), (bool) ignoreExecBit);
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findResourceDir(JNIEnv* env, jobject obj, jstring type, jstring filename)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findResourceDir(JNIEnv* env, jobject obj, jstring type, jstring filename)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_filename = 0;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->findResourceDir((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->findResourceDir((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_findResource(JNIEnv* env, jobject obj, jstring type, jstring filename)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_findResource(JNIEnv* env, jobject obj, jstring type, jstring filename)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_filename = 0;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->findResource((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->findResource((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_isDisposed(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_isDisposed(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
return (QtSupport::getQt(env, obj) == 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_isRestrictedResource__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_isRestrictedResource__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type)
|
|
|
|
|
{
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
jboolean xret = (jboolean) ((KStandardDirs*) QtSupport::getQt(env, obj))->isRestrictedResource((const char*) QtSupport::toCharString(env, type, &_qstring_type));
|
|
|
|
|
jboolean xret = (jboolean) ((TDEStandardDirs*) QtSupport::getQt(env, obj))->isRestrictedResource((const char*) QtSupport::toCharString(env, type, &_qstring_type));
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_isRestrictedResource__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring relPath)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_isRestrictedResource__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring relPath)
|
|
|
|
|
{
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_relPath = 0;
|
|
|
|
|
jboolean xret = (jboolean) ((KStandardDirs*) QtSupport::getQt(env, obj))->isRestrictedResource((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, relPath, &_qstring_relPath));
|
|
|
|
|
jboolean xret = (jboolean) ((TDEStandardDirs*) QtSupport::getQt(env, obj))->isRestrictedResource((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, relPath, &_qstring_relPath));
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_kde_1default(JNIEnv* env, jclass cls, jstring type)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_kde_1default(JNIEnv* env, jclass cls, jstring type)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
_qstring = KStandardDirsJBridge::kde_default((const char*) QtSupport::toCharString(env, type, &_qstring_type));
|
|
|
|
|
_qstring = TDEStandardDirsJBridge::kde_default((const char*) QtSupport::toCharString(env, type, &_qstring_type));
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_kfsstnd_1defaultbindir(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_kfsstnd_1defaultbindir(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
(void) cls;
|
|
|
|
|
_qstring = KStandardDirsJBridge::kfsstnd_defaultbindir();
|
|
|
|
|
_qstring = TDEStandardDirsJBridge::kfsstnd_defaultbindir();
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_kfsstnd_1defaultprefix(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_kfsstnd_1defaultprefix(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
(void) cls;
|
|
|
|
|
_qstring = KStandardDirsJBridge::kfsstnd_defaultprefix();
|
|
|
|
|
_qstring = TDEStandardDirsJBridge::kfsstnd_defaultprefix();
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_kfsstnd_1prefixes(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_kfsstnd_1prefixes(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->kfsstnd_prefixes();
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->kfsstnd_prefixes();
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_kfsstnd_1xdg_1conf_1prefixes(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_kfsstnd_1xdg_1conf_1prefixes(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->kfsstnd_xdg_conf_prefixes();
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->kfsstnd_xdg_conf_prefixes();
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_kfsstnd_1xdg_1data_1prefixes(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_kfsstnd_1xdg_1data_1prefixes(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->kfsstnd_xdg_data_prefixes();
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->kfsstnd_xdg_data_prefixes();
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_localtdedir(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_localtdedir(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->localtdedir();
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->localtdedir();
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_localxdgconfdir(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_localxdgconfdir(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->localxdgconfdir();
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->localxdgconfdir();
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_localxdgdatadir(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_localxdgdatadir(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->localxdgdatadir();
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->localxdgdatadir();
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_makeDir__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring dir)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_makeDir__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring dir)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQString* _qstring_dir = 0;
|
|
|
|
|
jboolean xret = (jboolean) KStandardDirsJBridge::makeDir((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir));
|
|
|
|
|
jboolean xret = (jboolean) TDEStandardDirsJBridge::makeDir((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir));
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_makeDir__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring dir, jint mode)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_makeDir__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring dir, jint mode)
|
|
|
|
|
{
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQString* _qstring_dir = 0;
|
|
|
|
|
jboolean xret = (jboolean) KStandardDirsJBridge::makeDir((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir), (int) mode);
|
|
|
|
|
jboolean xret = (jboolean) TDEStandardDirsJBridge::makeDir((const TQString&)*(TQString*) QtSupport::toTQString(env, dir, &_qstring_dir), (int) mode);
|
|
|
|
|
return xret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_newKStandardDirs(JNIEnv* env, jobject obj)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_newTDEStandardDirs(JNIEnv* env, jobject obj)
|
|
|
|
|
{
|
|
|
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
|
|
|
QtSupport::setQt(env, obj, new KStandardDirsJBridge());
|
|
|
|
|
QtSupport::setQt(env, obj, new TDEStandardDirsJBridge());
|
|
|
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_realFilePath(JNIEnv* env, jclass cls, jstring filename)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_realFilePath(JNIEnv* env, jclass cls, jstring filename)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQString* _qstring_filename = 0;
|
|
|
|
|
_qstring = KStandardDirsJBridge::realFilePath((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
|
|
|
|
|
_qstring = TDEStandardDirsJBridge::realFilePath((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_realPath(JNIEnv* env, jclass cls, jstring dirname)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_realPath(JNIEnv* env, jclass cls, jstring dirname)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQString* _qstring_dirname = 0;
|
|
|
|
|
_qstring = KStandardDirsJBridge::realPath((const TQString&)*(TQString*) QtSupport::toTQString(env, dirname, &_qstring_dirname));
|
|
|
|
|
_qstring = TDEStandardDirsJBridge::realPath((const TQString&)*(TQString*) QtSupport::toTQString(env, dirname, &_qstring_dirname));
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_relativeLocation(JNIEnv* env, jobject obj, jstring type, jstring absPath)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_relativeLocation(JNIEnv* env, jobject obj, jstring type, jstring absPath)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_absPath = 0;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->relativeLocation((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, absPath, &_qstring_absPath));
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->relativeLocation((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, absPath, &_qstring_absPath));
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_resourceDirs(JNIEnv* env, jobject obj, jstring type)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_resourceDirs(JNIEnv* env, jobject obj, jstring type)
|
|
|
|
|
{
|
|
|
|
|
TQStringList _qlist;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
_qlist = ((KStandardDirs*) QtSupport::getQt(env, obj))->resourceDirs((const char*) QtSupport::toCharString(env, type, &_qstring_type));
|
|
|
|
|
_qlist = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->resourceDirs((const char*) QtSupport::toCharString(env, type, &_qstring_type));
|
|
|
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_saveLocation__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_saveLocation__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->saveLocation((const char*) QtSupport::toCharString(env, type, &_qstring_type));
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->saveLocation((const char*) QtSupport::toCharString(env, type, &_qstring_type));
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_saveLocation__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring suffix)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_saveLocation__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring suffix)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_suffix = 0;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->saveLocation((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, suffix, &_qstring_suffix));
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->saveLocation((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, suffix, &_qstring_suffix));
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_saveLocation__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring type, jstring suffix, jboolean create)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_saveLocation__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring type, jstring suffix, jboolean create)
|
|
|
|
|
{
|
|
|
|
|
TQString _qstring;
|
|
|
|
|
static TQCString* _qstring_type = 0;
|
|
|
|
|
static TQString* _qstring_suffix = 0;
|
|
|
|
|
_qstring = ((KStandardDirs*) QtSupport::getQt(env, obj))->saveLocation((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, suffix, &_qstring_suffix), (bool) create);
|
|
|
|
|
_qstring = ((TDEStandardDirs*) QtSupport::getQt(env, obj))->saveLocation((const char*) QtSupport::toCharString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, suffix, &_qstring_suffix), (bool) create);
|
|
|
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_systemPaths__(JNIEnv* env, jclass cls)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_systemPaths__(JNIEnv* env, jclass cls)
|
|
|
|
|
{
|
|
|
|
|
TQStringList _qlist;
|
|
|
|
|
(void) cls;
|
|
|
|
|
_qlist = KStandardDirsJBridge::systemPaths();
|
|
|
|
|
_qlist = TDEStandardDirsJBridge::systemPaths();
|
|
|
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
|
|
|
Java_org_kde_koala_KStandardDirs_systemPaths__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring pstr)
|
|
|
|
|
Java_org_kde_koala_TDEStandardDirs_systemPaths__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring pstr)
|
|
|
|
|
{
|
|
|
|
|
TQStringList _qlist;
|
|
|
|
|
(void) cls;
|
|
|
|
|
static TQString* _qstring_pstr = 0;
|
|
|
|
|
_qlist = KStandardDirsJBridge::systemPaths((const TQString&)*(TQString*) QtSupport::toTQString(env, pstr, &_qstring_pstr));
|
|
|
|
|
_qlist = TDEStandardDirsJBridge::systemPaths((const TQString&)*(TQString*) QtSupport::toTQString(env, pstr, &_qstring_pstr));
|
|
|
|
|
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|