30#include <QDBusArgument>
40 Q_PROPERTY(
int x READ
x)
41 Q_PROPERTY(
int y READ
y)
42 Q_PROPERTY(
int z READ
z)
93 float x()
const {
return data_.x_; }
100 float y()
const {
return data_.y_; }
107 float z()
const {
return data_.z_; }
133inline QDBusArgument &operator<<(QDBusArgument &argument, const
Orientation &orientation)
136 argument.beginStructure();
137 argument << orientation.orientationData().timestamp_ << orientation.orientationData().x_ << orientation.orientationData().y_ << orientation.orientationData().z_;
138 argument.endStructure();
152 argument.beginStructure();
158 argument.endStructure();
QObject facade for OrientationData.
const OrientationData & orientationData() const
Accessor for contained OrientationData.
Orientation(const OrientationData &orientationData)
Constructor.
float x() const
Accessor for X coordinate.
DisplayOrientation
Display orientation.
@ OrientationDisplayLeftUp
@ OrientationDisplayDownwards
@ OrientationDisplayRightUp
@ OrientationDisplayUpwards
friend const QDBusArgument & operator>>(const QDBusArgument &argument, Orientation &orientation)
Unmarshall Orientation data from the D-Bus argument.
float z() const
Accessor for Z coordinate.
Orientation(const Orientation &orientation)
Copy constructor.
float y() const
Accessor for Y coordinate.
DisplayOrientation orientation
DisplayOrientation orientation() const
Accessor for display orientation.
Orientation()
Default constructor.
Q_DECLARE_METATYPE(TMatrix)
const QDBusArgument & operator>>(const QDBusArgument &argument, Orientation &orientation)
Unmarshall Orientation data from the D-Bus argument.
Datatypes for different filters.
TimedXyzData OrientationData
Device orientation measurement data.