17 #ifndef ORIENTATIONLOCK_H
18 #define ORIENTATIONLOCK_H
21 #include <QtCore/QObject>
22 #include <QtDBus/QDBusInterface>
34 Q_PROPERTY(
bool enabled READ enabled NOTIFY enabledChanged)
35 Q_PROPERTY(Qt::ScreenOrientation savedOrientation READ savedOrientation WRITE setSavedOrientation
36 NOTIFY savedOrientationChanged)
43 Qt::ScreenOrientation savedOrientation()
const;
44 void setSavedOrientation(
const Qt::ScreenOrientation orientation);
47 void enabledChanged();
48 void savedOrientationChanged();
51 static void onEnabledChangedProxy(GSettings *settings,
const gchar *key, gpointer data);
52 void onEnabledChanged();
55 QDBusInterface *dbusInterface;
56 GSettings *systemSettings;
59 Qt::ScreenOrientation m_savedOrientation;
62 #endif // ORIENTATIONLOCK_H
The OrientationLock class exports orientation lock related properties to QML It has two properties: ...