You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kdejava/koala/org/kde/koala/KServiceOffer.java

95 lines
3.1 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
/**
This class holds the user-specific preferences of a service
(whether it can be a default offer or not, how big is the preference
for this offer, ...). Basically it is a reference to a
KService, a number that represents the user's preference (bigger
is better) and a flag whether the KService can be used as default.
@short Holds the user's preference of a service.
@see KService
*/
public class KServiceOffer implements QtSupport {
private long _qt;
private boolean _allocatedInJavaWorld = true;
protected KServiceOffer(Class dummy){}
/**
Create an invalid service offer.
@short Create an invalid service offer.
*/
public KServiceOffer() {
newKServiceOffer();
}
private native void newKServiceOffer();
/**
Copy constructor.
Shallow copy (the KService will not be copied).
@short Copy constructor.
*/
public KServiceOffer(KServiceOffer arg1) {
newKServiceOffer(arg1);
}
private native void newKServiceOffer(KServiceOffer arg1);
/**
Creates a new KServiceOffer.
@param _service a pointer to the KService
@param _pref the user's preference value, must be positive,
bigger is better
@param _default true if the service should be used as
default
@short Creates a new KServiceOffer.
*/
// KServiceOffer* KServiceOffer(KService::Ptr arg1,int arg2,bool arg3); >>>> NOT CONVERTED
/**
A service is bigger that the other when it can be default
(and the other is not) and its preference value it higher.
@short A service is bigger that the other when it can be default (and the other is not) and its preference value it higher.
*/
public native boolean op_lt(KServiceOffer arg1);
/**
Is it allowed to use this service for default actions
(e.g. Left Click in a file manager, or KRun in general).
@return true if the service is a allowed as default
@short Is it allowed to use this service for default actions (e.
*/
public native boolean allowAsDefault();
/**
The bigger this number is, the better is this service.
@return the preference number (negative numbers will be
returned by invalid service offers)
@short The bigger this number is, the better is this service.
*/
public native int preference();
/**
The service which this offer is about.
@return the service this offer is about, can be 0
in valid offers or when not set
@short The service which this offer is about.
*/
// KService::Ptr service(); >>>> NOT CONVERTED
/**
Check whether the entry is valid. A service is valid if
its preference value is positive.
@return true if the service offer is valid
@short Check whether the entry is valid.
*/
public native boolean isValid();
/** 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();
}