Debian Codegraph @

xcb/libqt5xcbqpa-dev/5.6.0/qxcbxsettings.h

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5 #ifndef QXCBXSETTINGS_H
6 #define QXCBXSETTINGS_H
7
8 #include "qxcbscreen.h"
9
10 QT_BEGIN_NAMESPACE
11
12 class QXcbXSettingsPrivate;
13
14 class QXcbXSettings : public QXcbWindowEventListener
15 {
16 Q_DECLARE_PRIVATE(QXcbXSettings)
17 public:
18 QXcbXSettings(QXcbVirtualDesktop *screen);
19 ~QXcbXSettings();
20 bool initialized() const;
21
22 QVariant setting(const QByteArray &property) const;
23
24 typedef void (*PropertyChangeFunc)(QXcbVirtualDesktop *screen, const QByteArray &name, const QVariant &property, void *handle);
25 void registerCallbackForProperty(const QByteArray &property, PropertyChangeFunc func, void *handle);
26 void removeCallbackForHandle(const QByteArray &property, void *handle);
27 void removeCallbackForHandle(void *handle);
28
29 void handlePropertyNotifyEvent(const xcb_property_notify_event_t *event) Q_DECL_OVERRIDE;
30 private:
31 QXcbXSettingsPrivate *d_ptr;
32 };
33
34 QT_END_NAMESPACE
35
36 #endif // QXCBXSETTINGS_H