7#ifndef PLASMA_QUERYMATCH_H
8#define PLASMA_QUERYMATCH_H
11#include <QSharedDataPointer>
14#include "krunner_export.h"
26class QueryMatchPrivate;
44#if KRUNNER_ENABLE_DEPRECATED_SINCE(5, 99)
50 InformationalMatch KRUNNER_ENUMERATOR_DEPRECATED_VERSION(5, 99,
"Call RunnerContext::requestQueryStringUpdate in AbstractRunner::run method instead") =
82 bool operator==(
const QueryMatch &other)
const;
83 bool operator!=(
const QueryMatch &other)
const;
241#if KRUNNER_ENABLE_DEPRECATED_SINCE(5, 82)
248 KRUNNER_DEPRECATED_VERSION(5, 82,
"deprecated for lack of usage")
249 void setMimeType(const QString &mimeType);
255 KRUNNER_DEPRECATED_VERSION(5, 82, "deprecated for lack of usage")
256 QString mimeType() const;
328#if KRUNNER_ENABLE_DEPRECATED_SINCE(5, 71)
334 KRUNNER_DEPRECATED_VERSION_BELATED(5, 71, 5, 0,
"No longer use, feature removed")
335 bool hasConfigurationInterface() const;
338#if KRUNNER_ENABLE_DEPRECATED_SINCE(5, 71)
348 KRUNNER_DEPRECATED_VERSION_BELATED(5, 71, 5, 0,
"No longer use, feature removed")
349 void createConfigurationInterface(QWidget *parent);
353 QSharedDataPointer<QueryMatchPrivate> d;
358#if !KRUNNER_ENABLE_DEPRECATED_SINCE(5, 91)
An abstract base class for Plasma Runner plugins.
Definition abstractrunner.h:69
A match returned by an AbstractRunner in response to a given RunnerContext.
Definition querymatch.h:35
Type
The type of match.
Definition querymatch.h:40
QList< QUrl > urls() const
QAction * selectedAction() const
The current action.
Type type() const
The type of action this is.
QueryMatch(const QueryMatch &other)
Copy constructor.
void setIcon(const QIcon &icon)
Sets the icon associated with this match.
void setEnabled(bool enable)
Sets whether or not this match can be activited.
void setRelevance(qreal relevance)
Sets the relevance of this action for the search it was created for.
bool isMultiLine() const
If the text should be displayed as a multiLine string If no explicit value is set set using setMultil...
void setText(const QString &text)
Sets the main title text for this match; should be short enough to fit nicely on one line in a user i...
void setMultiLine(bool multiLine)
Set if the text should be displayed as a multiLine string.
void setActions(const QList< QAction * > &actions)
Set the actions for this match.
QList< QAction * > actions() const
List of actions set for this match.
qreal relevance() const
The relevance of this action to the search.
void addAction(QAction *actions)
Adds an action to this match.
void setUrls(const QList< QUrl > &urls)
Sets the urls, if any, associated with this match.
void setSubtext(const QString &text)
Sets the descriptive text for this match; can be longer than the main title text.
QueryMatch(AbstractRunner *runner=nullptr)
Constructs a PossibleMatch associated with a given RunnerContext and runner.
void setId(const QString &id)
Sets the id for this match; useful if the id does not match data().toString().
QString matchCategory() const
Extra information about the match which can be used to categorize the type.
void setIconName(const QString &iconName)
Sets the icon name associated with this match.
void setData(const QVariant &data)
Sets data to be used internally by the associated AbstractRunner.
void setType(Type type)
Sets the type of match this action represents.
void run(const RunnerContext &context) const
Requests this match to activae using the given context.
AbstractRunner * runner() const
void setSelectedAction(QAction *action)
Sets the selected action.
void setMatchCategory(const QString &category)
Sets information about the type of the match which can be used to categorize the match.
The RunnerContext class provides information related to a search, including the search term,...
Definition runnercontext.h:32