org.kde.koala
public class KServiceTypeProfile extends Object implements QtSupport
See Also: KService KServiceType KServiceOffer KTrader
UNKNOWN: Represents the user's preferences for services of a service type.
| Constructor Summary | |
|---|---|
| protected | KServiceTypeProfile(Class dummy) |
| KServiceTypeProfile(String serviceType, String genericServiceType)
Constructor is called when the user profile is read for the
first time. | |
| KServiceTypeProfile(String serviceType) | |
| Method Summary | |
|---|---|
| protected void | addService(String _service, int _preference, boolean _allow_as_default)
Add a service to this profile. |
| protected void | addService(String _service, int _preference) |
| protected void | addService(String _service) |
| 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(String servicetype, String genericServiceType)
Returns the profile for the requested service type. |
| static KServiceTypeProfile | serviceTypeProfile(String servicetype) |
| 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.
|
Parameters: 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
UNKNOWN: Constructor is called when the user profile is read for the first time.
Parameters: _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 default
UNKNOWN: Add a service to this profile.
UNKNOWN: Clear all cached information
UNKNOWN:
Parameters: 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
Returns: the KServiceTypeProfile with the given arguments, or 0 if not found
UNKNOWN: Returns the profile for the requested service type.
UNKNOWN: This method activates a special mode of KServiceTypeProfile, in which all/all and all/allfiles are excluded from the results of the queries.