equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-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". |
27 CleanupStack::PushL(serviceClassUuids); |
27 CleanupStack::PushL(serviceClassUuids); |
28 |
28 |
29 if(aProfileVersion == AvrcpSdp::KAvrcpProfileVersion13) |
29 if(aProfileVersion == AvrcpSdp::KAvrcpProfileVersion13) |
30 { |
30 { |
31 serviceClassUuids->StartListL() |
31 serviceClassUuids->StartListL() |
32 ->BuildDESL()->StartListL() |
|
33 ->BuildUUIDL(TUUID(TUint16(KAVRemoteControlUUID))) |
32 ->BuildUUIDL(TUUID(TUint16(KAVRemoteControlUUID))) |
34 ->EndListL() |
|
35 ->EndListL(); |
33 ->EndListL(); |
36 } |
34 } |
37 else |
35 else |
38 { |
36 { |
39 serviceClassUuids->StartListL() |
37 serviceClassUuids->StartListL() |
40 ->BuildDESL()->StartListL() |
|
41 ->BuildUUIDL(TUUID(TUint16(KAVRemoteControlUUID))) |
38 ->BuildUUIDL(TUUID(TUint16(KAVRemoteControlUUID))) |
42 ->BuildUUIDL(TUUID(TUint16(KAVRemoteControlControllerUUID))) |
39 ->BuildUUIDL(TUUID(TUint16(KAVRemoteControlControllerUUID))) |
43 ->EndListL() |
|
44 ->EndListL(); |
40 ->EndListL(); |
45 } |
41 } |
46 |
42 |
47 aSdpDatabase.CreateServiceRecordL(*serviceClassUuids, aRecHandle); |
43 aSdpDatabase.CreateServiceRecordL(*serviceClassUuids, aRecHandle); |
48 CleanupStack::PopAndDestroy(serviceClassUuids); |
44 CleanupStack::PopAndDestroy(serviceClassUuids); |