uiacceltk/hitchcock/ServerCore/Src/alfappui.cpp
changeset 13 8f67d927ea57
parent 0 15bf7259bb7c
child 14 83d2d132aa58
--- a/uiacceltk/hitchcock/ServerCore/Src/alfappui.cpp	Tue Feb 02 07:56:43 2010 +0200
+++ b/uiacceltk/hitchcock/ServerCore/Src/alfappui.cpp	Fri Mar 19 09:43:21 2010 +0200
@@ -665,6 +665,11 @@
 //
 EXPORT_C CAlfAppUi::~CAlfAppUi()
     {
+    #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF
+    delete AMT_CONTROL();
+    Dll::FreeTls();
+    #endif
+    
     delete iData;
     }
   
@@ -763,6 +768,13 @@
 EXPORT_C void CAlfAppUi::ConstructL()
     {
     __ALFLOGSTRING( "CAlfAppUi::ConstructL start" )
+    
+    #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF
+    // Initiliaze global data in TLS and open global module testing chunk and mutex
+    User::LeaveIfError(Dll::SetTls(new(ELeave) CAlfModuleTestDataControl()));
+    User::LeaveIfError(AMT_CONTROL()->OpenGlobalObjects());
+    #endif
+      
     TInt flags = EStandardApp|ENoScreenFurniture|ENonStandardResourceFile|EAknEnableSkin;
     CCoeEnv* coe = CCoeEnv::Static();
     iData =  new (ELeave) CAlfAppUiData();
@@ -903,6 +915,10 @@
 	// Load Tfx server client API plugin, if exists
 	iData->iServer->CreateTfxServerPlugin();
     
+#ifdef SYMBIAN_GRAPHICS_WSERV_QT_EFFECTS
+    iData->iBridgeObj->ForceSwRendering(ETrue);
+#endif
+
     __ALFLOGSTRING( "CAlfAppUi::ConstructL end" )
     }
     
@@ -1442,4 +1458,8 @@
     return iData->iBridgeObj->ForceSwRendering( aEnabled );
     }
     
+void CAlfAppUi::SetAlfAppWindowGroup( TInt aID )
+    {
+    iData->iBridgeObj->SetWindowGroupAsAlfApp( aID );
+    }
 // end of file