libplasma
Plasma::SearchContext Class Reference
#include <searchcontext.h>

Detailed Description
The SearchContext class provides information related to a search, including the search term, metadata on the search term and collected matches.Definition at line 41 of file searchcontext.h.
Member Enumeration Documentation
Definition at line 46 of file searchcontext.h.
Constructor & Destructor Documentation
| Plasma::SearchContext::SearchContext | ( | QObject * | parent = 0 |
) | [explicit] |
Definition at line 119 of file searchcontext.cpp.
| Plasma::SearchContext::~SearchContext | ( | ) |
Definition at line 139 of file searchcontext.cpp.
| Plasma::SearchContext::SearchContext | ( | QObject * | parent, | |
| const SearchContext & | other | |||
| ) |
Definition at line 125 of file searchcontext.cpp.
Member Function Documentation
| void Plasma::SearchContext::setSearchTerm | ( | const QString & | term | ) |
Sets the search term for this object.
This clears all current matches in the process.
Definition at line 144 of file searchcontext.cpp.
| QString Plasma::SearchContext::searchTerm | ( | ) | const |
| SearchContext::Type Plasma::SearchContext::type | ( | ) | const |
The type of item the search term might refer to.
- See also:
- Type
Definition at line 204 of file searchcontext.cpp.
| QString Plasma::SearchContext::mimetype | ( | ) | const |
The mimetype that the search term refers to, if discoverable.
- Returns:
- QString() if the mimetype can not be determined, otherwise the mimetype of the object being refered to by the search string.
Definition at line 209 of file searchcontext.cpp.
| KCompletion * Plasma::SearchContext::completionObject | ( | ) | const |
- Returns:
- a completion object that can be used with UI elements
Definition at line 214 of file searchcontext.cpp.
| void Plasma::SearchContext::addStringCompletion | ( | const QString & | completion | ) |
| void Plasma::SearchContext::addStringCompletions | ( | const QStringList & | completions | ) |
| SearchMatch * Plasma::SearchContext::addInformationalMatch | ( | AbstractRunner * | runner | ) |
Add an action that represents a match to the current search term.
This action is informational in nature and does not represent and actionable match.
If string data is added to the action using QAction::setData(), that string may be used in user interfaces when the item is selected.
Definition at line 248 of file searchcontext.cpp.
| SearchMatch * Plasma::SearchContext::addExactMatch | ( | AbstractRunner * | runner | ) |
Add an action that represents an exact match to the current search term.
Definition at line 256 of file searchcontext.cpp.
| SearchMatch * Plasma::SearchContext::addPossibleMatch | ( | AbstractRunner * | runner | ) |
Add an action that represents a possible match to the current search term.
Definition at line 264 of file searchcontext.cpp.
| bool Plasma::SearchContext::addMatches | ( | const QString & | term, | |
| const QList< SearchMatch * > & | exactMatches, | |||
| const QList< SearchMatch * > & | possibleMatches, | |||
| const QList< SearchMatch * > & | informationalMatches | |||
| ) |
Appends lists of matches to the lists for exact, possible, and informational matches.
- Returns:
- true if matches were added, false if matches were outdated
Definition at line 272 of file searchcontext.cpp.
| QList< SearchMatch * > Plasma::SearchContext::informationalMatches | ( | ) | const |
Retrieves all available informational matches for the current search term.
Definition at line 288 of file searchcontext.cpp.
| QList< SearchMatch * > Plasma::SearchContext::exactMatches | ( | ) | const |
Retrieves all available exact matches for the current search term.
Definition at line 296 of file searchcontext.cpp.
| QList< SearchMatch * > Plasma::SearchContext::possibleMatches | ( | ) | const |
Retrieves all available possible matches for the current search term.
Definition at line 304 of file searchcontext.cpp.
| void Plasma::SearchContext::determineType | ( | ) |
| void Plasma::SearchContext::clearMatches | ( | ) |
| void Plasma::SearchContext::matchesChanged | ( | ) | [signal] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference