Use TDESimpleConfig

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/63/head
Michele Calgaro 2 weeks ago
parent 1450fdc10c
commit 6ab5882fca
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1137,8 +1137,8 @@ BEGIN
'TDEShortcuts' => 'tde_TDEShortcuts*', 'TDEShortcuts' => 'tde_TDEShortcuts*',
'TDEShortcuts*' => 'tde_TDEShortcuts*', 'TDEShortcuts*' => 'tde_TDEShortcuts*',
'KShred*' => 'tde_KShred*', 'KShred*' => 'tde_KShred*',
'KSimpleConfig&' => 'tde_KSimpleConfig*' , 'TDESimpleConfig&' => 'tde_TDESimpleConfig*' ,
'KSimpleConfig*' => 'tde_KSimpleConfig*', 'TDESimpleConfig*' => 'tde_TDESimpleConfig*',
'KSimpleFileFilter*' => 'tde_KSimpleFileFilter*', 'KSimpleFileFilter*' => 'tde_KSimpleFileFilter*',
'KSpell*' => 'tde_KSpell*', 'KSpell*' => 'tde_KSpell*',
'KSpellConfig&' => 'tde_KSpellConfig*' , 'KSpellConfig&' => 'tde_KSpellConfig*' ,

@ -33,7 +33,7 @@
#include <tdecmdlineargs.h> #include <tdecmdlineargs.h>
#include <tdeglobal.h> #include <tdeglobal.h>
#include <tdeconfig.h> #include <tdeconfig.h>
#include <ksimpleconfig.h> #include <tdesimpleconfig.h>
#include <tdestandarddirs.h> #include <tdestandarddirs.h>
#include <iostream> #include <iostream>
@ -843,7 +843,7 @@ int main( int argc, char **argv )
TQString baseName = args->url( 1 ).fileName(); TQString baseName = args->url( 1 ).fileName();
baseName = baseName.left(baseName.length() - 6); baseName = baseName.left(baseName.length() - 6);
KSimpleConfig codegenConfig( codegenFilename, true ); TDESimpleConfig codegenConfig( codegenFilename, true );
TQString nameSpace = codegenConfig.readEntry("NameSpace"); TQString nameSpace = codegenConfig.readEntry("NameSpace");
TQString className = codegenConfig.readEntry("ClassName"); TQString className = codegenConfig.readEntry("ClassName");

@ -4345,11 +4345,11 @@
</class> </class>
<class> <class>
<package>org.trinitydesktop.koala</package> <package>org.trinitydesktop.koala</package>
<name>KSimpleConfig</name> <name>TDESimpleConfig</name>
</class> </class>
<class> <class>
<package>org.trinitydesktop.koala</package> <package>org.trinitydesktop.koala</package>
<name>KSimpleConfigSignals</name> <name>TDESimpleConfigSignals</name>
</class> </class>
<class> <class>
<package>org.trinitydesktop.koala</package> <package>org.trinitydesktop.koala</package>

@ -289,7 +289,7 @@ kshell.h
tdeshortcut.h tdeshortcut.h
tdeshortcutlist.h tdeshortcutlist.h
kshred.h kshred.h
ksimpleconfig.h tdesimpleconfig.h
ksmimecrypto.h ksmimecrypto.h
ksockaddr.h ksockaddr.h
ksock.h ksock.h

