C# 클래스 Plasma.AbstractRunner

상속: Qyoto.QObject
파일 보기 프로젝트 열기: 0xd34df00d/Qross

공개 메소드들

메소드 설명
AbstractRunner ( ) : System
AbstractRunner ( QObject parent ) : System
AbstractRunner ( QObject parent, List args ) : System
AbstractRunner ( QObject parent, string serviceId ) : System Constructs a Runner object. Since AbstractRunner has pure virtuals, this constructor can not be called directly. Rather a subclass must be created
DefaultSyntax ( ) : Plasma.RunnerSyntax
Description ( ) : string
HasRunOptions ( ) : bool If the runner has options that the user can interact with to modify what happens when run or one of the actions created in match is called, the runner should return true
Icon ( ) : Qyoto.QIcon
Id ( ) : string
IgnoredTypes ( ) : uint Returns the OR'ed value of all the Information types (as defined in RunnerContext.Type) this runner is not interested in.
Name ( ) : string
Package ( ) : Package Accessor for the associated Package object if any. Note that the returned pointer is only valid for the lifetime of the runner.
PerformMatch ( Plasma context ) : void Triggers a call to match. This will call match() internally. @arg context the search context used in executing this match.
SetIgnoredTypes ( uint types ) : void Sets the types this runner will ignore name="types" OR'ed listed of ignored types
Syntaxes ( ) : List
priority ( ) : Plasma.AbstractRunner.Priority The priority of the runner.
speed ( ) : Plasma.AbstractRunner.Speed The nominal speed of the runner.

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
ActionsForMatch ( Plasma match ) : List
CreateRunOptions ( QWidget widget ) : void
Init ( ) : void
Match ( Plasma context ) : void
ReloadConfiguration ( ) : void
Run ( Plasma context, Plasma match ) : void

메소드 상세

AbstractRunner() 공개 메소드

public AbstractRunner ( ) : System
리턴 System

AbstractRunner() 공개 메소드

public AbstractRunner ( QObject parent ) : System
parent Qyoto.QObject
리턴 System

AbstractRunner() 공개 메소드

public AbstractRunner ( QObject parent, List args ) : System
parent Qyoto.QObject
args List
리턴 System

AbstractRunner() 공개 메소드

Constructs a Runner object. Since AbstractRunner has pure virtuals, this constructor can not be called directly. Rather a subclass must be created
public AbstractRunner ( QObject parent, string serviceId ) : System
parent Qyoto.QObject
serviceId string
리턴 System

AbstractRunner() 보호된 메소드

protected AbstractRunner ( Type dummy ) : System
dummy System.Type
리턴 System

Action() 보호된 메소드

Returns the action associated with the id
protected Action ( string id ) : Qyoto.QAction
id string
리턴 Qyoto.QAction

Actions() 보호된 메소드

Returns all registered actions
protected Actions ( ) : string
리턴 string

AddAction() 보호된 메소드

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
protected AddAction ( string id, Qyoto.QIcon icon, string text ) : Qyoto.QAction
id string
icon Qyoto.QIcon
text string
리턴 Qyoto.QAction

AddAction() 보호된 메소드

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
protected AddAction ( string id, Qyoto.QAction action ) : void
id string
action Qyoto.QAction
리턴 void

AddSyntax() 보호된 메소드

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
protected AddSyntax ( Plasma syntax ) : void
syntax Plasma
리턴 void

ClearActions() 보호된 메소드

Clears the action registry. The action pool deletes the actions.
protected ClearActions ( ) : void
리턴 void

Config() 보호된 메소드

Provides access to the runner's configuration object.
protected Config ( ) : Kimono.KConfigGroup
리턴 Kimono.KConfigGroup

CreateProxy() 보호된 메소드

protected CreateProxy ( ) : void
리턴 void

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
protected DataEngine ( string name ) : DataEngine
name string
리턴 DataEngine

DefaultSyntax() 공개 메소드

public DefaultSyntax ( ) : Plasma.RunnerSyntax
리턴 Plasma.RunnerSyntax

Description() 공개 메소드

public Description ( ) : string
리턴 string

HasRunOptions() 공개 메소드

If the runner has options that the user can interact with to modify what happens when run or one of the actions created in match is called, the runner should return true
public HasRunOptions ( ) : bool
리턴 bool

Icon() 공개 메소드

public Icon ( ) : Qyoto.QIcon
리턴 Qyoto.QIcon

Id() 공개 메소드

public Id ( ) : string
리턴 string

IgnoredTypes() 공개 메소드

Returns the OR'ed value of all the Information types (as defined in RunnerContext.Type) this runner is not interested in.
public IgnoredTypes ( ) : uint
리턴 uint

Name() 공개 메소드

public Name ( ) : string
리턴 string

Package() 공개 메소드

Accessor for the associated Package object if any. Note that the returned pointer is only valid for the lifetime of the runner.
public Package ( ) : Package
리턴 Package

PerformMatch() 공개 메소드

Triggers a call to match. This will call match() internally. @arg context the search context used in executing this match.
public PerformMatch ( Plasma context ) : void
context Plasma
리턴 void

RemoveAction() 보호된 메소드

Removes the action from the action registry. AbstractRunner deletes the action once removed. name="id" The id of the action to be removed
protected RemoveAction ( string id ) : void
id string
리턴 void

SetDefaultSyntax() 보호된 메소드

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
protected SetDefaultSyntax ( Plasma syntax ) : void
syntax Plasma
리턴 void

SetHasRunOptions() 보호된 메소드

Sets whether or not the runner has options for matches
protected SetHasRunOptions ( bool hasRunOptions ) : void
hasRunOptions bool
리턴 void

SetIgnoredTypes() 공개 메소드

Sets the types this runner will ignore name="types" OR'ed listed of ignored types
public SetIgnoredTypes ( uint types ) : void
types uint
리턴 void

SetPriority() 보호된 메소드

Sets the priority of the runner. Lower priority runners are executed only after higher priority runners.
protected SetPriority ( Plasma newPriority ) : void
newPriority Plasma
리턴 void

SetSpeed() 보호된 메소드

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.
protected SetSpeed ( Plasma newSpeed ) : void
newSpeed Plasma
리턴 void

SetSyntaxes() 보호된 메소드

Sets the list of syntaxes; passing in an empty list effectively clears the syntaxes. name="the" syntaxes to register for this runner
protected SetSyntaxes ( List syns ) : void
syns List
리턴 void

Syntaxes() 공개 메소드

public Syntaxes ( ) : List
리턴 List

priority() 공개 메소드

The priority of the runner.
public priority ( ) : Plasma.AbstractRunner.Priority
리턴 Plasma.AbstractRunner.Priority

speed() 공개 메소드

The nominal speed of the runner.
public speed ( ) : Plasma.AbstractRunner.Speed
리턴 Plasma.AbstractRunner.Speed