summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KGlobal.java
blob: 43e9eb407e9f201b066dfa7643409b48850c0ea7 (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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;

/**

 Access to the KDE global objects.
 TDEGlobal provides you with pointers of many central
 objects that exist only once in the process. It is also
 responsible for managing instances of KStaticDeleterBase.
		@author Sirtaj Singh Kang (taj@kde.org)
 
		@short    Access to the KDE global objects.
		@see KStaticDeleterBase

*/
public class TDEGlobal implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected TDEGlobal(Class dummy){}

	public TDEGlobal() {
		newTDEGlobal();
	}
	private native void newTDEGlobal();
	/**	
		 Returns the global instance.  There is always at least
		 one instance of a component in one application (in most
		 cases the application itself).
				@return the global instance
     
		@short    Returns the global instance.
	*/
	public static native TDEInstanceInterface instance();
	/**	
		  Returns the application standard dirs object.
				@return the global standard dir object
     
		@short     Returns the application standard dirs object.
	*/
	public static native KStandardDirs dirs();
	/**	
		  Returns the general config object.
				@return the global configuration object.
     
		@short     Returns the general config object.
	*/
	public static native KConfig config();
	/**	
		  Returns the general config object.
				@return the global configuration object.
     
		@short     Returns the general config object.
	*/
	public static native KSharedConfig sharedConfig();
	/**	
		  Returns an iconloader object.
				@return the global iconloader object
     
		@short     Returns an iconloader object.
	*/
	public static native KIconLoader iconLoader();
	/**	
		 Returns the global locale object.
				@return the global locale object
     
		@short    Returns the global locale object.
	*/
	public static native KLocale locale();
	/**	
		 The global charset manager.
				@return the global charset manager
     
		@short    The global charset manager.
	*/
	public static native KCharsets charsets();
	/**	
		 Creates a static String.
			 To be used inside functions(!) like:
		 <pre>
		 static StringmyString = TDEGlobal.staticString("myText");
		 </pre>
			 !!! Do _NOT_ use: !!!
		 <pre>
		 static String myString = TDEGlobal.staticString("myText");
		 </pre>
		 This creates a static object (instead of a static reference)
		 and as you know static objects are EVIL.
			@param str the string to create
				@return the static string
     
		@short    Creates a static String.
	*/
	public static native String staticQString(String str);
	/**	
		 Registers a static deleter.
			@param d the static deleter to register
				@short    Registers a static deleter.
		@see KStaticDeleterBase
		@see KStaticDeleter
	*/
	public static native void registerStaticDeleter(KStaticDeleterBase d);
	/**	
		 Unregisters a static deleter.
			@param d the static deleter to unregister
				@short    Unregisters a static deleter.
		@see KStaticDeleterBase
		@see KStaticDeleter
	*/
	public static native void unregisterStaticDeleter(KStaticDeleterBase d);
	/**	
		 Calls KStaticDeleterBase.destructObject() on all
		 registered static deleters and unregisters them all.
				@short    Calls KStaticDeleterBase.destructObject() on all  registered static deleters and unregisters them all.
		@see KStaticDeleterBase
		@see KStaticDeleter
	*/
	public static native void deleteStaticDeleters();
	/**	
		 The instance currently active (useful in a multi-instance
		 application, such as a KParts application).
		 Don't use this - it's mainly for KAboutDialog and KBugReport.
			     		@short    The instance currently active (useful in a multi-instance  application, such as a KParts application).
	*/
	public static native void setActiveInstance(TDEInstanceInterface d);
	public static native TDEInstanceInterface activeInstance();
	/** 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();
}