@@ -17,8 +17,11 @@
1717 */
1818
1919#include "Greeter.h"
20+#include <QCoreApplication>
2021#include <QLightDM/Greeter>
2122
23+#include <QDebug>
24+
2225class GreeterPrivate
2326{
2427public:
@@ -57,9 +60,18 @@ Greeter::Greeter(QObject* parent)
5760 connect(d->m_greeter, SIGNAL(authenticationComplete()),
5861 this, SLOT(authenticationCompleteFilter()));
5962
63+ // Listen for "state resets"
64+ connect(QCoreApplication::instance(), SIGNAL(applicationStateChanged(Qt::ApplicationState)),
65+ this, SLOT(handleAppStateChange(Qt::ApplicationState)));
66+
6067 d->m_greeter->connectSync();
6168}
6269
70+void Greeter::handleAppStateChange(Qt::ApplicationState state)
71+{
72+ qDebug() << "MIKE state change " << state;
73+}
74+
6375bool Greeter::isAuthenticated() const
6476{
6577 Q_D(const Greeter);