equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: This class observes the accessory framework. |
14 * Description: This class observes the accessory framework. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 6 % |
18 // Version : %version: 8 % |
19 |
19 |
20 // |
20 // |
21 // INCLUDE FILES |
21 // INCLUDE FILES |
22 // |
22 // |
23 #include <e32svr.h> |
23 #include <e32svr.h> |
151 // |
151 // |
152 const TInt count = iGenericIdArray.Count(); |
152 const TInt count = iGenericIdArray.Count(); |
153 |
153 |
154 for ( TInt index = 0 ; index < count ; index++ ) |
154 for ( TInt index = 0 ; index < count ; index++ ) |
155 { |
155 { |
|
156 TAccPolGenericID genId = iGenericIdArray.GetGenericIDL( index ); |
|
157 |
156 // |
158 // |
157 // Get all supported capabilities for this connected accessory. |
159 // Get all supported capabilities for this connected accessory. |
158 // |
160 // |
159 iConnection.GetSubblockNameArrayL( iGenericIdArray.GetGenericIDL( index ), *nameArray ); |
161 iConnection.GetSubblockNameArrayL( genId, *nameArray ); |
160 |
162 |
161 // |
163 // |
162 // Check if this connected accessory supports TV-Out |
164 // Check if this connected accessory supports TV-Out |
163 // |
165 // |
164 if ( nameArray->HasName( KAccVideoOut ) ) |
166 if ( nameArray->HasName( KAccVideoOut ) ) |
165 { |
167 { |
166 MPX_DEBUG(_L(" TV-Out Capabilities Exist")); |
168 MPX_DEBUG(_L(" TV-Out Capabilities Exist")); |
167 |
169 |
168 tvOutConnected = ETrue; |
170 tvOutConnected = ETrue; |
169 break; |
|
170 } |
171 } |
171 } |
172 } |
172 |
173 |
173 CleanupStack::PopAndDestroy( nameArray ); |
174 CleanupStack::PopAndDestroy( nameArray ); |
174 #endif |
175 #endif |
178 // |
179 // |
179 if ( iTvOutConnected != tvOutConnected ) |
180 if ( iTvOutConnected != tvOutConnected ) |
180 { |
181 { |
181 iTvOutConnected = tvOutConnected; |
182 iTvOutConnected = tvOutConnected; |
182 |
183 |
183 if ( iTvOutConnected ) |
184 if ( iTvOutConnected ) |
184 { |
185 { |
185 // |
186 // |
186 // Check the playablility of the clip |
187 // Check the playablility of the clip |
187 // |
188 // |
188 iTvOutPlaybackAllowed = iController->iPlaybackMode->IsTvOutAllowedL(); |
189 iTvOutPlaybackAllowed = iController->iPlaybackMode->IsTvOutAllowedL(); |
193 } |
194 } |
194 |
195 |
195 statusChanged = ETrue; |
196 statusChanged = ETrue; |
196 } |
197 } |
197 |
198 |
198 MPX_DEBUG(_L(" iTvOutConnected = %d"), iTvOutConnected); |
199 MPX_DEBUG(_L("CMPXVideoAccessoryObserver::UpdateTvOutStatusL iTvOutConnected = %d"), iTvOutConnected); |
199 |
200 |
200 MPX_DEBUG(_L("CMPXVideoAccessoryObserver::UpdateTvOutStatusL() ret = %d"), statusChanged); |
201 MPX_DEBUG(_L("CMPXVideoAccessoryObserver::UpdateTvOutStatusL() ret = %d"), statusChanged); |
201 |
202 |
202 return statusChanged; |
203 return statusChanged; |
203 } |
204 } |