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 |
#ifndef AVRCPINTERNALINTERFACE_H
|
|
17 |
#define AVRCPINTERNALINTERFACE_H
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file
|
|
21 |
@internalTechnology
|
|
22 |
@prototype
|
|
23 |
*/
|
|
24 |
|
|
25 |
#include <e32base.h>
|
|
26 |
#include "avrcpipc.h"
|
|
27 |
#include "browsingframe.h"
|
|
28 |
|
|
29 |
const TInt KUidAvrcpInternalInterface = 0x10285eef;
|
|
30 |
|
|
31 |
enum TAvrcpInternalInterfaceOperationId
|
|
32 |
{
|
|
33 |
EAvrcpInternalGetFolderItems = 0x0,
|
|
34 |
EAvrcpInternalAvailablePlayersNotification = 0xa31,
|
|
35 |
EAvrcpInternalAddressedPlayerNotification = 0xb31,
|
|
36 |
EAvrcpInternalUidChangedNotification = 0xc31,
|
|
37 |
EAvrcpInternalSetAddressedPlayer = 0x60,
|
|
38 |
};
|
|
39 |
|
|
40 |
const TInt KSetAddressedPlayerResponseSize = 8;
|
|
41 |
const TInt KRegisterNotificationEmptyResponseSize = 4;
|
|
42 |
const TInt KRegisterNotificationAddressedPlayerResponseSize = 8;
|
|
43 |
const TInt KRegisterNotificationUidChangedResponseSize = 6;
|
|
44 |
const TUint16 KMediaPlayerListUidCounter = 0;
|
|
45 |
|
|
46 |
class RMediaPlayerItem
|
|
47 |
{
|
|
48 |
public:
|
|
49 |
IMPORT_C void Close();
|
|
50 |
IMPORT_C TInt Size();
|
|
51 |
|
|
52 |
public:
|
|
53 |
AvrcpBrowsing::TItemType iType;
|
|
54 |
TUint16 iLength;
|
|
55 |
TUint16 iPlayerId;
|
|
56 |
|
|
57 |
TUint8 iPlayerType;
|
|
58 |
TUint32 iPlayerSubType;
|
|
59 |
TUint8 iPlayStatus;
|
|
60 |
TBuf8<16> iFeatureBitmask;
|
|
61 |
|
|
62 |
TUint16 iCharset;
|
|
63 |
TUint16 iNameLength;
|
|
64 |
RBuf8 iName;
|
|
65 |
};
|
|
66 |
|
|
67 |
//--------------------------------------------------
|
|
68 |
// SetAddressedPlayer 0x60
|
|
69 |
//--------------------------------------------------
|
|
70 |
class RAvrcpSetAddressedPlayerRequest : public RAvrcpIPC
|
|
71 |
{
|
|
72 |
public:
|
|
73 |
TUint16 iPlayerId;
|
|
74 |
|
|
75 |
public:
|
|
76 |
IMPORT_C void ReadL(const TDesC8& aData);
|
|
77 |
IMPORT_C void WriteL(TDes8& aOutData);
|
|
78 |
};
|
|
79 |
|
|
80 |
class RAvrcpSetAddressedPlayerResponse : public RAvrcpIPC
|
|
81 |
{
|
|
82 |
public:
|
|
83 |
TUint8 iStatus;
|
|
84 |
|
|
85 |
public:
|
|
86 |
IMPORT_C void ReadL(const TDesC8& aData);
|
|
87 |
IMPORT_C void WriteL(TDes8& aOutData);
|
|
88 |
};
|
|
89 |
|
|
90 |
//--------------------------------------------------
|
|
91 |
// GetFolderItems Media Player Scope 0x71
|
|
92 |
//--------------------------------------------------
|
|
93 |
class RAvrcpGetFolderItemsRequest : public RAvrcpIPC
|
|
94 |
{
|
|
95 |
public:
|
|
96 |
AvrcpBrowsing::TScope iScope;
|
|
97 |
TUint iStartItem;
|
|
98 |
TUint iEndItem;
|
|
99 |
|
|
100 |
public:
|
|
101 |
IMPORT_C void ReadL(const TDesC8& aData);
|
|
102 |
IMPORT_C void WriteL(TDes8& aOutData);
|
|
103 |
IMPORT_C void Close();
|
|
104 |
};
|
|
105 |
|
|
106 |
class RAvrcpGetFolderItemsResponse : public RAvrcpIPC
|
|
107 |
{
|
|
108 |
public:
|
|
109 |
TUint8 iPduId;
|
|
110 |
TUint16 iParamLength;
|
|
111 |
TUint8 iStatus;
|
|
112 |
TUint16 iUidCounter;
|
|
113 |
TUint16 iNumberItems;
|
|
114 |
RArray<RMediaPlayerItem> iItems;
|
|
115 |
|
|
116 |
public:
|
|
117 |
IMPORT_C void ReadL(const TDesC8& aData);
|
|
118 |
IMPORT_C void WriteL(TDes8& aOutData);
|
|
119 |
IMPORT_C TInt Size();
|
|
120 |
IMPORT_C void Close();
|
|
121 |
|
|
122 |
private:
|
|
123 |
void ReadItemL();
|
|
124 |
void WriteItemL(TInt aIndex);
|
|
125 |
};
|
|
126 |
|
|
127 |
//--------------------------------------------------
|
|
128 |
// Register Notification Addressed Player
|
|
129 |
//--------------------------------------------------
|
|
130 |
class RAvrcpAddressedPlayerNotificationResponse : public RAvrcpIPC
|
|
131 |
{
|
|
132 |
public:
|
|
133 |
TUint16 iPlayerId;
|
|
134 |
TUint16 iUidCounter;
|
|
135 |
|
|
136 |
public:
|
|
137 |
IMPORT_C void ReadL(const TDesC8& aData);
|
|
138 |
IMPORT_C void WriteL(TDes8&);
|
|
139 |
};
|
|
140 |
|
|
141 |
//--------------------------------------------------
|
|
142 |
// Register Notification Uid Counter
|
|
143 |
//--------------------------------------------------
|
|
144 |
class RAvrcpUidCounterNotificationResponse : public RAvrcpIPC
|
|
145 |
{
|
|
146 |
public:
|
|
147 |
TUint16 iUidCounter;
|
|
148 |
|
|
149 |
public:
|
|
150 |
IMPORT_C void ReadL(const TDesC8& aData);
|
|
151 |
IMPORT_C void WriteL(TDes8&);
|
|
152 |
};
|
|
153 |
|
|
154 |
|
|
155 |
#endif //AVRCPINTERNALINTERFACE_H
|