1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
1171 device->SetAcceptPairedOnlyMode(table->ColUint8(ColumnNoL(KPersistColName_AcceptPairedOnlyMode, *table))); |
1171 device->SetAcceptPairedOnlyMode(table->ColUint8(ColumnNoL(KPersistColName_AcceptPairedOnlyMode, *table))); |
1172 CleanupStack::PopAndDestroy(table); //table |
1172 CleanupStack::PopAndDestroy(table); //table |
1173 return device; |
1173 return device; |
1174 } |
1174 } |
1175 |
1175 |
|
1176 TBTLocalDevice* CBTRegistry::GetLocalDeviceL() |
|
1177 { |
|
1178 LOG_FUNC |
|
1179 TBTLocalDevice* device = GetLocalDeviceLC(); |
|
1180 CleanupStack::Pop(device); |
|
1181 return device; |
|
1182 } |
|
1183 |
|
1184 |
|
1185 |
1176 const TBTCommPortSettings* CBTRegistry::GetCommPortSettingsLC(const TBTCommPortSettings& aSettings) |
1186 const TBTCommPortSettings* CBTRegistry::GetCommPortSettingsLC(const TBTCommPortSettings& aSettings) |
1177 /** |
1187 /** |
1178 Get the virtual serial port settings for the port referred to in aSettings |
1188 Get the virtual serial port settings for the port referred to in aSettings |
1179 **/ |
1189 **/ |
1180 { |
1190 { |
1352 // Set up the defaults - these will get overwritten if there are appropriate values in the ini file |
1362 // Set up the defaults - these will get overwritten if there are appropriate values in the ini file |
1353 defaultDevice.SetAddress(TBTDevAddr(0)); |
1363 defaultDevice.SetAddress(TBTDevAddr(0)); |
1354 defaultDevice.SetDeviceName(KDefaultLocalName); |
1364 defaultDevice.SetDeviceName(KDefaultLocalName); |
1355 defaultDevice.SetScanEnable(EPageScanOnly); |
1365 defaultDevice.SetScanEnable(EPageScanOnly); |
1356 defaultDevice.SetLimitedDiscoverable(EFalse); |
1366 defaultDevice.SetLimitedDiscoverable(EFalse); |
1357 defaultDevice.SetDeviceClass(0); |
1367 |
|
1368 // set the default device class to be phone|smartphone |
|
1369 // MajorServiceClass set to zero as there are no default service class bits |
|
1370 TBTDeviceClass defaultCod (0, EMajorDevicePhone, EMinorDevicePhoneSmartPhone); |
|
1371 defaultDevice.SetDeviceClass(defaultCod.DeviceClass()); |
|
1372 |
1358 // The registry is being kicked off with a default channel assessment |
1373 // The registry is being kicked off with a default channel assessment |
1359 // mode setting of 'enabled'. This is the default if h/w supports |
1374 // mode setting of 'enabled'. This is the default if h/w supports |
1360 // channel assessment. If h/w does not support channel assessment, |
1375 // channel assessment. If h/w does not support channel assessment, |
1361 // this value becomes meaningless. |
1376 // this value becomes meaningless. |
1362 // Any use of it to update h/w will be rejected. |
1377 // Any use of it to update h/w will be rejected. |