/***************************************************************************
                            KCookie.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;

/**

 Utility class to access the authentication tokens needed to run a KDE
 program (X11 and DCOP cookies).
 
 @short 
 Utility class to access the authentication tokens needed to run a KDE
 program (X11 and DCOP cookies).
*/
public class  KCookie implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected KCookie(Class dummy){}

	private native void newKCookie();
	public KCookie() {
		newKCookie();
	}

/**  Returns the X11 display. 
*/
	public native String display();

/**  Returns the X11 magic cookie, if available. 
*/
	public native String displayAuth();

/**  Select the DCOP transport to look for. Default: "local" 
*/
	public native void setDcopTransport( String dcopTransport);

/**  Returns the netid where the dcopserver is running 
*/
	public native String dcopServer();

/**  
 Returns a list of magic cookies for DCOP protocol authentication. 
 The order is the same as in dcopServer().
     
*/
	public native String dcopAuth();

/**  Returns a list of magic cookies for the ICE protocol. 
*/
	public native String iceAuth();
}
