|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KServiceTypeProfile
public class KServiceTypeProfile
KServiceTypeProfile represents the user's preferences for services of a service type. It consists of a list of services (service offers) for the service type that is sorted by the user's preference. KTrader uses KServiceTypeProfile to sort its results, so usually you can just use KTrader to find the user's preferred service.
KService
,
KServiceType
,
KServiceOffer
,
KTrader
Constructor Summary | |
---|---|
protected |
KServiceTypeProfile(java.lang.Class dummy)
|
|
KServiceTypeProfile(java.lang.String serviceType)
|
|
KServiceTypeProfile(java.lang.String serviceType,
java.lang.String genericServiceType)
Constructor is called when the user profile is read for the first time. |
Method Summary | |
---|---|
protected void |
addService(java.lang.String _service)
|
protected void |
addService(java.lang.String _service,
int _preference)
|
protected void |
addService(java.lang.String _service,
int _preference,
boolean _allow_as_default)
Add a service to this profile. |
static void |
clear()
Clear all cached information |
static boolean |
configurationMode()
|
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
static KServiceTypeProfile |
serviceTypeProfile(java.lang.String servicetype)
|
static KServiceTypeProfile |
serviceTypeProfile(java.lang.String servicetype,
java.lang.String genericServiceType)
Returns the profile for the requested service type. |
static void |
setConfigurationMode()
This method activates a special mode of KServiceTypeProfile, in which all/all and all/allfiles are excluded from the results of the queries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KServiceTypeProfile(java.lang.Class dummy)
public KServiceTypeProfile(java.lang.String serviceType, java.lang.String genericServiceType)
serviceType
- the service type (e.g. a MIME type)genericServiceType
- the generic service type (e.g. "Application"
or "KParts/ReadOnlyPart"). Can be null,
then the "Application" generic type will be usedpublic KServiceTypeProfile(java.lang.String serviceType)
Method Detail |
---|
public static KServiceTypeProfile serviceTypeProfile(java.lang.String servicetype, java.lang.String genericServiceType)
servicetype
- the service type (e.g. a MIME type)genericServiceType
- the generic service type (e.g. "Application"
or "KParts/ReadOnlyPart"). Can be null,
then the "Application" generic type will be used
public static KServiceTypeProfile serviceTypeProfile(java.lang.String servicetype)
public static void clear()
public static void setConfigurationMode()
public static boolean configurationMode()
protected void addService(java.lang.String _service, int _preference, boolean _allow_as_default)
_service
- the name of the service_preference
- the user's preference value, must be positive,
bigger is better_allow_as_default
- true if the service should be used as
defaultprotected void addService(java.lang.String _service, int _preference)
protected void addService(java.lang.String _service)
protected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |