main/glxapplication.cpp
changeset 61 743eb0b9959e
parent 48 d0b4e67b3a60
equal deleted inserted replaced
55:fb37077c270f 61:743eb0b9959e
    16 */
    16 */
    17 
    17 
    18 //include
    18 //include
    19 #include <qsymbianevent.h>
    19 #include <qsymbianevent.h>
    20 #include <oommonitorplugin.h>
    20 #include <oommonitorplugin.h>
       
    21 #include <hbinstance.h>
    21 #include <w32std.h>
    22 #include <w32std.h>
    22 
    23 
    23 //userinclude
    24 //userinclude
    24 #include "glxapplication.h"
    25 #include "glxapplication.h"
    25 #include "mglxcache.h"
    26 #include "mglxcache.h"
    43         }
    44         }
    44     }
    45     }
    45     return HbApplication::symbianEventFilter( aQSEvent );
    46     return HbApplication::symbianEventFilter( aQSEvent );
    46 }
    47 }
    47 
    48 
       
    49 void GlxApplication::initMattiAutomation()
       
    50 {
       
    51     //For Matti Automation 
       
    52     //Monitor the first view ready signal to emit the application ready signal.
       
    53     HbMainWindow *window = hbInstance->allMainWindows().first();
       
    54     connect( window, SIGNAL( viewReady() ), this, SLOT( handleAppReady() ) );    
       
    55 }
       
    56 
       
    57 void GlxApplication::handleAppReady()
       
    58 {
       
    59     emit applicationReady();
       
    60     HbMainWindow *window = hbInstance->allMainWindows().first();
       
    61     disconnect( window, SIGNAL( viewReady() ), this, SLOT( handleAppReady() ) ); 
       
    62 }
       
    63 
    48 void GlxApplication::cleanUpCache()
    64 void GlxApplication::cleanUpCache()
    49 {
    65 {
    50     qDebug("GlxApplication::cleanUpCache()");
    66     qDebug("GlxApplication::cleanUpCache()");
    51     MGlxCache* cacheManager = MGlxCache::InstanceL();
    67     MGlxCache* cacheManager = MGlxCache::InstanceL();
    52     cacheManager->ReleaseRAML(true);
    68     cacheManager->ReleaseRAML(true);