| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#ifndef KISWAYLANDAPISURFACE_H |
| 7 |
#define KISWAYLANDAPISURFACE_H |
| 8 |
|
| 9 |
#include <QObject> |
| 10 |
#include <qwayland-color-management-v1.h> |
| 11 |
|
| 12 |
class KisWaylandAPIImageDescription; |
| 13 |
|
| 14 |
class KisWaylandAPISurfaceFeedback : public QObject, public QtWayland::wp_color_management_surface_feedback_v1 |
| 15 |
{ |
| 16 |
Q_OBJECT |
| 17 |
public: |
| 18 |
explicit KisWaylandAPISurfaceFeedback(::wp_color_management_surface_feedback_v1 *obj); |
| 19 |
|
| 20 |
~KisWaylandAPISurfaceFeedback(); |
| 21 |
|
| 22 |
Q_SIGNAL void preferredChanged(); |
| 23 |
void wp_color_management_surface_feedback_v1_preferred_changed(uint32_t identity) override; |
| 24 |
|
| 25 |
std::unique_ptr<KisWaylandAPIImageDescription> m_preferred; |
| 26 |
|
| 27 |
private: |
| 28 |
void requestPreferredDescriptionInfo(); |
| 29 |
}; |
| 30 |
|
| 31 |
class KisWaylandAPISurface : public QObject, public QtWayland::wp_color_management_surface_v1 |
| 32 |
{ |
| 33 |
Q_OBJECT |
| 34 |
public: |
| 35 |
explicit KisWaylandAPISurface(::wp_color_management_surface_v1 *obj, std::unique_ptr<KisWaylandAPISurfaceFeedback> &&feedback); |
| 36 |
~KisWaylandAPISurface(); |
| 37 |
|
| 38 |
std::unique_ptr<KisWaylandAPISurfaceFeedback> m_feedback; |
| 39 |
}; |
| 40 |
|
| 41 |
#endif |