Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorShellLauncher::WindowsProvider Class Reference

#include <PhosphorShellLauncher/WindowsProvider.h>

Inheritance diagram for PhosphorShellLauncher::WindowsProvider:
[legend]

Signals

void nativeWindowActivated (const QString &windowId)
Signals inherited from PhosphorRegistry::ILauncherProvider
void resultsChanged ()

Public Member Functions

 WindowsProvider (QAbstractItemModel *toplevels, QObject *parent=nullptr)
 The model is resolved ONCE, here, and so is its "toplevel" role.
 ~WindowsProvider () override
QString id () const override
QString displayName () const override
QString iconName () const override
bool listsOnEmptyQuery () const override
void setQuery (const QString &query) override
QList< PhosphorRegistry::LauncherResult > results () const override
bool activate (const QString &resultId, Activation activation) override
void setNativeWindows (const QVariantList &windows)
Public Member Functions inherited from PhosphorRegistry::ILauncherProvider
 ILauncherProvider (QObject *parent=nullptr)
 ~ILauncherProvider () override=default

Additional Inherited Members

Public Types inherited from PhosphorRegistry::ILauncherProvider
enum class  Activation { Primary , Alternate }

Constructor & Destructor Documentation

◆ WindowsProvider()

PhosphorShellLauncher::WindowsProvider::WindowsProvider ( QAbstractItemModel * toplevels,
QObject * parent = nullptr )
explicit

The model is resolved ONCE, here, and so is its "toplevel" role.

A host that publishes the model lazily and constructs this provider first gets a permanently inert provider and one warning at startup: there is no signal on a duck-typed dependency to re-read it from, so the contract is that the model exists by the time this is built.

◆ ~WindowsProvider()

PhosphorShellLauncher::WindowsProvider::~WindowsProvider ( )
override

Member Function Documentation

◆ activate()

bool PhosphorShellLauncher::WindowsProvider::activate ( const QString & resultId,
Activation activation )
nodiscardoverridevirtual

◆ displayName()

QString PhosphorShellLauncher::WindowsProvider::displayName ( ) const
nodiscardoverridevirtual

◆ iconName()

QString PhosphorShellLauncher::WindowsProvider::iconName ( ) const
nodiscardoverridevirtual

◆ id()

QString PhosphorShellLauncher::WindowsProvider::id ( ) const
nodiscardoverridevirtual

◆ listsOnEmptyQuery()

bool PhosphorShellLauncher::WindowsProvider::listsOnEmptyQuery ( ) const
nodiscardoverridevirtual

◆ nativeWindowActivated

void PhosphorShellLauncher::WindowsProvider::nativeWindowActivated ( const QString & windowId)
signal

◆ results()

QList< PhosphorRegistry::LauncherResult > PhosphorShellLauncher::WindowsProvider::results ( ) const
nodiscardoverridevirtual

◆ setNativeWindows()

void PhosphorShellLauncher::WindowsProvider::setNativeWindows ( const QVariantList & windows)

◆ setQuery()

void PhosphorShellLauncher::WindowsProvider::setQuery ( const QString & query)
overridevirtual

The documentation for this class was generated from the following file: