summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/TDEInstance.java
blob: c8a44827ef6b432365bc08d2c5e7e95c5f7264a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
//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
 TDEGlobal.
		@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();
}