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