메소드 |
설명 |
|
AbstractRunner ( Type dummy ) : System |
|
|
Action ( string id ) : Qyoto.QAction |
Returns the action associated with the id |
|
Actions ( ) : string |
Returns all registered actions |
|
AddAction ( string id, Qyoto.QIcon icon, string text ) : Qyoto.QAction |
Creates and then adds an action to the action registry. AbstractRunner assumes ownership of the created action. name="id" A unique identifier string name="icon" The icon to display name="text" The text to display |
|
AddAction ( string id, Qyoto.QAction action ) : void |
Adds an action to the runner's action registry. The QAction must be created within the GUI thread; do not create it within the match method of AbstractRunner. name="id" A unique identifier string name="action" The QAction to be stored |
|
AddSyntax ( Plasma syntax ) : void |
Adds a registered syntax that this runner understands. This is used to display to the user what this runner can understand and how it can be used. name="syntax" the syntax to register |
|
ClearActions ( ) : void |
Clears the action registry. The action pool deletes the actions. |
|
Config ( ) : Kimono.KConfigGroup |
Provides access to the runner's configuration object. |
|
CreateProxy ( ) : void |
|
|
DataEngine ( string name ) : DataEngine |
Loads the given DataEngine Tries to load the data engine given by name. Each engine is only loaded once, and that instance is re-used on all subsequent requests. If the data engine was not found, an invalid data engine is returned (see DataEngine.IsValid()). Note that you should not delete the returned engine. name="name" Name of the data engine to load |
|
RemoveAction ( string id ) : void |
Removes the action from the action registry. AbstractRunner deletes the action once removed. name="id" The id of the action to be removed |
|
SetDefaultSyntax ( Plasma syntax ) : void |
Set syntax as the default syntax for the runner; the default syntax will be substituted to the empty query in single runner mode. This is also used to display to the user what this runner can understand and how it can be used. The default syntax is automatically added to the list of registered syntaxes, there is no need to add it using addSyntax. Note that there can be only one default syntax; if called more than once, the last call will determine the default syntax. A default syntax (even trivial) is required to advertise single runner mode name="syntax" the syntax to register and to set as default |
|
SetHasRunOptions ( bool hasRunOptions ) : void |
Sets whether or not the runner has options for matches |
|
SetPriority ( Plasma newPriority ) : void |
Sets the priority of the runner. Lower priority runners are executed only after higher priority runners. |
|
SetSpeed ( Plasma newSpeed ) : void |
Sets the nominal speed of the runner. Only slow runners need to call this within their constructor because the default speed is NormalSpeed. Runners that use DBUS should call this within their constructors. |
|
SetSyntaxes ( List syns ) : void |
Sets the list of syntaxes; passing in an empty list effectively clears the syntaxes. name="the" syntaxes to register for this runner |
|