51
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalComponent
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef AVRCPSDPUTILS_H
|
|
24 |
#define AVRCPSDPUTILS_H
|
|
25 |
|
|
26 |
#include <e32base.h>
|
|
27 |
#include <btsdp.h>
|
|
28 |
|
|
29 |
namespace AvrcpSdp
|
|
30 |
{
|
|
31 |
enum TRecordType
|
|
32 |
{
|
|
33 |
ERemoteControl,
|
|
34 |
ERemoteControlTarget,
|
|
35 |
};
|
|
36 |
|
|
37 |
_LIT8(KAvrcpProviderName, "Symbian OS");
|
|
38 |
_LIT8(KAvrcpTargetServiceName, "AVRCP Target");
|
|
39 |
_LIT8(KAvrcpControllerServiceName, "AVRCP Controller");
|
|
40 |
_LIT8(KAvrcpServiceDescription, "Audio Video Remote Control");
|
|
41 |
|
|
42 |
const TUint16 KAvrcpProfileVersion14 = 0x0104;
|
|
43 |
const TUint16 KAvrcpProfileVersion13 = 0x0103;
|
|
44 |
const TUint16 KAvctpProtocolVersion13 = 0x103;
|
|
45 |
const TUint16 KAvctpProtocolVersion12 = 0x102;
|
|
46 |
|
|
47 |
enum TAvrcpFeature
|
|
48 |
{
|
|
49 |
EPlayerRecorder = 1 << 0,
|
|
50 |
EMonitorAmplifier = 1 << 1,
|
|
51 |
ETuner = 1 << 2,
|
|
52 |
EMenu = 1 << 3,
|
|
53 |
EPlayer = 1 << 4,
|
|
54 |
EGroupNavigation = 1 << 5,
|
|
55 |
EBrowsing = 1 << 6,
|
|
56 |
EMultiplePlayers = 1 << 7,
|
|
57 |
};
|
|
58 |
|
|
59 |
const TUint16 KAvrcpBaseCtFeatures = EPlayerRecorder |
|
|
60 |
EMonitorAmplifier |
|
|
61 |
ETuner |
|
|
62 |
EMenu;
|
|
63 |
|
|
64 |
const TUint16 KAvrcpBaseTgFeatures = EPlayerRecorder |
|
|
65 |
EMonitorAmplifier |
|
|
66 |
ETuner |
|
|
67 |
EMenu;
|
|
68 |
}
|
|
69 |
|
|
70 |
NONSHARABLE_CLASS(AvrcpSdpUtils)
|
|
71 |
{
|
|
72 |
public:
|
|
73 |
static void CreateTargetServiceRecordL(RSdpDatabase& aSdpDatabase, TSdpServRecordHandle& aRecHandle);
|
|
74 |
static void CreateControllerServiceRecordL(RSdpDatabase& aSdpDatabase, TSdpServRecordHandle& aRecHandle, TUint16 aProfileVersion);
|
|
75 |
static void UpdateControllerServiceClassListL(RSdpDatabase& aSdpDatabase, TSdpServRecordHandle& aRecHandle, TUint16 aProfileVersion);
|
|
76 |
static void UpdateProtocolDescriptorListL(RSdpDatabase& aSdpDatabase, TSdpServRecordHandle& aRecHandle, TUint16 aProtocolVersion);
|
|
77 |
static void UpdateAdditionalProtocolDescriptorListL(RSdpDatabase& aSdpDatabase, TSdpServRecordHandle& aRecHandle);
|
|
78 |
static void UpdateProfileDescriptorListL(RSdpDatabase& aSdpDatabase, TSdpServRecordHandle& aRecHandle, TUint16 aProfileVersion);
|
|
79 |
static void UpdateSupportedFeaturesL(RSdpDatabase& aSdpDatabase, TSdpServRecordHandle& aRecHandle, AvrcpSdp::TRecordType aType, TUint16 aFeatures);
|
|
80 |
};
|
|
81 |
|
|
82 |
#endif // AVRCPSDPUTILS_H
|