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 int x()
const {
return data_.
x_; }
100 int y()
const {
return data_.
y_; }
107 int z()
const {
return data_.
z_; }
133inline QDBusArgument &operator<<(QDBusArgument &argument, const
Orientation &orientation)
135 argument.beginStructure();
136 argument << orientation.orientationData().timestamp_ << orientation.orientationData().x_ << orientation.orientationData().y_ << orientation.orientationData().z_;
137 argument.endStructure();
150 argument.beginStructure();
151 argument >> orientation.data_.
timestamp_ >> orientation.data_.
x_ >> orientation.data_.
y_ >> orientation.data_.
z_;
152 argument.endStructure();
QObject facade for OrientationData.
const OrientationData & orientationData() const
Accessor for contained OrientationData.
Orientation(const OrientationData &orientationData)
Constructor.
DisplayOrientation
Display orientation.
@ OrientationDisplayLeftUp
@ OrientationDisplayDownwards
@ OrientationDisplayRightUp
@ OrientationDisplayUpwards
friend const QDBusArgument & operator>>(const QDBusArgument &argument, Orientation &orientation)
Unmarshall Orientation data from the D-Bus argument.
int y() const
Accessor for Y coordinate.
int x() const
Accessor for X coordinate.
int z() const
Accessor for Z coordinate.
Orientation(const Orientation &orientation)
Copy constructor.
DisplayOrientation orientation
DisplayOrientation orientation() const
Accessor for display orientation.
Orientation()
Default constructor.
quint64 timestamp_
monotonic time (microsec)
Class for vector type measurement data (timestamp, x, y, z).
Q_DECLARE_METATYPE(TMatrix)
const QDBusArgument & operator>>(const QDBusArgument &argument, Orientation &orientation)
Unmarshall Orientation data from the D-Bus argument.
Datatypes for different filters.