Changeset View
Changeset View
Standalone View
Standalone View
dbusinterface.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
47 | * @author Martin Gräßlin <mgraesslin@kde.org> | 47 | * @author Martin Gräßlin <mgraesslin@kde.org> | ||
48 | **/ | 48 | **/ | ||
49 | class DBusInterface: public QObject, protected QDBusContext | 49 | class DBusInterface: public QObject, protected QDBusContext | ||
50 | { | 50 | { | ||
51 | Q_OBJECT | 51 | Q_OBJECT | ||
52 | Q_CLASSINFO("D-Bus Interface", "org.kde.KWin") | 52 | Q_CLASSINFO("D-Bus Interface", "org.kde.KWin") | ||
53 | public: | 53 | public: | ||
54 | explicit DBusInterface(QObject *parent); | 54 | explicit DBusInterface(QObject *parent); | ||
55 | virtual ~DBusInterface(); | 55 | ~DBusInterface() override; | ||
56 | 56 | | |||
57 | public: // PROPERTIES | 57 | public: // PROPERTIES | ||
58 | public Q_SLOTS: // METHODS | 58 | public Q_SLOTS: // METHODS | ||
59 | Q_NOREPLY void cascadeDesktop(); | 59 | Q_NOREPLY void cascadeDesktop(); | ||
60 | int currentDesktop(); | 60 | int currentDesktop(); | ||
61 | Q_NOREPLY void killWindow(); | 61 | Q_NOREPLY void killWindow(); | ||
62 | void nextDesktop(); | 62 | void nextDesktop(); | ||
63 | void previousDesktop(); | 63 | void previousDesktop(); | ||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 85 | { | |||
120 | * @li egl | 120 | * @li egl | ||
121 | * | 121 | * | ||
122 | * Values depend on operation mode and compile time options. | 122 | * Values depend on operation mode and compile time options. | ||
123 | **/ | 123 | **/ | ||
124 | Q_PROPERTY(QStringList supportedOpenGLPlatformInterfaces READ supportedOpenGLPlatformInterfaces) | 124 | Q_PROPERTY(QStringList supportedOpenGLPlatformInterfaces READ supportedOpenGLPlatformInterfaces) | ||
125 | Q_PROPERTY(bool platformRequiresCompositing READ platformRequiresCompositing) | 125 | Q_PROPERTY(bool platformRequiresCompositing READ platformRequiresCompositing) | ||
126 | public: | 126 | public: | ||
127 | explicit CompositorDBusInterface(Compositor *parent); | 127 | explicit CompositorDBusInterface(Compositor *parent); | ||
128 | virtual ~CompositorDBusInterface() = default; | 128 | ~CompositorDBusInterface() override = default; | ||
129 | 129 | | |||
130 | bool isActive() const; | 130 | bool isActive() const; | ||
131 | bool isCompositingPossible() const; | 131 | bool isCompositingPossible() const; | ||
132 | QString compositingNotPossibleReason() const; | 132 | QString compositingNotPossibleReason() const; | ||
133 | bool isOpenGLBroken() const; | 133 | bool isOpenGLBroken() const; | ||
134 | QString compositingType() const; | 134 | QString compositingType() const; | ||
135 | QStringList supportedOpenGLPlatformInterfaces() const; | 135 | QStringList supportedOpenGLPlatformInterfaces() const; | ||
136 | bool platformRequiresCompositing() const; | 136 | bool platformRequiresCompositing() const; | ||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 185 | { | |||
206 | 206 | | |||
207 | /** | 207 | /** | ||
208 | * list of key/value pairs which every one of them is representing a desktop | 208 | * list of key/value pairs which every one of them is representing a desktop | ||
209 | **/ | 209 | **/ | ||
210 | Q_PROPERTY(KWin::DBusDesktopDataVector desktops READ desktops NOTIFY desktopsChanged); | 210 | Q_PROPERTY(KWin::DBusDesktopDataVector desktops READ desktops NOTIFY desktopsChanged); | ||
211 | 211 | | |||
212 | public: | 212 | public: | ||
213 | VirtualDesktopManagerDBusInterface(VirtualDesktopManager *parent); | 213 | VirtualDesktopManagerDBusInterface(VirtualDesktopManager *parent); | ||
214 | ~VirtualDesktopManagerDBusInterface() = default; | 214 | ~VirtualDesktopManagerDBusInterface() override = default; | ||
215 | 215 | | |||
216 | uint count() const; | 216 | uint count() const; | ||
217 | 217 | | |||
218 | void setRows(uint rows); | 218 | void setRows(uint rows); | ||
219 | uint rows() const; | 219 | uint rows() const; | ||
220 | 220 | | |||
221 | void setCurrent(const QString &id); | 221 | void setCurrent(const QString &id); | ||
222 | QString current() const; | 222 | QString current() const; | ||
Show All 32 Lines |