main/glxapplication.cpp
changeset 58 383b67fbdb11
parent 44 aa2fa096cbfb
--- a/main/glxapplication.cpp	Fri Aug 06 20:44:25 2010 +0530
+++ b/main/glxapplication.cpp	Mon Aug 23 18:06:16 2010 +0530
@@ -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()");