6#include <PhosphorShellLauncher/phosphorshelllauncher_export.h>
13class QAbstractItemModel;
49 [[nodiscard]] QString
id()
const override;
51 [[nodiscard]] QString
iconName()
const override;
55 [[nodiscard]] QList<PhosphorRegistry::LauncherResult>
results()
const override;
63 [[nodiscard]]
int rowFor(
const QString& resultId)
const;
64 [[nodiscard]]
int role(
const char* name)
const;
66 QPointer<QObject> m_service;
67 QPointer<QAbstractItemModel> m_history;
69 QList<PhosphorRegistry::LauncherResult> m_results;
73 int m_previewRole = -1;
75 int m_timestampRole = -1;
76 int m_maximumResults = 24;
Definition ILauncherProvider.h:106
Activation
Definition ILauncherProvider.h:112
ClipboardProvider(QObject *service, QObject *parent=nullptr)
The service is resolved ONCE, here.
bool listsOnEmptyQuery() const override
QString displayName() const override
int maximumResults() const
QList< PhosphorRegistry::LauncherResult > results() const override
QString id() const override
QString iconName() const override
void setQuery(const QString &query) override
~ClipboardProvider() override
void setMaximumResults(int count)
bool activate(const QString &resultId, Activation activation) override
Definition AppsProvider.h:19