Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/abstracttasksmodel.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 49 | enum AdditionalRoles { | |||
---|---|---|---|---|---|
80 | VirtualDesktop, /**< Virtual desktop for the task (i.e. window). */ | 80 | VirtualDesktop, /**< Virtual desktop for the task (i.e. window). */ | ||
81 | IsOnAllVirtualDesktops, /**< Task is on all virtual desktops. */ | 81 | IsOnAllVirtualDesktops, /**< Task is on all virtual desktops. */ | ||
82 | Geometry, /**< The task's geometry (i.e. the window's). */ | 82 | Geometry, /**< The task's geometry (i.e. the window's). */ | ||
83 | ScreenGeometry, /**< Screen geometry for the task (i.e. the window's screen). */ | 83 | ScreenGeometry, /**< Screen geometry for the task (i.e. the window's screen). */ | ||
84 | Activities, /**< Activities for the task (i.e. window). */ | 84 | Activities, /**< Activities for the task (i.e. window). */ | ||
85 | IsDemandingAttention, /**< Task is demanding attention. */ | 85 | IsDemandingAttention, /**< Task is demanding attention. */ | ||
86 | SkipTaskbar, /**< Task should not be shown in a 'task bar' user interface. */ | 86 | SkipTaskbar, /**< Task should not be shown in a 'task bar' user interface. */ | ||
87 | SkipPager, /**< Task should not to be shown in a 'pager' user interface. */ | 87 | SkipPager, /**< Task should not to be shown in a 'pager' user interface. */ | ||
88 | AppPid, /**< Application Process ID */ | 88 | AppPid, /**< Application Process ID. This is provided best-effort, and may not | ||
89 | be what you expect: For window tasks owned by processes started | ||||
90 | from e.g. kwin_wayland, it would be the process id of kwin | ||||
91 | itself. DO NOT use this for destructive actions such as closing | ||||
92 | the application. The intended use case is to try and (smartly) | ||||
93 | gather more information about the task when needed. */ | ||||
89 | }; | 94 | }; | ||
90 | Q_ENUM(AdditionalRoles) | 95 | Q_ENUM(AdditionalRoles) | ||
91 | 96 | | |||
92 | explicit AbstractTasksModel(QObject *parent = nullptr); | 97 | explicit AbstractTasksModel(QObject *parent = nullptr); | ||
93 | virtual ~AbstractTasksModel(); | 98 | virtual ~AbstractTasksModel(); | ||
94 | 99 | | |||
95 | QHash<int, QByteArray> roleNames() const override; | 100 | QHash<int, QByteArray> roleNames() const override; | ||
96 | 101 | | |||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |