92 // MMPXCenRepObserver Implementation |
94 // MMPXCenRepObserver Implementation |
93 // |
95 // |
94 void HandleSettingChange( const TUid& aRepositoryUid, |
96 void HandleSettingChange( const TUid& aRepositoryUid, |
95 TUint32 aSettingId ); |
97 TUint32 aSettingId ); |
96 |
98 |
97 void OpenFileL( const TDesC& aMediaFile, RFile& aFile, TInt aPosition, TInt aAccessPointId = KUseDefaultIap ); |
99 void OpenFileL( const TDesC& aMediaFile, RFile& aFile, TInt aPosition, TInt aAccessPointId = KUseDefaultIap ); |
98 |
100 |
99 void HandleGeneralPlaybackCommandL( CMPXCommand& aCmd ); |
101 void HandleGeneralPlaybackCommandL( CMPXCommand& aCmd ); |
100 |
102 |
101 void HandleCustomPlaybackCommandL( CMPXCommand& aCmd ); |
103 void HandleCustomPlaybackCommandL( CMPXCommand& aCmd ); |
102 |
104 |
128 |
130 |
129 void HandleError(TInt error); |
131 void HandleError(TInt error); |
130 void SetVolumeSteps( TInt aVolumeSteps ); |
132 void SetVolumeSteps( TInt aVolumeSteps ); |
131 void HandleVolumeL( TBool aIncrease ); |
133 void HandleVolumeL( TBool aIncrease ); |
132 |
134 |
|
135 void SendHideControlsEventL(); |
|
136 |
133 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
137 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
134 |
138 |
135 void OpenFile64L( const TDesC& aMediaFile, RFile64& aFile, TInt aPosition, TInt aAccessPointId = KUseDefaultIap ); |
139 void OpenFile64L( const TDesC& aMediaFile, RFile64& aFile, TInt aPosition, TInt aAccessPointId = KUseDefaultIap ); |
136 |
140 |
137 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
141 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
138 |
142 |
139 |
143 |
140 private: |
144 private: |
153 |
157 |
154 TMPXVideoMode GetModeToSet(); |
158 TMPXVideoMode GetModeToSet(); |
155 void DetermineMediaTypeL(); |
159 void DetermineMediaTypeL(); |
156 |
160 |
157 void ResetMemberVariables(); |
161 void ResetMemberVariables(); |
158 |
162 |
159 void StartLightsControl(); |
163 void StartLightsControl(); |
160 void CancelLightsControl(); |
164 void CancelLightsControl(); |
161 |
165 |
162 void EnableDisplayBacklight(); |
166 void EnableDisplayBacklight(); |
163 void DisableDisplayBacklight(); |
167 void DisableDisplayBacklight(); |
164 |
168 |
165 static TInt HandleBackLightTimeout( TAny* aPtr ); |
169 static TInt HandleBackLightTimeout( TAny* aPtr ); |
166 void DoHandleBackLightTimeout(); |
170 void DoHandleBackLightTimeout(); |
167 void StartBackLightTimer(); |
171 void StartBackLightTimer(); |
168 void CancelBackLightTimer(); |
172 void CancelBackLightTimer(); |
169 |
173 |
170 void InitUserActivityTimerL(); |
174 void InitUserActivityTimerL(); |
171 void RestartUserActivityTimer(); |
175 void RestartUserActivityTimer(); |
172 void CancelUserActivityTimer(); |
176 void CancelUserActivityTimer(); |
173 static TInt HandleUserActivityTimeout( TAny* aPtr ); |
177 static TInt HandleUserActivityTimeout( TAny* aPtr ); |
174 void DoHandleUserActivityTimeout(); |
178 void DoHandleUserActivityTimeout(); |
175 |
179 |
176 TTimeIntervalMicroSeconds32 InitDisplayTimerL(); |
180 TTimeIntervalMicroSeconds32 InitDisplayTimerL(); |
177 void RestartDisplayTimer(); |
181 void RestartDisplayTimer(); |
178 void CancelDisplayTimer(); |
182 void CancelDisplayTimer(); |
179 static TInt HandleDisplayTimeout( TAny* aPtr ); |
183 static TInt HandleDisplayTimeout( TAny* aPtr ); |
180 void DoHandleDisplayTimeout(); |
184 void DoHandleDisplayTimeout(); |
181 |
185 |
182 CHWRMLight* GetLightsL(); |
186 CHWRMLight* GetLightsL(); |
183 void ReleaseLights(); |
187 void ReleaseLights(); |
|
188 |
|
189 void SendTvOutEventL( TBool aConnected, TBool aPlaybackAllowed ); |
184 |
190 |
185 protected: |
191 protected: |
186 |
192 |
187 /* |
193 /* |
188 * C++ default constructor |
194 * C++ default constructor |
242 // Video seeker |
248 // Video seeker |
243 CMPXVideoSeeker* iVideoSeeker; |
249 CMPXVideoSeeker* iVideoSeeker; |
244 |
250 |
245 // Timer for calling User::ResetInactivityTime() periodicallly while playing. |
251 // Timer for calling User::ResetInactivityTime() periodicallly while playing. |
246 // This keeps backligth on and screensaver off. |
252 // This keeps backligth on and screensaver off. |
247 CPeriodic* iBackLightTimer; |
253 CPeriodic* iBackLightTimer; |
248 |
254 |
249 // Timer to turn display lights off when playing to TV-out |
255 // Timer to turn display lights off when playing to TV-out |
250 CPeriodic* iDisplayTimer; |
256 CPeriodic* iDisplayTimer; |
251 TTimeIntervalMicroSeconds32 iDisplayTimerTimeout; |
257 TTimeIntervalMicroSeconds32 iDisplayTimerTimeout; |
252 // Timer monitoring user activity when TV-out is connected |
258 // Timer monitoring user activity when TV-out is connected |
253 CPeriodic* iUserActivityTimer; |
259 CPeriodic* iUserActivityTimer; |
254 |
260 |
255 |
|
256 TBool iSeekable; |
261 TBool iSeekable; |
257 |
262 |
258 CMpxVideoDrmHelper* iDrmHelper; |
263 CMpxVideoDrmHelper* iDrmHelper; |
259 CHWRMLight* iLight; |
264 CHWRMLight* iLight; |
260 TInt iLightStatus; |
265 TInt iLightStatus; |