TaskManager::AbstractTasksProxyModelIface

Search for usage in LXR

TaskManager::AbstractTasksProxyModelIface Class Referenceabstract

#include <abstracttasksproxymodeliface.h>

Inheritance diagram for TaskManager::AbstractTasksProxyModelIface:

Public Member Functions

void requestActivate (const QModelIndex &index) override
 
void requestActivities (const QModelIndex &index, const QStringList &activities) override
 
void requestClose (const QModelIndex &index) override
 
void requestMove (const QModelIndex &index) override
 
void requestNewInstance (const QModelIndex &index) override
 
void requestNewVirtualDesktop (const QModelIndex &index) override
 
void requestOpenUrls (const QModelIndex &index, const QList< QUrl > &urls) override
 
void requestPublishDelegateGeometry (const QModelIndex &index, const QRect &geometry, QObject *delegate=nullptr) override
 
void requestResize (const QModelIndex &index) override
 
void requestToggleFullScreen (const QModelIndex &index) override
 
void requestToggleKeepAbove (const QModelIndex &index) override
 
void requestToggleKeepBelow (const QModelIndex &index) override
 
void requestToggleMaximized (const QModelIndex &index) override
 
void requestToggleMinimized (const QModelIndex &index) override
 
void requestToggleShaded (const QModelIndex &index) override
 
void requestVirtualDesktops (const QModelIndex &index, const QVariantList &desktops) override
 
- Public Member Functions inherited from TaskManager::AbstractTasksModelIface

Protected Member Functions

virtual QModelIndex mapIfaceToSource (const QModelIndex &index) const =0
 

Detailed Description

Pure method interface for tasks model implementations.

This is the pure method interface implemented by AbstractTasksModel, as well as other model classes in this library which cannot inherit from AbstractTasksModel.

Author
Eike Hein hein@.nosp@m.kde..nosp@m.org

Definition at line 26 of file abstracttasksproxymodeliface.h.

Constructor & Destructor Documentation

◆ ~AbstractTasksProxyModelIface()

TaskManager::AbstractTasksProxyModelIface::~AbstractTasksProxyModelIface ( )
inlineoverride

Definition at line 29 of file abstracttasksproxymodeliface.h.

Member Function Documentation

◆ requestActivate()

void TaskManager::AbstractTasksProxyModelIface::requestActivate ( const QModelIndex & index)
overridevirtual

Request activation of the task at the given index.

Implementing classes are free to interpret the meaning of "activate" themselves depending on the nature and state of the task, e.g. launch or raise a window task.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 14 of file abstracttasksproxymodeliface.cpp.

◆ requestActivities()

void TaskManager::AbstractTasksProxyModelIface::requestActivities ( const QModelIndex & index,
const QStringList & activities )
overridevirtual

Request moving the task at the given index to the specified activities.

This is meant for tasks that have an associated window, and may be a no-op when there is no window.

Parameters
indexAn index in this tasks model.
activitiesThe new list of activities.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 209 of file abstracttasksproxymodeliface.cpp.

◆ requestClose()

void TaskManager::AbstractTasksProxyModelIface::requestClose ( const QModelIndex & index)
overridevirtual

Request the task at the given index be closed.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 56 of file abstracttasksproxymodeliface.cpp.

◆ requestMove()

void TaskManager::AbstractTasksProxyModelIface::requestMove ( const QModelIndex & index)
overridevirtual

Request starting an interactive move for the task at the given index.

This is meant for tasks that have an associated window, and may be a no-op when there is no window.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 69 of file abstracttasksproxymodeliface.cpp.

◆ requestNewInstance()

void TaskManager::AbstractTasksProxyModelIface::requestNewInstance ( const QModelIndex & index)
overridevirtual

Request an additional instance of the application backing the task at the given index.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 28 of file abstracttasksproxymodeliface.cpp.

◆ requestNewVirtualDesktop()

void TaskManager::AbstractTasksProxyModelIface::requestNewVirtualDesktop ( const QModelIndex & index)
overridevirtual

Request entering the window at the given index on a new virtual desktop, which is created in response to this request.

Parameters
indexAn index in this window tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 195 of file abstracttasksproxymodeliface.cpp.

◆ requestOpenUrls()

