summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KServiceOffer.java
blob: 189ebe9b974cc24322ab600667ac5b6e9b4c3a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//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();
}