m_navigatorEventHandler->handleExit();
break;
+ case NAVIGATOR_WINDOW_ACTIVE: {
+ #if defined(QQNXBPSEVENTFILTER_DEBUG)
+ qDebug() << "QQNX: Navigator WINDOW ACTIVE event";
+ #endif
+
+ const QByteArray id(navigator_event_get_groupid(event));
+ m_navigatorEventHandler->handleWindowGroupActivated(id);
+ break;
+ }
+
+ case NAVIGATOR_WINDOW_INACTIVE: {
+ #if defined(QQNXBPSEVENTFILTER_DEBUG)
+ qDebug() << "QQNX: Navigator WINDOW INACTIVE event";
+ #endif
+
+ const QByteArray id(navigator_event_get_groupid(event));
+ m_navigatorEventHandler->handleWindowGroupDeactivated(id);
+ break;
+ }
+
default:
#if defined(QQNXBPSEVENTFILTER_DEBUG)
qDebug() << "QQNX: Unhandled navigator event. code=" << bps_event_get_code(event);
QCoreApplication::quit();
}
+void QQnxNavigatorEventHandler::handleWindowGroupActivated(const QByteArray &id)
+{
+#if defined(QQNXNAVIGATOREVENTHANDLER_DEBUG)
+ qDebug() << Q_FUNC_INFO << id;
+#endif
+
+ Q_EMIT windowGroupActivated(id);
+}
+
+void QQnxNavigatorEventHandler::handleWindowGroupDeactivated(const QByteArray &id)
+{
+#if defined(QQNXNAVIGATOREVENTHANDLER_DEBUG)
+ qDebug() << Q_FUNC_INFO << id;
+#endif
+
+ Q_EMIT windowGroupDeactivated(id);
+}
+
QT_END_NAMESPACE
void handleOrientationChange(int angle);
void handleSwipeDown();
void handleExit();
+ void handleWindowGroupActivated(const QByteArray &id);
+ void handleWindowGroupDeactivated(const QByteArray &id);
Q_SIGNALS:
void rotationChanged(int angle);
+ void windowGroupActivated(const QByteArray &id);
+ void windowGroupDeactivated(const QByteArray &id);
};
QT_END_NAMESPACE
m_eventHandler->handleSwipeDown();
} else if (msg == "exit") {
m_eventHandler->handleExit();
+ } else if (msg == "windowActive") {
+ m_eventHandler->handleWindowGroupActivated(dat);
+ } else if (msg == "windowInactive") {
+ m_eventHandler->handleWindowGroupDeactivated(dat);
}
}