org.kde.koala
public class KDataToolInfo extends Object implements QtSupport
See Also: KDataTool
UNKNOWN: This is a convenience class for KService.
Constructor Summary | |
---|---|
protected | KDataToolInfo(Class dummy) |
KDataToolInfo()
Create an invalid KDataToolInfo. | |
KDataToolInfo(KDataToolInfo info)
Copy constructor. |
Method Summary | |
---|---|
ArrayList | commands()
Returns the list of commands the DataTool can execute. |
KDataTool | createTool(QObject parent, String name)
Creates the data tool described by this KDataToolInfo. |
KDataTool | createTool(QObject parent) |
KDataTool | createTool() |
String | dataType()
Returns the data type that the DataTool can accept. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
String | iconName()
Returns the icon name for this DataTool. |
KInstanceInterface | instance()
The instance of the service. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isReadOnly()
Checks whether the DataTool is read-only. |
boolean | isValid()
A DataToolInfo may be invalid if the KService passed to its constructor does
not feature the service type "KDataTool". |
ArrayList | mimeTypes()
Returns a list of mime type that will be accepted by the DataTool.
|
ArrayList | userCommands()
Returns a list of strings that you can put in a QPopupMenu item, for example to
offer the DataTools services to the user. |
UNKNOWN: Create an invalid KDataToolInfo.
UNKNOWN: Copy constructor.
Returns: the list of commands the DataTool can execute, suitable for the KDataTool.run method.
UNKNOWN: Returns the list of commands the DataTool can execute.
Parameters: parent the parent of the QObject (or 0 for parent-less KDataTools) name the name of the QObject, can be 0
Returns: a pointer to the created data tool or 0 on error.
UNKNOWN: Creates the data tool described by this KDataToolInfo.
Returns: the C++ data type that this DataTool accepts. For example "String" or "QImage" or something more complicated.
UNKNOWN: Returns the data type that the DataTool can accept.
Returns: the name of the icon for the DataTool
UNKNOWN: Returns the icon name for this DataTool.
Returns: the instance
UNKNOWN: The instance of the service.
Returns: true if the DataTool does not modify the data passed to it by KDataTool.run.
UNKNOWN: Checks whether the DataTool is read-only.
Returns: true if valid, false otherwise
UNKNOWN: A DataToolInfo may be invalid if the KService passed to its constructor does not feature the service type "KDataTool".
Returns: the mime types accepted by this DataTool. For example "image/gif" or "text/plain". In some cases the dataType determines the accepted type of data perfectly. In this cases this list may be empty.
UNKNOWN: Returns a list of mime type that will be accepted by the DataTool.
Returns: a list of strings that you can put in a QPopupMenu item
UNKNOWN: Returns a list of strings that you can put in a QPopupMenu item, for example to offer the DataTools services to the user.