/***************************************************************************
                            KGlobal.java -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**

 Access to the KDE global objects.

 @author Sirtaj Singh Kang (taj@kde.org)

 @version $Id: KGlobal.java,v 1.5 2002/01/31 04:48:57 rdale Exp $
 
 @short 
 Access to the KDE global objects.
*/
public class  KGlobal implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected KGlobal(Class dummy){}


/** 
 Returns the global instance.  There is always at least
 one instance of a component in one application (in most
 cases the application itself).
     
*/
	public static native KInstanceInterface instance();

/** 
  Returns the application standard dirs object.
     
*/
	public static native KStandardDirs dirs();

/** 
  Returns the general config object.
     
*/
	public static native KConfig config();

/** 
  Returns an iconloader object.
     
*/
	public static native KIconLoader iconLoader();
	public static native KLocale locale();
	public static native KCharsets charsets();

/** 
 Creates a static String.

 To be used inside functions(!) like:
 static String &myString = KGlobal.staticString("myText");

 !!! Do _NOT_ use: !!!
 static String myString = KGlobal.staticString("myText");
 This creates a static object (instead of a static reference)
 and as you know static objects are EVIL.
     
*/
	public static native String staticQString( String arg1);

/** 
 Creates a static String.

 To be used inside functions(!) like:
 static String &myString = KGlobal.staticString(i18n("My Text"));

 !!! Do _NOT_ use: !!!
 static String myString = KGlobal.staticString(i18n("myText"));
 This creates a static object (instead of a static reference)
 and as you know static objects are EVIL.
     
*/
//	public static native String staticQString( String arg1);
	public static native void registerStaticDeleter( KStaticDeleterBase arg1);
	public static native void unregisterStaticDeleter( KStaticDeleterBase arg1);
	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.
     
*/
	public static native void setActiveInstance( KInstanceInterface d);
	public static native KInstanceInterface activeInstance();
}
