8#include <PhosphorShellLauncher/phosphorshelllauncher_export.h>
15class QFileSystemWatcher;
57 AppsProvider(QStringList directories, QString locale, QStringList currentDesktop, QObject* parent =
nullptr);
60 [[nodiscard]] QString
id()
const override;
62 [[nodiscard]] QString
iconName()
const override;
66 return m_listOnEmptyQuery;
70 [[nodiscard]] QList<PhosphorRegistry::LauncherResult>
results()
const override;
98 [[nodiscard]] QList<DesktopEntry>
entries()
const;
130 AppsProvider(QStringList directories, QString locale, QStringList currentDesktop,
bool deferFirstScan,
139 QStringList m_directories;
141 QStringList m_currentDesktop;
142 QList<DesktopEntry> m_entries;
143 QFileSystemWatcher* m_watcher =
nullptr;
144 QTimer* m_rescanTimer =
nullptr;
146 QList<PhosphorRegistry::LauncherResult> m_results;
147 int m_maximumResults = 24;
148 bool m_listOnEmptyQuery =
false;
Definition ILauncherProvider.h:106
Activation
Definition ILauncherProvider.h:112
int maximumResults() const
QList< PhosphorRegistry::LauncherResult > results() const override
QString id() const override
bool listsOnEmptyQuery() const override
Definition AppsProvider.h:64
void setListOnEmptyQuery(bool enabled)
AppsProvider(QObject *parent=nullptr)
bool activate(const QString &resultId, Activation activation) override
void setQuery(const QString &query) override
QList< DesktopEntry > entries() const
static bool launch(const DesktopEntry &entry)
Launch one entry directly, bypassing the id lookup activate() does.
AppsProvider(QStringList directories, QString locale, QStringList currentDesktop, QObject *parent=nullptr)
static constexpr int SecondaryFieldPenalty
Definition AppsProvider.h:89
QString iconName() const override
void setMaximumResults(int count)
Retunable by a host, though no host in this repo does: the default is what the shell ships with.
QString displayName() const override
static constexpr int ScoreMatch
Definition FuzzyMatcher.h:63
Definition AppsProvider.h:19
Definition DesktopEntry.h:24