summaryrefslogtreecommitdiffstats
path: root/src/utils/b2qtdevice.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-06-17 17:14:00 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-06-18 17:01:37 +0300
commit595b5eadc0504c6d4657772d893524542501d1f4 (patch)
treef7c81c35991075d5da714640f8545facf36c147f /src/utils/b2qtdevice.h
parent6939df96ba7b308aafcc5f10455687ec48571325 (diff)
Expose a physcal screen size property for the settings app
Load/rewrite /var/lib/b2qt/appcontroller.conf.d/physical_screen_size.conf accordingly. Additionally, /etc/appcontroller.conf is parsed first, but it is never modified. Task-number: QTEE-936 Change-Id: Ieea5f230c02135a0edbd696d031ae1d987ad5cbc Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
Diffstat (limited to 'src/utils/b2qtdevice.h')
-rw-r--r--src/utils/b2qtdevice.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/b2qtdevice.h b/src/utils/b2qtdevice.h
index 952f67a..288f62d 100644
--- a/src/utils/b2qtdevice.h
+++ b/src/utils/b2qtdevice.h
@@ -29,6 +29,8 @@ class Q_DECL_EXPORT B2QtDevice : public QObject
Q_PROPERTY(QString hostname READ hostname WRITE setHostname NOTIFY hostnameChanged)
Q_PROPERTY(QString ipAddress READ getIPAddress NOTIFY ipAddressChanged)
Q_PROPERTY(int masterVolume READ masterVolume WRITE setMasterVolume NOTIFY masterVolumeChanged)
+ Q_PROPERTY(int physicalScreenSizeInch READ physicalScreenSizeInch WRITE setPhysicalScreenSizeInch NOTIFY physicalScreenSizeInchChanged)
+ Q_PROPERTY(bool physicalScreenSizeOverride READ physicalScreenSizeOverride WRITE setPhysicalScreenSizeOverride NOTIFY physicalScreenSizeOverrideChanged)
public:
B2QtDevice(QObject *parent = 0);
@@ -38,6 +40,8 @@ public:
QString hostname() const;
QString getIPAddress() const;
int masterVolume() const;
+ int physicalScreenSizeInch() const;
+ bool physicalScreenSizeOverride() const;
void initAudio();
@@ -48,12 +52,16 @@ public Q_SLOTS:
bool setDisplayBrightness(int value);
bool setHostname(const QString &name);
void setMasterVolume(int volume);
+ void setPhysicalScreenSizeInch(int inches);
+ void setPhysicalScreenSizeOverride(bool enable);
signals:
void displayBrightnessChanged(int newValue);
void hostnameChanged(const QString &newName);
void ipAddressChanged(const QString &newAddress);
void masterVolumeChanged(int newVolume);
+ void physicalScreenSizeInchChanged(int newInches);
+ void physicalScreenSizeOverrideChanged(bool newValue);
};
#endif // B2QTDEVICE_H