equal
deleted
inserted
replaced
56 iCanvasData.iHasBackground = MidletAttributeContainsVal( |
56 iCanvasData.iHasBackground = MidletAttributeContainsVal( |
57 LcduiMidletAttributes::KAttribUIEnhancement, |
57 LcduiMidletAttributes::KAttribUIEnhancement, |
58 LcduiMidletAttributeValues::KUIEnhCanvasBackground); |
58 LcduiMidletAttributeValues::KUIEnhCanvasBackground); |
59 #ifdef RD_JAVA_NGA_ENABLED |
59 #ifdef RD_JAVA_NGA_ENABLED |
60 InitHardwareStatusL(); |
60 InitHardwareStatusL(); |
|
61 |
|
62 iVideoOverlayEnabled = MidletAttributeContainsVal( |
|
63 LcduiMidletAttributes::KAttribUIEnhancement, |
|
64 LcduiMidletAttributeValues::KUIEnhVideoOverlay); |
61 #endif // RD_JAVA_NGA_ENABLED |
65 #endif // RD_JAVA_NGA_ENABLED |
|
66 |
|
67 iMMAPILock.CreateLocal(); |
62 } |
68 } |
63 |
69 |
64 CMIDEnv::~CMIDEnv() |
70 CMIDEnv::~CMIDEnv() |
65 { |
71 { |
66 if (iToLcduiObserver) |
72 if (iToLcduiObserver) |
69 iToLcduiObserver = NULL; |
75 iToLcduiObserver = NULL; |
70 } |
76 } |
71 delete iKeyTranslator; |
77 delete iKeyTranslator; |
72 iObservers.Close(); |
78 iObservers.Close(); |
73 iCanvasData.iLock.Close(); |
79 iCanvasData.iLock.Close(); |
|
80 iMMAPILock.Close(); |
74 } |
81 } |
75 |
82 |
76 void CMIDEnv::SetUtils(MMIDUtils* aUtils) |
83 void CMIDEnv::SetUtils(MMIDUtils* aUtils) |
77 { |
84 { |
78 iKeyTranslator->SetUtils(aUtils); |
85 iKeyTranslator->SetUtils(aUtils); |
308 } |
315 } |
309 if (iToolkit && iToolkit->Utils()) |
316 if (iToolkit && iToolkit->Utils()) |
310 { |
317 { |
311 iToolkit->Utils()->HandleResourceChangedL(); |
318 iToolkit->Utils()->HandleResourceChangedL(); |
312 } |
319 } |
|
320 } |
|
321 |
|
322 TBool CMIDEnv::VideoOverlayEnabled() const |
|
323 { |
|
324 return iVideoOverlayEnabled; |
|
325 } |
|
326 |
|
327 RCriticalSection& CMIDEnv::GetMMAPILock() |
|
328 { |
|
329 return iMMAPILock; |
313 } |
330 } |
314 |
331 |
315 #ifdef RD_JAVA_NGA_ENABLED |
332 #ifdef RD_JAVA_NGA_ENABLED |
316 void CMIDEnv::HandleFullOrPartialForegroundL(TBool aForeground) |
333 void CMIDEnv::HandleFullOrPartialForegroundL(TBool aForeground) |
317 { |
334 { |