equal
deleted
inserted
replaced
|
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 @internalTechnology |
|
21 @released |
|
22 */ |
|
23 |
|
24 #ifndef NOWPLAYING_H |
|
25 #define NOWPLAYING_H |
|
26 |
|
27 #include <e32base.h> |
|
28 #include <remconmediabrowsetypes.h> |
|
29 #include "avrcpipc.h" |
|
30 |
|
31 //The UID identifying the RemCon NowPlaying interface. |
|
32 const TInt KRemConNowPlayingApiUid = 0x10285bbc; |
|
33 |
|
34 /** |
|
35 This is the maximum length of a request that can be received |
|
36 Play Item(0x74) and AddToNowPlaying(0x90) have the largest possible request |
|
37 which is Scope (1 byte) + UID (8 bytes) + UID Counter (2 bytes) |
|
38 the total of which is 11 |
|
39 */ |
|
40 const TInt KMaxLengthNowPlayingMsg = 11; |
|
41 |
|
42 |
|
43 class RRemConNowPlayingRequest : public RAvrcpIPC |
|
44 { |
|
45 public: |
|
46 TRemConFolderScope iScope; |
|
47 TUint64 iElement; |
|
48 TUint16 iUidCounter; |
|
49 public: |
|
50 IMPORT_C void ReadL(const TDesC8& aData); |
|
51 IMPORT_C void WriteL(TDes8& aOutData); |
|
52 }; |
|
53 |
|
54 class RRemConNowPlayingResponse : public RAvrcpIPC |
|
55 { |
|
56 public: |
|
57 TUint8 iStatus; |
|
58 public: |
|
59 IMPORT_C void ReadL(const TDesC8& aData); |
|
60 IMPORT_C void WriteL(TDes8& aOutData); |
|
61 }; |
|
62 |
|
63 #endif //NOWPLAYING_H |