/***************************************************************************
                            KKeySequence.java -  description
                             -------------------
    begin                : Wed Jan 30 16:02:13 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Jan 30 16:02:13 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;

/**

 A KKeySequence object holds a sequence of up to 4 keys.
 Ex: Ctrl+X,I
 
 @short 
 A KKeySequence object holds a sequence of up to 4 keys.
*/
public class  KKeySequence implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected KKeySequence(Class dummy){}

	private native void newKKeySequence();
	public KKeySequence() {
		newKKeySequence();
	}
	private native void newKKeySequence( QKeySequence arg1);
	public KKeySequence( QKeySequence arg1) {
		newKKeySequence( arg1);
	}
	private native void newKKeySequence( KKey arg1);
	public KKeySequence( KKey arg1) {
		newKKeySequence( arg1);
	}
//	private native void newKKeySequence( KKeyNative arg1);
//	public KKeySequence( KKeyNative arg1) {
//		newKKeySequence( arg1);
//	}
	private native void newKKeySequence( KKeySequence arg1);
	public KKeySequence( KKeySequence arg1) {
		newKKeySequence( arg1);
	}
	private native void newKKeySequence( String arg1);
	public KKeySequence( String arg1) {
		newKKeySequence( arg1);
	}
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();
	public native void clear();
	public native boolean init( QKeySequence arg1);
	public native boolean init( KKey arg1);
//	public native boolean init( KKeyNative arg1);
	public native boolean init( KKeySequence arg1);
	public native boolean init( String arg1);
	public native int count();
	public native KKey key( int i);
	public native boolean isTriggerOnRelease();
	public native boolean setKey( int i, KKey arg1);
	public native void setTriggerOnRelease( boolean arg1);
	public native boolean isNull();
	public native boolean startsWith( KKeySequence arg1);
	public native int compare( KKeySequence arg1);
	public native QKeySequence qt();
	public native int keyCodeQt();
	public native String toString();
	public native String toStringInternal();
//	public static native KKeySequence null();
	public static final int MAX_KEYS = 4;
}
