libplasma
Plasma::SearchMatch Class Reference
#include <searchmatch.h>
Detailed Description
Definition at line 35 of file searchmatch.h.
Public Types | |
| enum | Type { InformationalMatch, ExactMatch, PossibleMatch } |
Public Member Functions | |
| SearchMatch (SearchContext *search, AbstractRunner *runner) | |
| ~SearchMatch () | |
| void | setType (Type type) |
| Type | type () const |
| void | setMimetype (const QString &mimetype) |
| QString | mimetype () const |
| QString | searchTerm () const |
| void | setRelevance (qreal relevance) |
| qreal | relevance () const |
| AbstractRunner * | runner () const |
| void | setText (const QString &text) |
| void | setData (const QVariant &data) |
| void | setIcon (const QIcon &icon) |
| void | setEnabled (bool enable) |
| QString | text () const |
| QVariant | data () const |
| QIcon | icon () const |
| bool | isEnabled () const |
| bool | operator< (const SearchMatch &other) const |
| void | exec () |
Member Enumeration Documentation
Definition at line 38 of file searchmatch.h.
Constructor & Destructor Documentation
| Plasma::SearchMatch::SearchMatch | ( | SearchContext * | search, | |
| AbstractRunner * | runner | |||
| ) |
Definition at line 58 of file searchmatch.cpp.
| Plasma::SearchMatch::~SearchMatch | ( | ) |
Definition at line 63 of file searchmatch.cpp.
Member Function Documentation
| void Plasma::SearchMatch::setType | ( | Type | type | ) |
| SearchMatch::Type Plasma::SearchMatch::type | ( | ) | const |
| void Plasma::SearchMatch::setMimetype | ( | const QString & | mimetype | ) |
Sets the mimetype, if any, associated with this match.
- mimetype the mimetype
Definition at line 78 of file searchmatch.cpp.
| QString Plasma::SearchMatch::mimetype | ( | ) | const |
| QString Plasma::SearchMatch::searchTerm | ( | ) | const |
| void Plasma::SearchMatch::setRelevance | ( | qreal | relevance | ) |
Sets the relevance of this action for the search it was created for.
- Parameters:
-
relevance a number between 0 and 1.
Definition at line 93 of file searchmatch.cpp.
| qreal Plasma::SearchMatch::relevance | ( | ) | const |
The relevance of this action to the search.
By default, the relevance is 1.
- Returns:
- a number between 0 and 1
Definition at line 98 of file searchmatch.cpp.
| AbstractRunner * Plasma::SearchMatch::runner | ( | ) | const |
| void Plasma::SearchMatch::setText | ( | const QString & | text | ) |
Definition at line 108 of file searchmatch.cpp.
| void Plasma::SearchMatch::setData | ( | const QVariant & | data | ) |
Definition at line 113 of file searchmatch.cpp.
| void Plasma::SearchMatch::setIcon | ( | const QIcon & | icon | ) |
Definition at line 118 of file searchmatch.cpp.
| void Plasma::SearchMatch::setEnabled | ( | bool | enable | ) |
Definition at line 138 of file searchmatch.cpp.
| QString Plasma::SearchMatch::text | ( | ) | const |
Definition at line 128 of file searchmatch.cpp.
| QVariant Plasma::SearchMatch::data | ( | ) | const |
Definition at line 123 of file searchmatch.cpp.
| QIcon Plasma::SearchMatch::icon | ( | ) | const |
Definition at line 133 of file searchmatch.cpp.
| bool Plasma::SearchMatch::isEnabled | ( | ) | const |
Definition at line 143 of file searchmatch.cpp.
| bool Plasma::SearchMatch::operator< | ( | const SearchMatch & | other | ) | const |
Definition at line 148 of file searchmatch.cpp.
| void Plasma::SearchMatch::exec | ( | ) |
Definition at line 153 of file searchmatch.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference