equal
deleted
inserted
replaced
33 |
33 |
34 // EXTERNAL FUNCTION PROTOTYPES |
34 // EXTERNAL FUNCTION PROTOTYPES |
35 |
35 |
36 // CONSTANTS |
36 // CONSTANTS |
37 |
37 |
38 #ifdef FF_AUTOMOTIVESTACK |
|
39 const TInt KAccMaxRules = 8; |
|
40 #else |
|
41 const TInt KAccMaxRules = 7; |
38 const TInt KAccMaxRules = 7; |
42 #endif |
|
43 |
39 |
44 const TInt KAccConfigMaxCapabilityGroups = 64; |
40 const TInt KAccConfigMaxCapabilityGroups = 64; |
45 const TInt KAccGidIntBuf = 100; |
41 const TInt KAccGidIntBuf = 100; |
46 const TInt KCapabilityGroupMaxLength = 12;//32 bit number presented in decimal format is 10 character lenght |
42 const TInt KCapabilityGroupMaxLength = 12;//32 bit number presented in decimal format is 10 character lenght |
47 |
43 |
82 |
78 |
83 API_TRACE_( "[AccFW: ACCPOLICY] CAccPolAccessoryPolicy::CAccPolAccessoryPolicy() - return void" ); |
79 API_TRACE_( "[AccFW: ACCPOLICY] CAccPolAccessoryPolicy::CAccPolAccessoryPolicy() - return void" ); |
84 } |
80 } |
85 |
81 |
86 // Destructor |
82 // Destructor |
87 EXPORT_C CAccPolAccessoryPolicy::~CAccPolAccessoryPolicy() |
83 CAccPolAccessoryPolicy::~CAccPolAccessoryPolicy() |
88 { |
84 { |
89 API_TRACE_( "[AccFW: ACCPOLICY] CAccPolAccessoryPolicy::~CAccPolAccessoryPolicy()" ); |
85 API_TRACE_( "[AccFW: ACCPOLICY] CAccPolAccessoryPolicy::~CAccPolAccessoryPolicy()" ); |
90 |
86 |
91 API_TRACE_( "[AccFW: ACCPOLICY] CAccPolAccessoryPolicy::~CAccPolAccessoryPolicy() - return void" ); |
87 API_TRACE_( "[AccFW: ACCPOLICY] CAccPolAccessoryPolicy::~CAccPolAccessoryPolicy() - return void" ); |
92 } |
88 } |
389 {KPCHDMI, 0}, |
385 {KPCHDMI, 0}, |
390 {KPCWired, KAccStereoAudio}, |
386 {KPCWired, KAccStereoAudio}, |
391 {KPCWired, KAccMonoAudio}, |
387 {KPCWired, KAccMonoAudio}, |
392 {KPCBluetooth, KAccStereoAudio}, |
388 {KPCBluetooth, KAccStereoAudio}, |
393 {KPCBluetooth, KAccMonoAudio}, |
389 {KPCBluetooth, KAccMonoAudio}, |
394 #ifdef FF_AUTOMOTIVESTACK |
|
395 {KPCUSB, KAccStereoAudio}, |
|
396 #endif |
|
397 {KPCWired, 0}, |
390 {KPCWired, 0}, |
398 {KPCBluetooth, 0} |
391 {KPCBluetooth, 0} |
399 }; |
392 }; |
400 |
393 |
401 |
394 |
471 { |
464 { |
472 aAccMode.iAccessoryMode = EAccModeWirelessCarKit; |
465 aAccMode.iAccessoryMode = EAccModeWirelessCarKit; |
473 } |
466 } |
474 } |
467 } |
475 else if ( gID.PhysicalConnectionCaps( KPCWired ) || |
468 else if ( gID.PhysicalConnectionCaps( KPCWired ) || |
476 gID.PhysicalConnectionCaps( KPCHDMI ) |
469 gID.PhysicalConnectionCaps( KPCHDMI ) ) |
477 #ifdef FF_AUTOMOTIVESTACK |
|
478 || gID.PhysicalConnectionCaps ( KPCUSB ) |
|
479 #endif |
|
480 ) |
|
481 { |
470 { |
482 if( gID.DeviceTypeCaps( KDTHeadset ) ) |
471 if( gID.DeviceTypeCaps( KDTHeadset ) ) |
483 { |
472 { |
484 |
473 |
485 if( iCapabilityStorage->GetCapability( gID , KAccIntegratedAudioInput ) ) |
474 if( iCapabilityStorage->GetCapability( gID , KAccIntegratedAudioInput ) ) |
1248 |
1237 |
1249 COM_TRACE_1( "[AccFW:ACCPOLICY] CAccPolAccessoryPolicy::SupportedHWDevicesL - return 0b%b", supportedDevices ); |
1238 COM_TRACE_1( "[AccFW:ACCPOLICY] CAccPolAccessoryPolicy::SupportedHWDevicesL - return 0b%b", supportedDevices ); |
1250 return supportedDevices; |
1239 return supportedDevices; |
1251 } |
1240 } |
1252 |
1241 |
1253 EXPORT_C TBool CAccPolAccessoryPolicy::IsCapabilityDefinedL( |
|
1254 const TAccPolGenericID& aGenericId, |
|
1255 const TUint32& aName ) |
|
1256 { |
|
1257 if(iCapabilityStorage->GetCapability(aGenericId,aName) != NULL) |
|
1258 return ETrue; |
|
1259 else |
|
1260 return EFalse; |
|
1261 } |
|
1262 // End of File |
1242 // End of File |