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

/**

 This class holds the characteristics of a service offer
 (whether it can be a default offer or not, how big is the preference
 for this offer, ...)

 @short Holds the characteristics of a service offer.
 
*/
public class  KServiceOffer implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected KServiceOffer(Class dummy){}

	private native void newKServiceOffer();
	public KServiceOffer() {
		newKServiceOffer();
	}
	private native void newKServiceOffer( KServiceOffer arg1);
	public KServiceOffer( KServiceOffer arg1) {
		newKServiceOffer( arg1);
	}
//	private native void newKServiceOffer( KService_Ptr _service, int _pref, boolean _default);
//	public KServiceOffer( KService_Ptr _service, int _pref, boolean _default) {
//		newKServiceOffer( _service, _pref, _default);
//	}

/** 
 Is it allowed to use this service for default actions
 (e.g. Left Click in a file manager, or KRun in general)
   
*/
	public native boolean allowAsDefault();

/** 
 The bigger this number is, the better is this service.
   
*/
	public native int preference();

/** 
 The service which this offer is about.
   
*/
//	public native KService_Ptr service();

/** 
 Whether the entry is valid
   
*/
	public native boolean isValid();
}
