org.kde.koala
public class KService extends KSycocaEntry
See Also: KServiceType KServiceGroup
UNKNOWN: Represent a service, i.
Field Summary | |
---|---|
static int | DCOP_Multi |
static int | DCOP_None
Describes the DCOP type of the service.
|
static int | DCOP_Unique |
static int | DCOP_Wait |
Constructor Summary | |
---|---|
protected | KService(Class dummy) |
KService(String _name, String _exec, String _icon)
Construct a temporary service with a given name, exec-line and icon. | |
KService(String _fullpath)
Construct a service and take all information from a config file. | |
KService(KDesktopFile config)
Construct a service and take all information from a desktop file. | |
KService(QDataStream _str, int offset)
Construct a service from a stream.
|
Method Summary | |
---|---|
protected ArrayList | accessServiceTypes() |
boolean | allowAsDefault()
Checks whether a service is used as a default setting, for
example as plugin in a file manager. |
boolean | allowMultipleFiles()
Checks whether this service can handle several files as
startup arguments. |
ArrayList | categories()
Returns a list of VFolder categories. |
String | comment()
Returns the descriptive comment for the service, if there is one. |
String | desktopEntryName()
Returns the filename of the service desktop entry without any
extension. |
String | desktopEntryPath()
Returns the path to the location where the service desktop entry
is stored.
|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
int | DCOPServiceType()
Returns the DCOPServiceType supported by this service. |
String | exec()
Returns the executable. |
protected void | finalize() Deletes the wrapped C++ instance |
String | genericName()
Returns the generic name for the service, if there is one
(e.g. |
boolean | hasServiceType(String _service)
Checks whether the service supports this service type |
String | icon()
Returns the name of the icon. |
String | init()
Returns the name of the init function to call (KControl modules). |
protected void | init(KDesktopFile config) |
int | initialPreference()
What preference to associate with this service initially (before
the user has had any chance to define a profile for it).
|
int | initialPreferenceForMimeType(String mimeType)
What preference to associate with this service initially
for handling the specified mimetype. (before the user has
had any chance to define a profile for it).
|
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isValid()
Checks whether the service is valid. |
ArrayList | keywords()
Returns a list of descriptive keywords the service, if there are any. |
String | library()
Returns the name of the service's library. |
void | load(QDataStream arg1)
Load the service from a stream. |
String | locateLocal()
Returns a path that can be used for saving changes to this
service |
String | menuId()
Returns the menu ID of the service desktop entry.
|
String | name()
Returns the name of the service. |
static String | newServicePath(boolean showInMenu, String suggestedName, StringBuffer menuId, String[] reservedMenuIds)
Returns a path that can be used to create a new KService based
on suggestedName. |
static String | newServicePath(boolean showInMenu, String suggestedName, StringBuffer menuId) |
static String | newServicePath(boolean showInMenu, String suggestedName) |
boolean | noDisplay()
Whether the entry should be suppressed in menus. |
String | parentApp()
Name of the application this service belongs to.
|
String | path()
Returns the working directory to run the program in. |
QPixmap | pixmap(int _group, int _force_size, int _state, StringBuffer _path)
Returns the pixmap that represents the icon. |
QPixmap | pixmap(int _group, int _force_size, int _state) |
QPixmap | pixmap(int _group, int _force_size) |
QPixmap | pixmap(int _group) |
QVariant | property(String _name)
Returns the requested property. |
QVariant | property(String _name, int t)
Returns the requested property. |
ArrayList | propertyNames()
Returns the list of all properties that this service can have.
|
static void | rebuildKSycoca(QWidget parent)
Rebuild KSycoca and show a progress dialog while doing so. |
void | save(QDataStream arg1)
Save the service to a stream. |
ArrayList | serviceTypes()
Returns the service types that this service supports. |
void | setInitialPreference(int i) |
void | setMenuId(String menuId)
Set the menu id |
void | setTerminal(boolean b)
Sets whether to use a terminal or not |
void | setTerminalOptions(String options)
Sets the terminal options to use |
String | storageId()
Returns a normalized ID suitable for storing in configuration files.
|
boolean | substituteUid()
Checks whether the service runs with a different user id. |
boolean | terminal()
Checks whethe the service should be run in a terminal. |
String | terminalOptions()
Returns any options associated with the terminal the service
runs in, if it requires a terminal.
|
String | type()
Returns the type of the service. |
String | untranslatedGenericName()
Returns the untranslated (US English) generic name
for the service, if there is one
(e.g. |
String | username()
Returns the user name, if the service runs with a
different user id. |
Parameters: _name the name of the service _exec the executable _icon the name of the icon
UNKNOWN: Construct a temporary service with a given name, exec-line and icon.
Parameters: _fullpath Full path to the config file.
UNKNOWN: Construct a service and take all information from a config file.
Parameters: config the desktop file to read
UNKNOWN: Construct a service and take all information from a desktop file.
UNKNOWN:
Returns: true if the service may be used as a default setting
UNKNOWN: Checks whether a service is used as a default setting, for example as plugin in a file manager.
Returns: true if multiple files may be passed to this service at startup. False if only one file at a time may be passed.
UNKNOWN: Checks whether this service can handle several files as startup arguments.
Returns: the list of VFolder categories
UNKNOWN: Returns a list of VFolder categories.
Returns: the descriptive comment for the service, or null if not set
UNKNOWN: Returns the descriptive comment for the service, if there is one.
Returns: the name of the desktop entry without path or extension, or null if not set
UNKNOWN: Returns the filename of the service desktop entry without any extension.
Returns: the path of the service's desktop file, or null if not set
UNKNOWN: Returns the path to the location where the service desktop entry is stored.
Returns: the DCOPServiceType supported by this service
UNKNOWN: Returns the DCOPServiceType supported by this service.
Returns: the command that the service executes, or null if not set
UNKNOWN: Returns the executable.
Returns: the generic name, or null if not set
UNKNOWN: Returns the generic name for the service, if there is one (e.
Parameters: _service The name of the service type you are interested in determining whether this services supports.
Returns: true if the service you specified is supported, otherwise false.
UNKNOWN: Checks whether the service supports this service type
Returns: the icon associated with the service, or "unknown" if not set
UNKNOWN: Returns the name of the icon.
Returns: the name of the init function to call in this service during startup of KDE. (KControl modules only), or null if not set
UNKNOWN: Returns the name of the init function to call (KControl modules).
Returns: the service preference level of the service
UNKNOWN: What preference to associate with this service initially (before the user has had any chance to define a profile for it).
Returns: the service preference level of the service for this mimetype
UNKNOWN: What preference to associate with this service initially for handling the specified mimetype.
Returns: true if the service is valid (e.g. name is not empty)
UNKNOWN: Checks whether the service is valid.
Returns: the list of keywords
UNKNOWN: Returns a list of descriptive keywords the service, if there are any.
Returns: the name of the library that contains the services implementation, or null if not set
UNKNOWN: Returns the name of the service's library.
UNKNOWN:
Returns: path that can be used for saving changes to this service
UNKNOWN: Returns a path that can be used for saving changes to this service
Returns: the menu ID
UNKNOWN: Returns the menu ID of the service desktop entry.
Returns: the name of the service, or null if not set
UNKNOWN: Returns the name of the service.
suggestedName.
Parameters: showInMenu true, if the service should be shown in the KDE menu false, if the service should be hidden from the menu suggestedName name to base the file on, if a service with such name already exists, a prefix will be added to make it unique. menuId If provided, menuId will be set to the menu id to use for the KService reservedMenuIds If provided, the path and menu id will be chosen in such a way that the new menu id does not conflict with any of the reservedMenuIds
Returns: The path to use for the new KService.
UNKNOWN: Returns a path that can be used to create a new KService based on suggestedName.
Returns: true to suppress this service
UNKNOWN: Whether the entry should be suppressed in menus.
Returns: the parent application, or null if not set
UNKNOWN: Name of the application this service belongs to.
Returns: the working directory to run the program in, or null if not set
UNKNOWN: Returns the working directory to run the program in.
Returns: a pixmap for this service (finds and loads icon()), null if not set
See Also: KService
UNKNOWN: Returns the pixmap that represents the icon.
Parameters: _name the name of the property
Returns: the property, or invalid if not found
See Also: KServiceType
UNKNOWN: Returns the requested property.
Parameters: _name the name of the property t the assumed type of the property
Returns: the property, or invalid if not found
See Also: KServiceType
UNKNOWN: Returns the requested property.
Returns: the list of supported properties
UNKNOWN: Returns the list of all properties that this service can have.
Parameters: parent Parent widget for the progress dialog
UNKNOWN: Rebuild KSycoca and show a progress dialog while doing so.
UNKNOWN:
Returns: the list of service types that are supported
UNKNOWN: Returns the service types that this service supports.
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
Returns: the storage ID
UNKNOWN: Returns a normalized ID suitable for storing in configuration files.
Returns: true if the service has to be run under a different uid.
See Also: KService
UNKNOWN: Checks whether the service runs with a different user id.
Returns: true if the service is to be run in a terminal.
UNKNOWN: Checks whethe the service should be run in a terminal.
Returns: the terminal options, or null if not set
UNKNOWN: Returns any options associated with the terminal the service runs in, if it requires a terminal.
Returns: the type of the service ("Application" or "Service")
UNKNOWN: Returns the type of the service.
Returns: the generic name, or null if not set
UNKNOWN: Returns the untranslated (US English) generic name for the service, if there is one (e.
Returns: the username under which the service has to be run, or null if not set
See Also: KService
UNKNOWN: Returns the user name, if the service runs with a different user id.