Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/abstracttasksmodel.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 49 | enum AdditionalRoles { | |||
---|---|---|---|---|---|
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. This is provided best-effort, and may not | 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 | 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 | 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 | 91 | itself. DO NOT use this for destructive actions such as closing | ||
92 | the application. The intended use case is to try and (smartly) | 92 | the application. The intended use case is to try and (smartly) | ||
93 | gather more information about the task when needed. */ | 93 | gather more information about the task when needed. */ | ||
94 | StackingOrder, /**< A window task's index in the window stacking order. Care must be | ||||
95 | taken not to assume this index to be unique when iterating over | ||||
96 | model contents due to the asynchronous nature of the windowing | ||||
97 | system. */ | ||||
98 | LastActivated, /**< The timestamp of the last time a task was the active task. */ | ||||
94 | }; | 99 | }; | ||
95 | Q_ENUM(AdditionalRoles) | 100 | Q_ENUM(AdditionalRoles) | ||
96 | 101 | | |||
97 | explicit AbstractTasksModel(QObject *parent = nullptr); | 102 | explicit AbstractTasksModel(QObject *parent = nullptr); | ||
98 | ~AbstractTasksModel() override; | 103 | ~AbstractTasksModel() override; | ||
99 | 104 | | |||
100 | QHash<int, QByteArray> roleNames() const override; | 105 | QHash<int, QByteArray> roleNames() const override; | ||
101 | 106 | | |||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |