C# 클래스 Plasma.RunnerContext

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

공개 메소드들

메소드 설명
AddMatch ( string term, Plasma match ) : bool Appends a match to the existing list of matches. If you are going to be adding multiple matches, use addMatches instead. @arg term the search term that this match was generated for. @arg match the match to add
AddMatches ( string term, List matches ) : bool Appends lists of matches to the list of matches. This method is thread safe and causes the matchesChanged() signal to be emitted.
Dispose ( ) : void
IsValid ( ) : bool while (.. a possibly large iteration) { if (!context.isValid()) { return; } ... some processing ... } While not required to be used within runners, it provies a nice way to avoid unnecessary processing in runners that may run for an extended period (as measured in 10s of ms) and therefore improve the user experience.
Match ( string id ) : Plasma.QueryMatch Retrieves a match by id. name="id" the id of the match to return
Matches ( ) : List Retrieves all available matches for the current search term.
MimeType ( ) : string The mimetype that the search term refers to, if discoverable.
Query ( ) : string
RemoveMatch ( string matchId ) : bool Removes a match from the existing list of matches. If you are going to be removing multiple matches, use removeMatches instead. @arg matchId the id of match to remove
RemoveMatches ( List matchIdList ) : bool Removes lists of matches from the existing list of matches. This method is thread safe and causes the matchesChanged() signal to be emitted. @arg matchIdList the list of matches id to remove
Reset ( ) : void Resets the search term for this object. This removes all current matches in the process and turns off single runner query mode.
Restore ( Kimono.KConfigGroup config ) : void Sets the launch counts for the associated match ids If a runner adds a match to this context, the context will check if the match id has been launched before and increase the matches relevance correspondingly. In this manner, any front end can implement adaptive search by sorting items according to relevance. name="config" the config group where launch data was stored
Run ( Plasma match ) : void Run a match using the information from this context The context will also keep track of the number of times the match was launched to sort future matches according to user habits name="match" the match to run
RunnerContext ( ) : System
RunnerContext ( Plasma other ) : System
RunnerContext ( Plasma other, QObject parent ) : System Copy constructor
RunnerContext ( QObject parent ) : System
Save ( Kimono.KConfigGroup config ) : void name="config" the config group where launch data should be stored
SetQuery ( string term ) : void Sets the query term for this object and attempts to determine the type of the search.
SetSingleRunnerQueryMode ( bool enabled ) : void Sets single runner query mode. Note that a call to reset() will turn off single runner query mode.
SingleRunnerQueryMode ( ) : bool
type ( ) : Plasma.RunnerContext.TypeOf The type of item the search term might refer to.

보호된 메소드들

메소드 설명
CreateProxy ( ) : void
RunnerContext ( Type dummy ) : System

메소드 상세

AddMatch() 공개 메소드

Appends a match to the existing list of matches. If you are going to be adding multiple matches, use addMatches instead. @arg term the search term that this match was generated for. @arg match the match to add
public AddMatch ( string term, Plasma match ) : bool
term string
match Plasma
리턴 bool

AddMatches() 공개 메소드

Appends lists of matches to the list of matches. This method is thread safe and causes the matchesChanged() signal to be emitted.
public AddMatches ( string term, List matches ) : bool
term string
matches List
리턴 bool

CreateProxy() 보호된 메소드

protected CreateProxy ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

IsValid() 공개 메소드

while (.. a possibly large iteration) { if (!context.isValid()) { return; } ... some processing ... } While not required to be used within runners, it provies a nice way to avoid unnecessary processing in runners that may run for an extended period (as measured in 10s of ms) and therefore improve the user experience.
public IsValid ( ) : bool
리턴 bool

Match() 공개 메소드

Retrieves a match by id. name="id" the id of the match to return
public Match ( string id ) : Plasma.QueryMatch
id string
리턴 Plasma.QueryMatch

Matches() 공개 메소드

Retrieves all available matches for the current search term.
public Matches ( ) : List
리턴 List

MimeType() 공개 메소드

The mimetype that the search term refers to, if discoverable.
public MimeType ( ) : string
리턴 string

Query() 공개 메소드

public Query ( ) : string
리턴 string

RemoveMatch() 공개 메소드

Removes a match from the existing list of matches. If you are going to be removing multiple matches, use removeMatches instead. @arg matchId the id of match to remove
public RemoveMatch ( string matchId ) : bool
matchId string
리턴 bool

RemoveMatches() 공개 메소드

Removes lists of matches from the existing list of matches. This method is thread safe and causes the matchesChanged() signal to be emitted. @arg matchIdList the list of matches id to remove
public RemoveMatches ( List matchIdList ) : bool
matchIdList List
리턴 bool

Reset() 공개 메소드

Resets the search term for this object. This removes all current matches in the process and turns off single runner query mode.
public Reset ( ) : void
리턴 void

Restore() 공개 메소드

Sets the launch counts for the associated match ids If a runner adds a match to this context, the context will check if the match id has been launched before and increase the matches relevance correspondingly. In this manner, any front end can implement adaptive search by sorting items according to relevance. name="config" the config group where launch data was stored
public Restore ( Kimono.KConfigGroup config ) : void
config Kimono.KConfigGroup
리턴 void

Run() 공개 메소드

Run a match using the information from this context The context will also keep track of the number of times the match was launched to sort future matches according to user habits name="match" the match to run
public Run ( Plasma match ) : void
match Plasma
리턴 void

RunnerContext() 공개 메소드

public RunnerContext ( ) : System
리턴 System

RunnerContext() 공개 메소드

public RunnerContext ( Plasma other ) : System
other Plasma
리턴 System

RunnerContext() 공개 메소드

Copy constructor
public RunnerContext ( Plasma other, QObject parent ) : System
other Plasma
parent Qyoto.QObject
리턴 System

RunnerContext() 공개 메소드

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

RunnerContext() 보호된 메소드

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

Save() 공개 메소드

name="config" the config group where launch data should be stored
public Save ( Kimono.KConfigGroup config ) : void
config Kimono.KConfigGroup
리턴 void

SetQuery() 공개 메소드

Sets the query term for this object and attempts to determine the type of the search.
public SetQuery ( string term ) : void
term string
리턴 void

SetSingleRunnerQueryMode() 공개 메소드

Sets single runner query mode. Note that a call to reset() will turn off single runner query mode.
public SetSingleRunnerQueryMode ( bool enabled ) : void
enabled bool
리턴 void

SingleRunnerQueryMode() 공개 메소드

public SingleRunnerQueryMode ( ) : bool
리턴 bool

type() 공개 메소드

The type of item the search term might refer to.
public type ( ) : Plasma.RunnerContext.TypeOf
리턴 Plasma.RunnerContext.TypeOf