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