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