void TaskManager::AbstractTasksProxyModelIface::requestOpenUrls ( const QModelIndex & index,
const QList< QUrl > & urls )
overridevirtual

Requests to open the given URLs with the application backing the task at the given index.

Parameters
indexAn index in this tasks model.
urlsThe URLs to be passed to the application.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 42 of file abstracttasksproxymodeliface.cpp.

◆ requestPublishDelegateGeometry()

void TaskManager::AbstractTasksProxyModelIface::requestPublishDelegateGeometry ( const QModelIndex & index,
const QRect & geometry,
QObject * delegate = nullptr )
overridevirtual

Request informing the window manager of new geometry for a visual delegate for the task at the given index.

The geometry should be in screen coordinates.

Parameters
indexAn index in this tasks model.
geometryVisual delegate geometry in screen coordinates.
delegateThe delegate. Implementations are on their own with regard to extracting information from this, and should take care to reject invalid objects.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 223 of file abstracttasksproxymodeliface.cpp.

◆ requestResize()

void TaskManager::AbstractTasksProxyModelIface::requestResize ( const QModelIndex & index)
overridevirtual

Request starting an interactive resize for the task at the given index.

This is meant for tasks that have an associated window, and may be a no-op when there is no window.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 83 of file abstracttasksproxymodeliface.cpp.

◆ requestToggleFullScreen()

void TaskManager::AbstractTasksProxyModelIface::requestToggleFullScreen ( const QModelIndex & index)
overridevirtual

Request toggling the fullscreen state of the task at the given index.

This is meant for tasks that have an associated window, and may be a no-op when there is no window.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 153 of file abstracttasksproxymodeliface.cpp.

◆ requestToggleKeepAbove()

void TaskManager::AbstractTasksProxyModelIface::requestToggleKeepAbove ( const QModelIndex & index)
overridevirtual

Request toggling the keep-above state of the task at the given index.

This is meant for tasks that have an associated window, and may be a no-op when there is no window.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 125 of file abstracttasksproxymodeliface.cpp.

◆ requestToggleKeepBelow()

void TaskManager::AbstractTasksProxyModelIface::requestToggleKeepBelow ( const QModelIndex & index)
overridevirtual

Request toggling the keep-below state of the task at the given index.

This is meant for tasks that have an associated window, and may be a no-op when there is no window.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 139 of file abstracttasksproxymodeliface.cpp.

◆ requestToggleMaximized()

void TaskManager::AbstractTasksProxyModelIface::requestToggleMaximized ( const QModelIndex & index)
overridevirtual

Request toggling the maximized state of the task at the given index.

This is meant for tasks that have an associated window, and may be a no-op when there is no window.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 111 of file abstracttasksproxymodeliface.cpp.

◆ requestToggleMinimized()

void TaskManager::AbstractTasksProxyModelIface::requestToggleMinimized ( const QModelIndex & index)
overridevirtual

Request toggling the minimized state of the task at the given index.

This is meant for tasks that have an associated window, and may be a no-op when there is no window.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 97 of file abstracttasksproxymodeliface.cpp.

◆ requestToggleShaded()

void TaskManager::AbstractTasksProxyModelIface::requestToggleShaded ( const QModelIndex & index)
overridevirtual

Request toggling the shaded state of the task at the given index.

This is meant for tasks that have an associated window, and may be a no-op when there is no window.

Parameters
indexAn index in this tasks model.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 167 of file abstracttasksproxymodeliface.cpp.

◆ requestVirtualDesktops()

void TaskManager::AbstractTasksProxyModelIface::requestVirtualDesktops ( const QModelIndex & index,
const QVariantList & desktops )
overridevirtual

Request entering the window at the given index on the specified virtual desktops, leaving any other desktops.

On Wayland, virtual desktop ids are QStrings. On X11, they are uint >0.

An empty list has a special meaning: The window is entered on all virtual desktops in the session.

On X11, a window can only be on one or all virtual desktops. Therefore, only the first list entry is actually used.

On X11, the id 0 has a special meaning: The window is entered on all virtual desktops in the session.

Parameters
indexAn index in this window tasks model.
desktopsA list of virtual desktop ids.

Implements TaskManager::AbstractTasksModelIface.

Definition at line 181 of file abstracttasksproxymodeliface.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Sep 27 2024 11:54:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.