Fixed doxumentation a bit
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758620
This commit is contained in:
parent
e05a7f7def
commit
824b9a221e
@ -36,6 +36,11 @@ namespace Plasma
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* An abstract base class for Plasma Runner plugins
|
* An abstract base class for Plasma Runner plugins
|
||||||
|
*
|
||||||
|
* Be aware that runners have to be thread-safe. This is due to
|
||||||
|
* the fact that each runner is executed in its own thread for
|
||||||
|
* each new term. Thus, a runner may be executed more than once
|
||||||
|
* at the same time.
|
||||||
*/
|
*/
|
||||||
class PLASMA_EXPORT AbstractRunner : public QObject
|
class PLASMA_EXPORT AbstractRunner : public QObject
|
||||||
{
|
{
|
||||||
@ -76,19 +81,25 @@ class PLASMA_EXPORT AbstractRunner : public QObject
|
|||||||
KConfigGroup config() const;
|
KConfigGroup config() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If the runner can run precisely this term, return a QAction, else
|
* This is the main query method. It should trigger creation of
|
||||||
* return 0. The first runner that returns a QAction will be the
|
* SearchMatch instances through SearchContext::addInformationalMatch,
|
||||||
* default runner. Other runner's actions will be suggested in the
|
* SearchContext::addExactMatch, and SearchContext::addPossibleMatch.
|
||||||
* interface. Non-exact matches should be offered via findMatches.
|
|
||||||
* The action will be activated if the user selects it.
|
|
||||||
* If the action is informational only and should not be executed,
|
|
||||||
* disable the action with setEnabled( false ).
|
|
||||||
*
|
*
|
||||||
* If this runner's exact match is selected, the action will not
|
* If the runner can run precisely the requested term (SearchContext::searchTerm),
|
||||||
* be triggered, but it will be passed into the exec method.
|
* it should create an exact match (SearchContext::addExactMatch).
|
||||||
|
* The first runner that creates a SearchMatch will be the
|
||||||
|
* default runner. Other runner's matches will be suggested in the
|
||||||
|
* interface. Non-exact matches should be offered via SearchContext::addPossibleMatch.
|
||||||
|
*
|
||||||
|
* The match will be activated if the user selects it.
|
||||||
|
*
|
||||||
|
* If this runner's exact match is selected, it will be passed into
|
||||||
|
* the exec method.
|
||||||
* @see exec
|
* @see exec
|
||||||
*
|
*
|
||||||
* Ownership of the action passes to the AbstractRunner class.
|
* Since each runner is executed in its own thread there is no need
|
||||||
|
* to return from this method right away, nor to create all matches
|
||||||
|
* here.
|
||||||
*/
|
*/
|
||||||
virtual void match(Plasma::SearchContext *search) = 0;
|
virtual void match(Plasma::SearchContext *search) = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user