C# Class Plasma.RunnerManager

Inheritance: Qyoto.QObject, IDisposable
ファイルを表示 Open project: 0xd34df00d/Qross

Public Methods

Method Description
ActionsForMatch ( Plasma match ) : List Retrieves the list of actions, if any, for a match
AllowedRunners ( ) : List
Dispose ( ) : void
Matches ( ) : List Retrieves all available matches found so far for the previously launched query
Query ( ) : string
ReloadConfiguration ( ) : void Causes a reload of the current configuration
Run ( Plasma match ) : void Runs a given match @arg match the match to be executed
Run ( string id ) : void Runs a given match @arg id the id of the match to run
Runner ( string name ) : AbstractRunner Finds and returns a loaded runner or NULL @arg name the name of the runner
RunnerManager ( ) : System
RunnerManager ( Kimono.KConfigGroup config ) : System
RunnerManager ( Kimono.KConfigGroup config, QObject parent ) : System
RunnerManager ( QObject parent ) : System
RunnerName ( string id ) : string Returns the translated name of a runner @arg id the id of the runner
Runners ( ) : List
SearchContext ( ) : RunnerContext Retrieves the current context
SetAllowedRunners ( List runners ) : void Sets a whitelist for the plugins that can be loaded @arg plugins the plugin names of allowed runners
SetSingleMode ( bool singleMode ) : void Sets whether or not the manager is in single mode. @arg singleMode true if the manager should be in single mode, false otherwise
SetSingleModeRunnerId ( string id ) : void Puts the manager into "single runner" mode using the given runner; if the runner does not exist or can not be loaded then the single runner mode will not be started and singleModeRunner() will return NULL @arg id the id of the runner to use
SingleMode ( ) : bool
SingleModeAdvertisedRunnerIds ( ) : List
SingleModeRunner ( ) : AbstractRunner
SingleModeRunnerId ( ) : string

Protected Methods

Method Description
CreateProxy ( ) : void
RunnerManager ( Type dummy ) : System

Private Methods

Method Description
ExecQuery ( string term ) : bool
ExecQuery ( string term, string runnerName ) : bool
LaunchQuery ( string term ) : void
LaunchQuery ( string term, string runnerId ) : void
MatchSessionComplete ( ) : void
Reset ( ) : void
SetupMatchSession ( ) : void

Method Details

ActionsForMatch() public method

Retrieves the list of actions, if any, for a match
public ActionsForMatch ( Plasma match ) : List
match Plasma
return List

AllowedRunners() public method

public AllowedRunners ( ) : List
return List

CreateProxy() protected method

protected CreateProxy ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Matches() public method

Retrieves all available matches found so far for the previously launched query
public Matches ( ) : List
return List

Query() public method

public Query ( ) : string
return string

ReloadConfiguration() public method

Causes a reload of the current configuration
public ReloadConfiguration ( ) : void
return void

Run() public method

Runs a given match @arg match the match to be executed
public Run ( Plasma match ) : void
match Plasma
return void

Run() public method

Runs a given match @arg id the id of the match to run
public Run ( string id ) : void
id string
return void

Runner() public method

Finds and returns a loaded runner or NULL @arg name the name of the runner
public Runner ( string name ) : AbstractRunner
name string
return AbstractRunner

RunnerManager() public method

public RunnerManager ( ) : System
return System

RunnerManager() public method

public RunnerManager ( Kimono.KConfigGroup config ) : System
config Kimono.KConfigGroup
return System

RunnerManager() public method

public RunnerManager ( Kimono.KConfigGroup config, QObject parent ) : System
config Kimono.KConfigGroup
parent Qyoto.QObject
return System

RunnerManager() public method

public RunnerManager ( QObject parent ) : System
parent Qyoto.QObject
return System

RunnerManager() protected method

protected RunnerManager ( Type dummy ) : System
dummy System.Type
return System

RunnerName() public method

Returns the translated name of a runner @arg id the id of the runner
public RunnerName ( string id ) : string
id string
return string

Runners() public method

public Runners ( ) : List
return List

SearchContext() public method

Retrieves the current context
public SearchContext ( ) : RunnerContext
return RunnerContext

SetAllowedRunners() public method

Sets a whitelist for the plugins that can be loaded @arg plugins the plugin names of allowed runners
public SetAllowedRunners ( List runners ) : void
runners List
return void

SetSingleMode() public method

Sets whether or not the manager is in single mode. @arg singleMode true if the manager should be in single mode, false otherwise
public SetSingleMode ( bool singleMode ) : void
singleMode bool
return void

SetSingleModeRunnerId() public method

Puts the manager into "single runner" mode using the given runner; if the runner does not exist or can not be loaded then the single runner mode will not be started and singleModeRunner() will return NULL @arg id the id of the runner to use
public SetSingleModeRunnerId ( string id ) : void
id string
return void

SingleMode() public method

public SingleMode ( ) : bool
return bool

SingleModeAdvertisedRunnerIds() public method

public SingleModeAdvertisedRunnerIds ( ) : List
return List

SingleModeRunner() public method

public SingleModeRunner ( ) : AbstractRunner
return AbstractRunner

SingleModeRunnerId() public method

public SingleModeRunnerId ( ) : string
return string