@ -103,10 +103,10 @@ public class KDEDesktopMimeType extends KMimeType {
public native TQPixmap pixmap(int group, int force_size, int state); public native TQPixmap pixmap(int group, int force_size, int state);
public native TQPixmap pixmap(int group, int force_size); public native TQPixmap pixmap(int group, int force_size);
public native TQPixmap pixmap(int group); public native TQPixmap pixmap(int group);
protected static native int runFSDevice(KURL _url, KSimpleConfig cfg); protected static native int runFSDevice(KURL _url, TDESimpleConfig cfg);
protected static native int runApplication(KURL _url, String _serviceFile); protected static native int runApplication(KURL _url, String _serviceFile);
protected static native int runLink(KURL _url, KSimpleConfig cfg); protected static native int runLink(KURL _url, TDESimpleConfig cfg);
protected static native int runMimeType(KURL _url, KSimpleConfig cfg); protected static native int runMimeType(KURL _url, TDESimpleConfig cfg);
/** Deletes the wrapped C++ instance */ /** Deletes the wrapped C++ instance */
protected native void finalize() throws InternalError; protected native void finalize() throws InternalError;
/** Delete the wrapped C++ instance ahead of finalize() */ /** Delete the wrapped C++ instance ahead of finalize() */

@ -69,7 +69,7 @@ public class KPluginSelector extends TQWidget {
always pass a TDEConfig object if you use always pass a TDEConfig object if you use
KSettings.PluginPage since you never know from where the KSettings.PluginPage since you never know from where the
page will be called (think global config app). page will be called (think global config app).
For example KViewCanvas passes KSimpleConfig( For example KViewCanvas passes TDESimpleConfig(
"kviewcanvas" ). "kviewcanvas" ).
@short Add a list of KParts plugins @short Add a list of KParts plugins
*/ */
@ -106,7 +106,7 @@ public class KPluginSelector extends TQWidget {
always pass a TDEConfig object if you use always pass a TDEConfig object if you use
KSettings.PluginPage since you never know from where the KSettings.PluginPage since you never know from where the
page will be called (think global config app). page will be called (think global config app).
For example KViewCanvas passes KSimpleConfig( For example KViewCanvas passes TDESimpleConfig(
"kviewcanvas" ). "kviewcanvas" ).
@short Add a list of non-KParts plugins @short Add a list of non-KParts plugins
*/ */

File diff suppressed because one or more lines are too long

@ -15,7 +15,7 @@ import java.util.ArrayList;
@short KDE Configuration Management class. @short KDE Configuration Management class.
@see TDEGlobal#config @see TDEGlobal#config
@see TDEConfigBase @see TDEConfigBase
@see KSimpleConfig @see TDESimpleConfig
*/ */
public class TDEConfig extends TDEConfigBase { public class TDEConfig extends TDEConfigBase {

@ -19,7 +19,7 @@ import org.trinitydesktop.qt.TQObject;
This class forms the base for all %KDE configuration. It is an This class forms the base for all %KDE configuration. It is an
abstract base class, meaning that you cannot directly instantiate abstract base class, meaning that you cannot directly instantiate
objects of this class. Either use TDEConfig (for usual %KDE objects of this class. Either use TDEConfig (for usual %KDE
configuration) or KSimpleConfig (for special needs as in ksamba), or configuration) or TDESimpleConfig (for special needs as in ksamba), or
even TDESharedConfig (stores values in shared memory). even TDESharedConfig (stores values in shared memory).
All configuration entries are key, value pairs. Each entry also All configuration entries are key, value pairs. Each entry also
belongs to a specific group of related entries. All configuration belongs to a specific group of related entries. All configuration
@ -36,7 +36,7 @@ import org.trinitydesktop.qt.TQObject;
@short KDE Configuration Management abstract base class. @short KDE Configuration Management abstract base class.
@see TDEGlobal#config @see TDEGlobal#config
@see TDEConfig @see TDEConfig
@see KSimpleConfig @see TDESimpleConfig
@see TDESharedConfig @see TDESharedConfig
*/ */

@ -6,10 +6,10 @@ import org.trinitydesktop.qt.QtSupport;
/** /**
Helper class to facilitate working with TDEConfig / KSimpleConfig Helper class to facilitate working with TDEConfig / TDESimpleConfig
groups. groups.
Careful programmers always set the group of a Careful programmers always set the group of a
TDEConfig KSimpleConfig object to the group they want to read from TDEConfig TDESimpleConfig object to the group they want to read from
and set it back to the old one of afterwards. This is usually and set it back to the old one of afterwards. This is usually
written as: written as:
<pre> <pre>
@ -31,10 +31,10 @@ import org.trinitydesktop.qt.QtSupport;
way. way.
@author Matthias Kalle Dalheimer <kalle@kde.org> @author Matthias Kalle Dalheimer <kalle@kde.org>
@short Helper class for easier use of TDEConfig/KSimpleConfig groups. @short Helper class for easier use of TDEConfig/TDESimpleConfig groups.
@see TDEConfigBase @see TDEConfigBase
@see TDEConfig @see TDEConfig
@see KSimpleConfig @see TDESimpleConfig
@see TDEConfigGroup @see TDEConfigGroup
*/ */

@ -20,40 +20,40 @@ import org.trinitydesktop.qt.QtSupport;
@see TDEConfig @see TDEConfig
*/ */
public class KSimpleConfig extends TDEConfig { public class TDESimpleConfig extends TDEConfig {
protected KSimpleConfig(Class dummy){super((Class) null);} protected TDESimpleConfig(Class dummy){super((Class) null);}
public native TQMetaObject metaObject(); public native TQMetaObject metaObject();
public native String className(); public native String className();
/** /**
Construct a KSimpleConfig object and make it either read-write Construct a TDESimpleConfig object and make it either read-write
or read-only. or read-only.
@param fileName The file used for saving the config data. Either @param fileName The file used for saving the config data. Either
a full path can be specified or just the filename. a full path can be specified or just the filename.
If only a filename is specified, the default If only a filename is specified, the default
directory for "config" files is used. directory for "config" files is used.
@param bReadOnly Whether the object should be read-only. @param bReadOnly Whether the object should be read-only.
@short Construct a KSimpleConfig object and make it either read-write or read-only. @short Construct a TDESimpleConfig object and make it either read-write or read-only.
*/ */
public KSimpleConfig(String fileName, boolean bReadOnly) { public TDESimpleConfig(String fileName, boolean bReadOnly) {
super((Class) null); super((Class) null);
newKSimpleConfig(fileName,bReadOnly); newTDESimpleConfig(fileName,bReadOnly);
} }
private native void newKSimpleConfig(String fileName, boolean bReadOnly); private native void newTDESimpleConfig(String fileName, boolean bReadOnly);
public KSimpleConfig(String fileName) { public TDESimpleConfig(String fileName) {
super((Class) null); super((Class) null);
newKSimpleConfig(fileName); newTDESimpleConfig(fileName);
} }
private native void newKSimpleConfig(String fileName); private native void newTDESimpleConfig(String fileName);
public KSimpleConfig(TDEConfigBackEnd backEnd, boolean bReadOnly) { public TDESimpleConfig(TDEConfigBackEnd backEnd, boolean bReadOnly) {
super((Class) null); super((Class) null);
newKSimpleConfig(backEnd,bReadOnly); newTDESimpleConfig(backEnd,bReadOnly);
} }
private native void newKSimpleConfig(TDEConfigBackEnd backEnd, boolean bReadOnly); private native void newTDESimpleConfig(TDEConfigBackEnd backEnd, boolean bReadOnly);
public KSimpleConfig(TDEConfigBackEnd backEnd) { public TDESimpleConfig(TDEConfigBackEnd backEnd) {
super((Class) null); super((Class) null);
newKSimpleConfig(backEnd); newTDESimpleConfig(backEnd);
} }
private native void newKSimpleConfig(TDEConfigBackEnd backEnd); private native void newTDESimpleConfig(TDEConfigBackEnd backEnd);
public native void sync(); public native void sync();
/** Deletes the wrapped C++ instance */ /** Deletes the wrapped C++ instance */
protected native void finalize() throws InternalError; protected native void finalize() throws InternalError;

@ -4,7 +4,7 @@
#include <kicontheme.h> #include <kicontheme.h>
#include <kmimetype.h> #include <kmimetype.h>
#include <tqstring.h> #include <tqstring.h>
#include <ksimpleconfig.h> #include <tdesimpleconfig.h>
#include <kurl.h> #include <kurl.h>
#include <tdeconfig.h> #include <tdeconfig.h>
@ -29,16 +29,16 @@ public:
TQPixmap protected_pixmap(TDEIcon::Group arg1) { TQPixmap protected_pixmap(TDEIcon::Group arg1) {
return (TQPixmap) KDEDesktopMimeType::pixmap(arg1); return (TQPixmap) KDEDesktopMimeType::pixmap(arg1);
} }
static pid_t protected_runFSDevice(const KURL& arg1,const KSimpleConfig& arg2) { static pid_t protected_runFSDevice(const KURL& arg1,const TDESimpleConfig& arg2) {
return (pid_t) KDEDesktopMimeType::runFSDevice(arg1,arg2); return (pid_t) KDEDesktopMimeType::runFSDevice(arg1,arg2);
} }
static pid_t protected_runApplication(const KURL& arg1,const TQString& arg2) { static pid_t protected_runApplication(const KURL& arg1,const TQString& arg2) {
return (pid_t) KDEDesktopMimeType::runApplication(arg1,arg2); return (pid_t) KDEDesktopMimeType::runApplication(arg1,arg2);
} }
static pid_t protected_runLink(const KURL& arg1,const KSimpleConfig& arg2) { static pid_t protected_runLink(const KURL& arg1,const TDESimpleConfig& arg2) {
return (pid_t) KDEDesktopMimeType::runLink(arg1,arg2); return (pid_t) KDEDesktopMimeType::runLink(arg1,arg2);
} }
static pid_t protected_runMimeType(const KURL& arg1,const KSimpleConfig& arg2) { static pid_t protected_runMimeType(const KURL& arg1,const TDESimpleConfig& arg2) {
return (pid_t) KDEDesktopMimeType::runMimeType(arg1,arg2); return (pid_t) KDEDesktopMimeType::runMimeType(arg1,arg2);
} }
~KDEDesktopMimeTypeJBridge() {QtSupport::qtKeyDeleted(this);} ~KDEDesktopMimeTypeJBridge() {QtSupport::qtKeyDeleted(this);}
@ -194,7 +194,7 @@ JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_runFSDevice(JNIEnv* env, jclass cls, jobject _url, jobject cfg) Java_org_trinitydesktop_koala_KDEDesktopMimeType_runFSDevice(JNIEnv* env, jclass cls, jobject _url, jobject cfg)
{ {
(void) cls; (void) cls;
jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runFSDevice((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const KSimpleConfig&)*(const KSimpleConfig*) QtSupport::getQt(env, cfg)); jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runFSDevice((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const TDESimpleConfig&)*(const TDESimpleConfig*) QtSupport::getQt(env, cfg));
return xret; return xret;
} }
@ -202,7 +202,7 @@ JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_runLink(JNIEnv* env, jclass cls, jobject _url, jobject cfg) Java_org_trinitydesktop_koala_KDEDesktopMimeType_runLink(JNIEnv* env, jclass cls, jobject _url, jobject cfg)
{ {
(void) cls; (void) cls;
jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runLink((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const KSimpleConfig&)*(const KSimpleConfig*) QtSupport::getQt(env, cfg)); jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runLink((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const TDESimpleConfig&)*(const TDESimpleConfig*) QtSupport::getQt(env, cfg));
return xret; return xret;
} }
@ -210,7 +210,7 @@ JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_runMimeType(JNIEnv* env, jclass cls, jobject _url, jobject cfg) Java_org_trinitydesktop_koala_KDEDesktopMimeType_runMimeType(JNIEnv* env, jclass cls, jobject _url, jobject cfg)
{ {
(void) cls; (void) cls;
jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runMimeType((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const KSimpleConfig&)*(const KSimpleConfig*) QtSupport::getQt(env, cfg)); jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runMimeType((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const TDESimpleConfig&)*(const TDESimpleConfig*) QtSupport::getQt(env, cfg));
return xret; return xret;
} }

@ -1,164 +0,0 @@
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <ksimpleconfig.h>
#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KSimpleConfig.h>
class KSimpleConfigJBridge : public KSimpleConfig
{
public:
KSimpleConfigJBridge(const TQString& arg1,bool arg2) : KSimpleConfig(arg1,arg2) {};
KSimpleConfigJBridge(const TQString& arg1) : KSimpleConfig(arg1) {};
KSimpleConfigJBridge(TDEConfigBackEnd* arg1,bool arg2) : KSimpleConfig(arg1,arg2) {};
KSimpleConfigJBridge(TDEConfigBackEnd* arg1) : KSimpleConfig(arg1) {};
void public_sync() {
KSimpleConfig::sync();
return;
}
~KSimpleConfigJBridge() {QtSupport::qtKeyDeleted(this);}
void removeChild(TQObject* arg1) {
if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
TQObject::removeChild(arg1);
}
return;
}
void reparseConfiguration() {
if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KSimpleConfig","reparseConfiguration")) {
TDEConfig::reparseConfiguration();
}
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 sync() {
if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KSimpleConfig","sync")) {
KSimpleConfig::sync();
}
return;
}
void insertChild(TQObject* arg1) {
if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
TQObject::insertChild(arg1);
}
return;
}
void parseConfigFiles() {
if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KSimpleConfig","parseConfigFiles")) {
TDEConfigBase::parseConfigFiles();
}
return;
}
bool eventFilter(TQObject* object,TQEvent* event) {
if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.KSimpleConfig",object,event)) {
return TQObject::eventFilter(object,event);
} else {
return true;
}
}
};
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_className(JNIEnv* env, jobject obj)
{
const char* _qstring;
_qstring = ((KSimpleConfig*) QtSupport::getQt(env, obj))->className();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_dispose(JNIEnv* env, jobject obj)
{
Java_org_trinitydesktop_koala_KSimpleConfig_finalize(env, obj);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj) && ((KSimpleConfig*)QtSupport::getQt(env, obj))->parent() == 0) {
delete (KSimpleConfig*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_metaObject(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((KSimpleConfig*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static TQString* _qstring_fileName = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KSimpleConfigJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean bReadOnly)
{
static TQString* _qstring_fileName = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KSimpleConfigJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (bool) bReadOnly));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2(JNIEnv* env, jobject obj, jobject backEnd)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KSimpleConfigJBridge((TDEConfigBackEnd*) QtSupport::getQt(env, backEnd)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2Z(JNIEnv* env, jobject obj, jobject backEnd, jboolean bReadOnly)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KSimpleConfigJBridge((TDEConfigBackEnd*) QtSupport::getQt(env, backEnd), (bool) bReadOnly));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_sync(JNIEnv* env, jobject obj)
{
((KSimpleConfigJBridge*) QtSupport::getQt(env, obj))->public_sync();
return;
}

@ -1,28 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#ifndef __org_trinitydesktop_koala_KSimpleConfig__
#define __org_trinitydesktop_koala_KSimpleConfig__
#include <jni.h>
#ifdef __cplusplus
extern "C"
{
#endif
extern JNIEXPORT jobject JNICALL Java_org_trinitydesktop_koala_KSimpleConfig_metaObject (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_trinitydesktop_koala_KSimpleConfig_className (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Ljava_lang_String_2Z (JNIEnv *env, jobject, jstring, jboolean);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2Z (JNIEnv *env, jobject, jobject, jboolean);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_KSimpleConfig_sync (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_KSimpleConfig_finalize (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_KSimpleConfig_dispose (JNIEnv *env, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_trinitydesktop_koala_KSimpleConfig_isDisposed (JNIEnv *env, jobject);
#ifdef __cplusplus
}
#endif
#endif /* __org_trinitydesktop_koala_KSimpleConfig__ */

File diff suppressed because one or more lines are too long

@ -0,0 +1,164 @@
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tdesimpleconfig.h>
#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/TDESimpleConfig.h>
class TDESimpleConfigJBridge : public TDESimpleConfig
{
public:
TDESimpleConfigJBridge(const TQString& arg1,bool arg2) : TDESimpleConfig(arg1,arg2) {};
TDESimpleConfigJBridge(const TQString& arg1) : TDESimpleConfig(arg1) {};
TDESimpleConfigJBridge(TDEConfigBackEnd* arg1,bool arg2) : TDESimpleConfig(arg1,arg2) {};
TDESimpleConfigJBridge(TDEConfigBackEnd* arg1) : TDESimpleConfig(arg1) {};
void public_sync() {
TDESimpleConfig::sync();
return;
}
~TDESimpleConfigJBridge() {QtSupport::qtKeyDeleted(this);}
void removeChild(TQObject* arg1) {
if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
TQObject::removeChild(arg1);
}
return;
}
void reparseConfiguration() {
if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.TDESimpleConfig","reparseConfiguration")) {
TDEConfig::reparseConfiguration();
}
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 sync() {
if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.TDESimpleConfig","sync")) {
TDESimpleConfig::sync();
}
return;
}
void insertChild(TQObject* arg1) {
if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
TQObject::insertChild(arg1);
}
return;
}
void parseConfigFiles() {
if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.TDESimpleConfig","parseConfigFiles")) {
TDEConfigBase::parseConfigFiles();
}
return;
}
bool eventFilter(TQObject* object,TQEvent* event) {
if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.TDESimpleConfig",object,event)) {
return TQObject::eventFilter(object,event);
} else {
return true;
}
}
};
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_className(JNIEnv* env, jobject obj)
{
const char* _qstring;
_qstring = ((TDESimpleConfig*) QtSupport::getQt(env, obj))->className();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_dispose(JNIEnv* env, jobject obj)
{
Java_org_trinitydesktop_koala_TDESimpleConfig_finalize(env, obj);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj) && ((TDESimpleConfig*)QtSupport::getQt(env, obj))->parent() == 0) {
delete (TDESimpleConfig*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_metaObject(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((TDESimpleConfig*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_newTDESimpleConfig__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static TQString* _qstring_fileName = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TDESimpleConfigJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_newTDESimpleConfig__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean bReadOnly)
{
static TQString* _qstring_fileName = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TDESimpleConfigJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (bool) bReadOnly));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_newTDESimpleConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2(JNIEnv* env, jobject obj, jobject backEnd)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TDESimpleConfigJBridge((TDEConfigBackEnd*) QtSupport::getQt(env, backEnd)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_newTDESimpleConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2Z(JNIEnv* env, jobject obj, jobject backEnd, jboolean bReadOnly)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TDESimpleConfigJBridge((TDEConfigBackEnd*) QtSupport::getQt(env, backEnd), (bool) bReadOnly));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_sync(JNIEnv* env, jobject obj)
{
((TDESimpleConfigJBridge*) QtSupport::getQt(env, obj))->public_sync();
return;
}

@ -0,0 +1,28 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#ifndef __org_trinitydesktop_koala_TDESimpleConfig__
#define __org_trinitydesktop_koala_TDESimpleConfig__
#include <jni.h>
#ifdef __cplusplus
extern "C"
{
#endif
extern JNIEXPORT jobject JNICALL Java_org_trinitydesktop_koala_TDESimpleConfig_metaObject (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_trinitydesktop_koala_TDESimpleConfig_className (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_TDESimpleConfig_newTDESimpleConfig__Ljava_lang_String_2Z (JNIEnv *env, jobject, jstring, jboolean);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_TDESimpleConfig_newTDESimpleConfig__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_TDESimpleConfig_newTDESimpleConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2Z (JNIEnv *env, jobject, jobject, jboolean);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_TDESimpleConfig_newTDESimpleConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_TDESimpleConfig_sync (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_TDESimpleConfig_finalize (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_trinitydesktop_koala_TDESimpleConfig_dispose (JNIEnv *env, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_trinitydesktop_koala_TDESimpleConfig_isDisposed (JNIEnv *env, jobject);
#ifdef __cplusplus
}
#endif
#endif /* __org_trinitydesktop_koala_TDESimpleConfig__ */

@ -65,7 +65,7 @@ import java.util.*;
// Create a read-write combobox and reproduce konqueror's code // Create a read-write combobox and reproduce konqueror's code
KComboBox konqc = new KComboBox( true, w, "konqc" ); KComboBox konqc = new KComboBox( true, w, "konqc" );
konqc.setMaxCount( 10 ); konqc.setMaxCount( 10 );
KSimpleConfig historyConfig = new KSimpleConfig("konq_history"); TDESimpleConfig historyConfig = new TDESimpleConfig("konq_history");
historyConfig.setGroup( "Location Bar" ); historyConfig.setGroup( "Location Bar" );
TDECompletion s_pCompletion = new TDECompletion(); TDECompletion s_pCompletion = new TDECompletion();
s_pCompletion.setOrder( TDECompletion.Weighted ); s_pCompletion.setOrder( TDECompletion.Weighted );

Loading…
Cancel
Save