uiacceltk/hitchcock/coretoolkit/inc/huistatictlsdata.h
branchRCL_3
changeset 41 cd0ae4656946
parent 10 88b23e2e82e1
equal deleted inserted replaced
34:3a60ebea00d0 41:cd0ae4656946
    33 LOCAL_D const TInt KMaxClocks = 10;
    33 LOCAL_D const TInt KMaxClocks = 10;
    34 
    34 
    35 
    35 
    36 class TFakeProbe;
    36 class TFakeProbe;
    37 class CAppFwProxy;
    37 class CAppFwProxy;
       
    38 #ifdef HUI_DEBUG_TRACK_DRAWING
       
    39 class CAlfCommandDebug;   
       
    40  #ifndef __WINSCW__
       
    41 extern TTlsData globalWriteableData;
       
    42  #endif
       
    43 #endif
    38 /**
    44 /**
    39  * Thread local storage space. Writable static data is not supported in
    45  * Thread local storage space. Writable static data is not supported in
    40  * Symbian, so static data is stored in this struct.
    46  * Symbian, so static data is stored in this struct.
    41  */
    47  */
    42 
    48 
   119     CAppFwProxy* iAppFwProxy;
   125     CAppFwProxy* iAppFwProxy;
   120 
   126 
   121 #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF
   127 #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF
   122     // For testing purposes, test data needs to be included into TLS object.
   128     // For testing purposes, test data needs to be included into TLS object.
   123     CAlfModuleTestDataControl* iAlfModuleTestDataControl;
   129     CAlfModuleTestDataControl* iAlfModuleTestDataControl;
       
   130 #endif
       
   131 
       
   132 #ifdef HUI_DEBUG_TRACK_DRAWING
       
   133     CAlfCommandDebug* iCommandDebugger;   
   124 #endif
   134 #endif
   125 
   135 
   126     CWsScreenDevice* WsScreenDevice(TInt aScreenNumber)
   136     CWsScreenDevice* WsScreenDevice(TInt aScreenNumber)
   127         {
   137         {
   128         if (aScreenNumber < iScreenDevices.Count())
   138         if (aScreenNumber < iScreenDevices.Count())
   230 #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF
   240 #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF
   231         delete iAlfModuleTestDataControl;
   241         delete iAlfModuleTestDataControl;
   232         iAlfModuleTestDataControl = NULL;
   242         iAlfModuleTestDataControl = NULL;
   233 #endif        
   243 #endif        
   234         }
   244         }
       
   245 
       
   246 #ifdef HUI_DEBUG_TRACK_DRAWING
       
   247     static CAlfCommandDebug* CommandDebugger() 
       
   248         {
       
   249         #ifndef __WINSCW__
       
   250         TTlsData* data = &globalWriteableData;
       
   251         #else
       
   252         TTlsData* data = static_cast<TTlsData*>(Dll::Tls());
       
   253         #endif
       
   254 
       
   255         return data->iCommandDebugger;
       
   256         }   
       
   257 #endif
       
   258     
   235     };
   259     };
   236 
   260 
   237 
   261 
   238 #endif
   262 #endif