122 |
122 |
123 public: |
123 public: |
124 void Blank(TBool aEnabled); |
124 void Blank(TBool aEnabled); |
125 void LowMemoryEvent(); |
125 void LowMemoryEvent(); |
126 void BeginLayoutSwitch(); |
126 void BeginLayoutSwitch(); |
|
127 void ImplicitBlank(); |
127 |
128 |
128 void Event(TEvent aEvent); |
129 void Event(TEvent aEvent); |
129 void Transition(TState aNewState, TState aPreviousState); |
130 void Transition(TState aNewState, TState aPreviousState); |
130 |
131 |
131 private: |
132 private: |
136 |
137 |
137 void HandleFreezeEvent(TEvent aEvent); |
138 void HandleFreezeEvent(TEvent aEvent); |
138 void HandleThemeEvent(TEvent aEvent); |
139 void HandleThemeEvent(TEvent aEvent); |
139 |
140 |
140 void FreezeFinished(); |
141 void FreezeFinished(); |
141 |
142 void HandleBlankChange(); |
|
143 |
142 public: |
144 public: |
143 TBool IsThemeEffectEnabled() const; |
145 TBool IsThemeEffectEnabled() const; |
144 TBool LayoutSwitchEffectsExist() const; |
146 TBool LayoutSwitchEffectsExist() const; |
145 |
147 |
146 void EnableSafeCounter(TBool aEnable) |
148 void EnableSafeCounter(TBool aEnable) |
164 |
166 |
165 void FreezeRoster(TBool aFrozen); |
167 void FreezeRoster(TBool aFrozen); |
166 |
168 |
167 static TInt DoFreezeFinished(TAny* aAny); |
169 static TInt DoFreezeFinished(TAny* aAny); |
168 static TInt DoNextLayoutSwitchContext(TAny* aAny); |
170 static TInt DoNextLayoutSwitchContext(TAny* aAny); |
|
171 static TInt DoImplicitBlankOff(TAny* aAny); |
169 |
172 |
170 private: // Data |
173 private: // Data |
171 |
174 |
172 CAlfBridge& iBridge; |
175 CAlfBridge& iBridge; |
173 AknTransEffect::TContext iLayoutSwitchEffectContext; |
176 AknTransEffect::TContext iLayoutSwitchEffectContext; |
174 TThreadPriority iOriginalPriority; |
177 TThreadPriority iOriginalPriority; |
175 CAlfRosterFreezeEndTimer* iRosterFreezeEndTimer; |
178 CAlfRosterFreezeEndTimer* iRosterFreezeEndTimer; |
176 TBool iBlankEnabled; |
179 TBool iBlankEnabled; |
|
180 TBool iImplicitBlankEnabled; |
|
181 TBool iAknBlankEnabled; |
177 |
182 |
178 TState iCurrentState; |
183 TState iCurrentState; |
179 TBool iLayoutSwitchNotCompleted; |
184 TBool iLayoutSwitchNotCompleted; |
|
185 CPeriodic* iImplicitBlankTimer; |
180 }; |
186 }; |
181 |
187 |
182 // --------------------------------------------------------- |
188 // --------------------------------------------------------- |
183 // Effects states are used for effects request that arrive before the effected |
189 // Effects states are used for effects request that arrive before the effected |
184 // window has been created. This is very common with fullscreen effects and |
190 // window has been created. This is very common with fullscreen effects and |