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.
122 lines
3.8 KiB
122 lines
3.8 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
package org.kde.koala;
|
|
|
|
import org.kde.qt.Qt;
|
|
import org.kde.qt.QtSupport;
|
|
|
|
/**
|
|
|
|
Access to KDE global objects for use in shared libraries. In
|
|
practical terms, this class is used in KDE components. This allows
|
|
components to store things that normally would be accessed by
|
|
KGlobal.
|
|
@author Torben Weis
|
|
|
|
@short Access to KDE global objects for use in shared libraries.
|
|
|
|
*/
|
|
public class TDEInstance implements QtSupport, TDEInstanceInterface {
|
|
private long _qt;
|
|
private boolean _allocatedInJavaWorld = true;
|
|
protected TDEInstance(Class dummy){}
|
|
|
|
/**
|
|
Constructor.
|
|
@param instanceName the name of the instance
|
|
@short Constructor.
|
|
*/
|
|
public TDEInstance(String instanceName) {
|
|
newTDEInstance(instanceName);
|
|
}
|
|
private native void newTDEInstance(String instanceName);
|
|
/**
|
|
Constructor.
|
|
When building a TDEInstance that is not your TDEApplication,
|
|
make sure that the TDEAboutData and the TDEInstance have the same life time.
|
|
You have to destroy both, since the instance doesn't own the about data.
|
|
Don't build a TDEAboutData on the stack in this case !
|
|
Building a TDEAboutData on the stack is only ok for usage with
|
|
TDECmdLineArgs and TDEApplication (not destroyed until the app exits).
|
|
@param aboutData data about this instance (see TDEAboutData)
|
|
@short Constructor.
|
|
*/
|
|
public TDEInstance(TDEAboutData aboutData) {
|
|
newTDEInstance(aboutData);
|
|
}
|
|
private native void newTDEInstance(TDEAboutData aboutData);
|
|
public TDEInstance(TDEInstanceInterface src) {
|
|
newTDEInstance(src);
|
|
}
|
|
private native void newTDEInstance(TDEInstanceInterface src);
|
|
/**
|
|
Returns the application standard dirs object.
|
|
@return The KStandardDirs of the application.
|
|
|
|
@short Returns the application standard dirs object.
|
|
*/
|
|
public native KStandardDirs dirs();
|
|
/**
|
|
Returns the general config object ("appnamerc").
|
|
@return the KConfig object for the instance.
|
|
|
|
@short Returns the general config object ("appnamerc").
|
|
*/
|
|
public native KConfig config();
|
|
/**
|
|
Returns the general config object ("appnamerc").
|
|
@return the KConfig object for the instance.
|
|
|
|
@short Returns the general config object ("appnamerc").
|
|
*/
|
|
public native KSharedConfig sharedConfig();
|
|
/**
|
|
Returns an iconloader object.
|
|
@return the iconloader object.
|
|
|
|
@short Returns an iconloader object.
|
|
*/
|
|
public native KIconLoader iconLoader();
|
|
/**
|
|
Re-allocate the global iconloader.
|
|
@short Re-allocate the global iconloader.
|
|
*/
|
|
public native void newIconLoader();
|
|
/**
|
|
Returns the about data of this instance
|
|
Warning, can be null
|
|
@return the about data of the instance, or 0 if it has
|
|
not been set yet
|
|
|
|
@short Returns the about data of this instance Warning, can be 0L
|
|
*/
|
|
public native TDEAboutData aboutData();
|
|
/**
|
|
Returns the name of the instance
|
|
@return the instance name, can be null if the TDEInstance has been
|
|
created with a null name
|
|
|
|
@short Returns the name of the instance
|
|
*/
|
|
public native String instanceName();
|
|
/**
|
|
Returns the KMimeSourceFactory of the instance.
|
|
Mainly added for API completeness and future extensibility.
|
|
@return the KMimeSourceFactory set as default for this application.
|
|
|
|
@short Returns the KMimeSourceFactory of the instance.
|
|
*/
|
|
public native KMimeSourceFactory mimeSourceFactory();
|
|
/**
|
|
Set name of default config file.
|
|
@param name the name of the default config file
|
|
@short Set name of default config file.
|
|
*/
|
|
protected native void setConfigName(String name);
|
|
/** Deletes the wrapped C++ instance */
|
|
protected native void finalize() throws InternalError;
|
|
/** Delete the wrapped C++ instance ahead of finalize() */
|
|
public native void dispose();
|
|
/** Has the wrapped C++ instance been deleted? */
|
|
public native boolean isDisposed();
|
|
}
|