Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/abstracttasksmodeliface.h
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Line(s) | 43 | public: | |||
---|---|---|---|---|---|
152 | * This is meant for tasks that have an associated window, and may be | 152 | * This is meant for tasks that have an associated window, and may be | ||
153 | * a no-op when there is no window. | 153 | * a no-op when there is no window. | ||
154 | * | 154 | * | ||
155 | * @param index An index in this tasks model. | 155 | * @param index An index in this tasks model. | ||
156 | **/ | 156 | **/ | ||
157 | virtual void requestToggleShaded(const QModelIndex &index) = 0; | 157 | virtual void requestToggleShaded(const QModelIndex &index) = 0; | ||
158 | 158 | | |||
159 | /** | 159 | /** | ||
160 | * Request moving the task at the given index to the specified virtual | 160 | * Request entering the window at the given index on the specified virtual desktops, | ||
161 | * desktop. | 161 | * leaving any other desktops. | ||
162 | * | 162 | * | ||
163 | * This is meant for tasks that have an associated window, and may be | 163 | * On Wayland, virtual desktop ids are QStrings. On X11, they are uint >0. | ||
164 | * a no-op when there is no window. | | |||
165 | * | 164 | * | ||
166 | * @param index An index in this tasks model. | 165 | * An empty list has a special meaning: The window is entered on all virtual desktops | ||
167 | * @param desktop A virtual desktop number. | 166 | * in the session. | ||
167 | * | ||||
168 | * On X11, a window can only be on one or all virtual desktops. Therefore, only the | ||||
169 | * first list entry is actually used. | ||||
170 | * | ||||
171 | * On X11, the id 0 has a special meaning: The window is entered on all virtual | ||||
172 | * desktops in the session. | ||||
173 | * | ||||
174 | * @param index An index in this window tasks model. | ||||
175 | * @param desktops A list of virtual desktop ids. | ||||
176 | **/ | ||||
177 | virtual void requestVirtualDesktops(const QModelIndex &index, const QVariantList &desktops) = 0; | ||||
178 | | ||||
179 | /** | ||||
180 | * Request entering the window at the given index on a new virtual desktop, | ||||
181 | * which is created in response to this request. | ||||
182 | * | ||||
183 | * @param index An index in this window tasks model. | ||||
168 | **/ | 184 | **/ | ||
169 | virtual void requestVirtualDesktop(const QModelIndex &index, qint32 desktop = -1) = 0; | 185 | virtual void requestNewVirtualDesktop(const QModelIndex &index) = 0; | ||
170 | 186 | | |||
171 | /** | 187 | /** | ||
172 | * Request moving the task at the given index to the specified virtual | 188 | * Request moving the task at the given index to the specified virtual | ||
173 | * activities. | 189 | * activities. | ||
174 | * | 190 | * | ||
175 | * This is meant for tasks that have an associated window, and may be | 191 | * This is meant for tasks that have an associated window, and may be | ||
176 | * a no-op when there is no window. | 192 | * a no-op when there is no window. | ||
177 | * | 193 | * | ||
Show All 26 Lines |