--- a/main/glxapplication.cpp Wed Aug 18 09:48:53 2010 +0300
+++ b/main/glxapplication.cpp Thu Sep 02 20:26:45 2010 +0300
@@ -18,6 +18,7 @@
//include
#include <qsymbianevent.h>
#include <oommonitorplugin.h>
+#include <hbinstance.h>
#include <w32std.h>
//userinclude
@@ -45,6 +46,21 @@
return HbApplication::symbianEventFilter( aQSEvent );
}
+void GlxApplication::initMattiAutomation()
+{
+ //For Matti Automation
+ //Monitor the first view ready signal to emit the application ready signal.
+ HbMainWindow *window = hbInstance->allMainWindows().first();
+ connect( window, SIGNAL( viewReady() ), this, SLOT( handleAppReady() ) );
+}
+
+void GlxApplication::handleAppReady()
+{
+ emit applicationReady();
+ HbMainWindow *window = hbInstance->allMainWindows().first();
+ disconnect( window, SIGNAL( viewReady() ), this, SLOT( handleAppReady() ) );
+}
+
void GlxApplication::cleanUpCache()
{
qDebug("GlxApplication::cleanUpCache()");