m_direction(Unknown) {
QObject::connect(m_orientation, SIGNAL(orientationChanged(const MeeGo::QmOrientationReading&)),
- this, SLOT(orientationChanged(const MeeGo::QmOrientationReading&)));
+ this, SLOT(onOrientationChanged(const MeeGo::QmOrientationReading&)));
if (m_orientation->requestSession(MeeGo::QmSensor::SessionTypeListen)
== MeeGo::QmSensor::SessionTypeNone) {
if (active) {
m_orientation->start();
- orientationChanged(m_orientation->orientation());
+ onOrientationChanged(m_orientation->orientation());
}
else {
m_orientation->stop();
return m_direction;
}
-void Orientation::orientationChanged(const MeeGo::QmOrientationReading& value) {
+void Orientation::onOrientationChanged(const MeeGo::QmOrientationReading& value) {
OrientationDirection direction = Unknown;
switch (value.value) {
if (direction != m_direction) {
m_direction = direction;
+
emit orientationChanged();
}
}