#include <catalog.h>
E.g. query = "google <tab> this is my search" will have 2 InputData segments in the list. One for "google" and one for "this is my search"
Definition at line 146 of file catalog.h.
Public Member Functions | |
QSet< uint > | getLabels () |
Get the labels applied to this query segment. | |
void | setLabel (uint l) |
Apply a label to this query segment. | |
bool | hasLabel (uint l) |
Check if it has the given label applied to it. | |
void | setID (uint i) |
Set the id of this query. | |
uint | getID () |
Returns the current owner id of the query. | |
QString | getText () |
Get the text of the query segment. | |
void | setText (QString t) |
Set the text of the query segment. | |
CatItem & | getTopResult () |
Get a pointer to the best catalog match for this segment of the query. | |
void | setTopResult (CatItem sr) |
Change the best catalog match for this segment. | |
InputData () | |
InputData (QString str) |
QSet<uint> InputData::getLabels | ( | ) | [inline] |
void InputData::setLabel | ( | uint | l | ) | [inline] |
bool InputData::hasLabel | ( | uint | l | ) | [inline] |
void InputData::setID | ( | uint | i | ) | [inline] |
Set the id of this query.
This can be used to override the owner of the selected catalog item, so that no matter what item is chosen from the catalog, the given plugin will be the one to execute it.
i | The plugin id of the plugin to execute the query's best match from the catalog |
uint InputData::getID | ( | ) | [inline] |
QString InputData::getText | ( | ) | [inline] |
void InputData::setText | ( | QString | t | ) | [inline] |
CatItem& InputData::getTopResult | ( | ) | [inline] |
void InputData::setTopResult | ( | CatItem | sr | ) | [inline] |