TaskManager::AbstractTasksProxyModelIface
#include <abstracttasksproxymodeliface.h>
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.
Definition at line 26 of file abstracttasksproxymodeliface.h.
Constructor & Destructor Documentation
◆ ~AbstractTasksProxyModelIface()
|
inlineoverride |
Definition at line 29 of file abstracttasksproxymodeliface.h.
Member Function Documentation
◆ requestActivate()
|
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
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 14 of file abstracttasksproxymodeliface.cpp.
◆ requestActivities()
|
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
-
index An index in this tasks model. activities The new list of activities.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 209 of file abstracttasksproxymodeliface.cpp.
◆ requestClose()
|
overridevirtual |
Request the task at the given index be closed.
- Parameters
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 56 of file abstracttasksproxymodeliface.cpp.
◆ requestMove()
|
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
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 69 of file abstracttasksproxymodeliface.cpp.
◆ requestNewInstance()
|
overridevirtual |
Request an additional instance of the application backing the task at the given index.
- Parameters
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 28 of file abstracttasksproxymodeliface.cpp.
◆ requestNewVirtualDesktop()
|
overridevirtual |
Request entering the window at the given index on a new virtual desktop, which is created in response to this request.
- Parameters
-
index An index in this window tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 195 of file abstracttasksproxymodeliface.cpp.
◆ requestOpenUrls()
|
overridevirtual |
Requests to open the given URLs with the application backing the task at the given index.
- Parameters
-
index An index in this tasks model. urls The URLs to be passed to the application.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 42 of file abstracttasksproxymodeliface.cpp.
◆ requestPublishDelegateGeometry()
|
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
-
index An index in this tasks model. geometry Visual delegate geometry in screen coordinates. delegate The 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()
|
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
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 83 of file abstracttasksproxymodeliface.cpp.
◆ requestToggleFullScreen()
|
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
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 153 of file abstracttasksproxymodeliface.cpp.
◆ requestToggleKeepAbove()
|
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
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 125 of file abstracttasksproxymodeliface.cpp.
◆ requestToggleKeepBelow()
|
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
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 139 of file abstracttasksproxymodeliface.cpp.
◆ requestToggleMaximized()
|
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
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 111 of file abstracttasksproxymodeliface.cpp.
◆ requestToggleMinimized()
|
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
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 97 of file abstracttasksproxymodeliface.cpp.
◆ requestToggleShaded()
|
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
-
index An index in this tasks model.
Implements TaskManager::AbstractTasksModelIface.
Definition at line 167 of file abstracttasksproxymodeliface.cpp.
◆ requestVirtualDesktops()
|
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
-
index An index in this window tasks model. desktops A 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:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.