6#include <PhosphorShellLauncher/phosphorshelllauncher_export.h>
12#include <QVariantList>
15class QAbstractItemModel;
47 explicit WindowsProvider(QAbstractItemModel* toplevels, QObject* parent =
nullptr);
50 [[nodiscard]] QString
id()
const override;
52 [[nodiscard]] QString
iconName()
const override;
56 [[nodiscard]] QList<PhosphorRegistry::LauncherResult>
results()
const override;
80 void watchToplevels();
81 [[nodiscard]] QObject* toplevelAt(
int row)
const;
82 [[nodiscard]] QObject* toplevelFor(
const QString& resultId)
const;
84 QPointer<QAbstractItemModel> m_toplevels;
85 int m_toplevelRole = -1;
86 bool m_native =
false;
87 QVariantList m_nativeWindows;
89 QList<PhosphorRegistry::LauncherResult> m_results;
92 QSet<QObject*> m_watched;
Definition ILauncherProvider.h:106
Activation
Definition ILauncherProvider.h:112
QString iconName() const override
QString displayName() const override
bool listsOnEmptyQuery() const override
~WindowsProvider() override
WindowsProvider(QAbstractItemModel *toplevels, QObject *parent=nullptr)
The model is resolved ONCE, here, and so is its "toplevel" role.
bool activate(const QString &resultId, Activation activation) override
void nativeWindowActivated(const QString &windowId)
void setNativeWindows(const QVariantList &windows)
QList< PhosphorRegistry::LauncherResult > results() const override
QString id() const override
void setQuery(const QString &query) override
Definition AppsProvider.h:19