diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KGlobal.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KGlobal.java | 135 |
1 files changed, 135 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KGlobal.java b/kdejava/koala/org/kde/koala/KGlobal.java new file mode 100644 index 00000000..707e4b48 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KGlobal.java @@ -0,0 +1,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. + KGlobal 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 KGlobal implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected KGlobal(Class dummy){} + + public KGlobal() { + newKGlobal(); + } + private native void newKGlobal(); + /** + 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 KInstanceInterface 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 = KGlobal.staticString("myText"); + </pre> + !!! Do _NOT_ use: !!! + <pre> + static String myString = KGlobal.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(KInstanceInterface d); + public static native KInstanceInterface 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(); +} |