Changeset View
Changeset View
Standalone View
Standalone View
src/client/xdgshell_p.h
Show All 34 Lines | |||||
35 | public: | 35 | public: | ||
36 | virtual ~Private(); | 36 | virtual ~Private(); | ||
37 | virtual void setupV5(xdg_shell *xdgshellv5) { | 37 | virtual void setupV5(xdg_shell *xdgshellv5) { | ||
38 | Q_UNUSED(xdgshellv5) | 38 | Q_UNUSED(xdgshellv5) | ||
39 | } | 39 | } | ||
40 | virtual void setupV6(zxdg_shell_v6 *xdgshellv6) { | 40 | virtual void setupV6(zxdg_shell_v6 *xdgshellv6) { | ||
41 | Q_UNUSED(xdgshellv6) | 41 | Q_UNUSED(xdgshellv6) | ||
42 | } | 42 | } | ||
43 | virtual void setup(xdg_wm_base *xdgshell) { | ||||
44 | Q_UNUSED(xdgshell); | ||||
45 | } | ||||
43 | virtual void release() = 0; | 46 | virtual void release() = 0; | ||
44 | virtual void destroy() = 0; | 47 | virtual void destroy() = 0; | ||
45 | virtual bool isValid() const = 0; | 48 | virtual bool isValid() const = 0; | ||
46 | virtual operator xdg_shell*() { | 49 | virtual operator xdg_shell*() { | ||
47 | return nullptr; | 50 | return nullptr; | ||
48 | } | 51 | } | ||
49 | virtual operator xdg_shell*() const { | 52 | virtual operator xdg_shell*() const { | ||
50 | return nullptr; | 53 | return nullptr; | ||
51 | } | 54 | } | ||
52 | virtual operator zxdg_shell_v6*() { | 55 | virtual operator zxdg_shell_v6*() { | ||
53 | return nullptr; | 56 | return nullptr; | ||
54 | } | 57 | } | ||
55 | virtual operator zxdg_shell_v6*() const { | 58 | virtual operator zxdg_shell_v6*() const { | ||
56 | return nullptr; | 59 | return nullptr; | ||
57 | } | 60 | } | ||
61 | virtual operator xdg_wm_base*() { | ||||
62 | return nullptr; | ||||
63 | } | ||||
64 | virtual operator xdg_wm_base*() const { | ||||
65 | return nullptr; | ||||
66 | } | ||||
67 | | ||||
58 | virtual XdgShellSurface *getXdgSurface(Surface *surface, QObject *parent) = 0; | 68 | virtual XdgShellSurface *getXdgSurface(Surface *surface, QObject *parent) = 0; | ||
59 | 69 | | |||
60 | virtual XdgShellPopup *getXdgPopup(Surface *surface, Surface *parentSurface, Seat *seat, quint32 serial, const QPoint &parentPos, QObject *parent) { | 70 | virtual XdgShellPopup *getXdgPopup(Surface *surface, Surface *parentSurface, Seat *seat, quint32 serial, const QPoint &parentPos, QObject *parent) { | ||
61 | Q_UNUSED(surface) | 71 | Q_UNUSED(surface) | ||
62 | Q_UNUSED(parentSurface) | 72 | Q_UNUSED(parentSurface) | ||
63 | Q_UNUSED(seat) | 73 | Q_UNUSED(seat) | ||
64 | Q_UNUSED(serial) | 74 | Q_UNUSED(serial) | ||
65 | Q_UNUSED(parentPos) | 75 | Q_UNUSED(parentPos) | ||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
110 | public: | 120 | public: | ||
111 | explicit XdgShellUnstableV6(QObject *parent = nullptr); | 121 | explicit XdgShellUnstableV6(QObject *parent = nullptr); | ||
112 | virtual ~XdgShellUnstableV6(); | 122 | virtual ~XdgShellUnstableV6(); | ||
113 | 123 | | |||
114 | private: | 124 | private: | ||
115 | class Private; | 125 | class Private; | ||
116 | }; | 126 | }; | ||
117 | 127 | | |||
128 | class XdgShellStable : public XdgShell | ||||
129 | { | ||||
130 | Q_OBJECT | ||||
131 | public: | ||||
132 | explicit XdgShellStable(QObject *parent = nullptr); | ||||
133 | virtual ~XdgShellStable(); | ||||
134 | | ||||
135 | private: | ||||
136 | class Private; | ||||
137 | | ||||
138 | }; | ||||
139 | | ||||
118 | class XdgShellSurfaceUnstableV5 : public XdgShellSurface | 140 | class XdgShellSurfaceUnstableV5 : public XdgShellSurface | ||
119 | { | 141 | { | ||
120 | Q_OBJECT | 142 | Q_OBJECT | ||
121 | public: | 143 | public: | ||
122 | virtual ~XdgShellSurfaceUnstableV5(); | 144 | virtual ~XdgShellSurfaceUnstableV5(); | ||
123 | 145 | | |||
124 | private: | 146 | private: | ||
125 | explicit XdgShellSurfaceUnstableV5(QObject *parent = nullptr); | 147 | explicit XdgShellSurfaceUnstableV5(QObject *parent = nullptr); | ||
126 | friend class XdgShellUnstableV5; | 148 | friend class XdgShellUnstableV5; | ||
127 | class Private; | 149 | class Private; | ||
128 | }; | 150 | }; | ||
129 | 151 | | |||
130 | class XdgTopLevelUnstableV6 : public XdgShellSurface | 152 | class XdgTopLevelUnstableV6 : public XdgShellSurface | ||
131 | { | 153 | { | ||
132 | Q_OBJECT | 154 | Q_OBJECT | ||
133 | public: | 155 | public: | ||
134 | virtual ~XdgTopLevelUnstableV6(); | 156 | virtual ~XdgTopLevelUnstableV6(); | ||
135 | 157 | | |||
136 | private: | 158 | private: | ||
137 | explicit XdgTopLevelUnstableV6(QObject *parent = nullptr); | 159 | explicit XdgTopLevelUnstableV6(QObject *parent = nullptr); | ||
138 | friend class XdgShellUnstableV6; | 160 | friend class XdgShellUnstableV6; | ||
139 | class Private; | 161 | class Private; | ||
140 | }; | 162 | }; | ||
141 | 163 | | |||
164 | class XdgTopLevelStable : public XdgShellSurface | ||||
165 | { | ||||
166 | Q_OBJECT | ||||
167 | public: | ||||
168 | virtual ~XdgTopLevelStable(); | ||||
169 | | ||||
170 | private: | ||||
171 | explicit XdgTopLevelStable(QObject *parent = nullptr); | ||||
172 | friend class XdgShellStable; | ||||
173 | class Private; | ||||
174 | }; | ||||
175 | | ||||
142 | class Q_DECL_HIDDEN XdgShellSurface::Private | 176 | class Q_DECL_HIDDEN XdgShellSurface::Private | ||
143 | { | 177 | { | ||
144 | public: | 178 | public: | ||
145 | virtual ~Private(); | 179 | virtual ~Private(); | ||
146 | EventQueue *queue = nullptr; | 180 | EventQueue *queue = nullptr; | ||
147 | QSize size; | 181 | QSize size; | ||
148 | 182 | | |||
149 | virtual void setupV5(xdg_surface *surface) { | 183 | virtual void setupV5(xdg_surface *surface) { | ||
150 | Q_UNUSED(surface) | 184 | Q_UNUSED(surface) | ||
151 | } | 185 | } | ||
152 | virtual void setupV6(zxdg_surface_v6 *surface, zxdg_toplevel_v6 *toplevel) | 186 | virtual void setupV6(zxdg_surface_v6 *surface, zxdg_toplevel_v6 *toplevel) | ||
153 | { | 187 | { | ||
154 | Q_UNUSED(toplevel) | 188 | Q_UNUSED(toplevel) | ||
155 | Q_UNUSED(surface) | 189 | Q_UNUSED(surface) | ||
156 | } | 190 | } | ||
191 | virtual void setup(xdg_surface *surface, xdg_toplevel *toplevel) | ||||
192 | { | ||||
193 | Q_UNUSED(surface) | ||||
194 | Q_UNUSED(toplevel) | ||||
195 | } | ||||
157 | virtual void release() = 0; | 196 | virtual void release() = 0; | ||
158 | virtual void destroy() = 0; | 197 | virtual void destroy() = 0; | ||
159 | virtual bool isValid() const = 0; | 198 | virtual bool isValid() const = 0; | ||
160 | virtual operator xdg_surface*() { | 199 | virtual operator xdg_surface*() { | ||
161 | return nullptr; | 200 | return nullptr; | ||
162 | } | 201 | } | ||
163 | virtual operator xdg_surface*() const { | 202 | virtual operator xdg_surface*() const { | ||
164 | return nullptr; | 203 | return nullptr; | ||
165 | } | 204 | } | ||
205 | virtual operator xdg_toplevel*() { | ||||
206 | return nullptr; | ||||
207 | } | ||||
208 | virtual operator xdg_toplevel*() const { | ||||
209 | return nullptr; | ||||
210 | } | ||||
166 | virtual operator zxdg_surface_v6*() { | 211 | virtual operator zxdg_surface_v6*() { | ||
167 | return nullptr; | 212 | return nullptr; | ||
168 | } | 213 | } | ||
169 | virtual operator zxdg_surface_v6*() const { | 214 | virtual operator zxdg_surface_v6*() const { | ||
170 | return nullptr; | 215 | return nullptr; | ||
171 | } | 216 | } | ||
172 | virtual operator zxdg_toplevel_v6*() { | 217 | virtual operator zxdg_toplevel_v6*() { | ||
173 | return nullptr; | 218 | return nullptr; | ||
Show All 33 Lines | 247 | public: | |||
207 | 252 | | |||
208 | virtual void setupV5(xdg_popup *p) { | 253 | virtual void setupV5(xdg_popup *p) { | ||
209 | Q_UNUSED(p) | 254 | Q_UNUSED(p) | ||
210 | } | 255 | } | ||
211 | virtual void setupV6(zxdg_surface_v6 *s, zxdg_popup_v6 *p) { | 256 | virtual void setupV6(zxdg_surface_v6 *s, zxdg_popup_v6 *p) { | ||
212 | Q_UNUSED(s) | 257 | Q_UNUSED(s) | ||
213 | Q_UNUSED(p) | 258 | Q_UNUSED(p) | ||
214 | } | 259 | } | ||
260 | virtual void setup(xdg_surface *s, xdg_popup *p) { | ||||
261 | Q_UNUSED(s) | ||||
262 | Q_UNUSED(p) | ||||
263 | } | ||||
215 | virtual void release() = 0; | 264 | virtual void release() = 0; | ||
216 | virtual void destroy() = 0; | 265 | virtual void destroy() = 0; | ||
217 | virtual bool isValid() const = 0; | 266 | virtual bool isValid() const = 0; | ||
218 | virtual void requestGrab(Seat *seat, quint32 serial) { | 267 | virtual void requestGrab(Seat *seat, quint32 serial) { | ||
219 | Q_UNUSED(seat); | 268 | Q_UNUSED(seat); | ||
220 | Q_UNUSED(serial); | 269 | Q_UNUSED(serial); | ||
221 | }; | 270 | }; | ||
271 | virtual operator xdg_surface*() { | ||||
272 | return nullptr; | ||||
273 | } | ||||
274 | virtual operator xdg_surface*() const { | ||||
275 | return nullptr; | ||||
276 | } | ||||
222 | virtual operator xdg_popup*() { | 277 | virtual operator xdg_popup*() { | ||
223 | return nullptr; | 278 | return nullptr; | ||
224 | } | 279 | } | ||
225 | virtual operator xdg_popup*() const { | 280 | virtual operator xdg_popup*() const { | ||
226 | return nullptr; | 281 | return nullptr; | ||
227 | } | 282 | } | ||
228 | virtual operator zxdg_surface_v6*() { | 283 | virtual operator zxdg_surface_v6*() { | ||
229 | return nullptr; | 284 | return nullptr; | ||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 327 | public: | |||
273 | virtual ~XdgShellPopupUnstableV6(); | 328 | virtual ~XdgShellPopupUnstableV6(); | ||
274 | 329 | | |||
275 | private: | 330 | private: | ||
276 | explicit XdgShellPopupUnstableV6(QObject *parent = nullptr); | 331 | explicit XdgShellPopupUnstableV6(QObject *parent = nullptr); | ||
277 | friend class XdgShellUnstableV6; | 332 | friend class XdgShellUnstableV6; | ||
278 | class Private; | 333 | class Private; | ||
279 | }; | 334 | }; | ||
280 | 335 | | |||
336 | class XdgShellPopupStable : public XdgShellPopup | ||||
337 | { | ||||
338 | public: | ||||
339 | virtual ~XdgShellPopupStable(); | ||||
281 | 340 | | |||
341 | private: | ||||
342 | explicit XdgShellPopupStable(QObject *parent = nullptr); | ||||
343 | friend class XdgShellStable; | ||||
344 | class Private; | ||||
345 | }; | ||||
282 | 346 | | |||
283 | } | 347 | } | ||
284 | } | 348 | } | ||
285 | 349 | | |||
286 | #endif | 350 | #endif |