bluetoothappprofiles/avrcp/common/browsingframe.h
changeset 70 f5508c13dfe0
parent 67 16e4b9007960
child 71 083fd884d7dd
equal deleted inserted replaced
67:16e4b9007960 70:f5508c13dfe0
     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 // browisngframe.h
       
    15 //
       
    16 
       
    17 #ifndef BROWSINGFRAME_H
       
    18 #define BROWSINGFRAME_H
       
    19 
       
    20 /**
       
    21 @file
       
    22 @internalComponent
       
    23 @released
       
    24 */
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 const TInt KUidCounter = 0;
       
    29 
       
    30 namespace AvrcpBrowsing
       
    31 	{
       
    32 const TInt KHeaderLength = 3;
       
    33 typedef TUint8 TPduId;	
       
    34 typedef TUint8 TScope;
       
    35 typedef TUint8 TDirection;
       
    36 typedef TUint8 TPlayable;
       
    37 typedef TUint8 TMediaType;
       
    38 
       
    39 const TScope KMediaPlayerScope = 0x0;
       
    40 const TScope KVirtualFilesystemScope = 0x1;
       
    41 const TScope KSearchScope = 0x2;
       
    42 const TScope KNowPlayingScope = 0x3;
       
    43 
       
    44 const TDirection KUp = 0x00;
       
    45 const TDirection KDown = 0x01;
       
    46 
       
    47 const TPlayable KPlayable = 1;
       
    48 const TPlayable KNotPlayable = 0;
       
    49 const TPlayable KPlayableReserved = 2;
       
    50 
       
    51 const TMediaType KAudio = 0;
       
    52 const TMediaType KVideo = 1;
       
    53 const TMediaType KMediaTypeReserved = 2;
       
    54 
       
    55 enum TPdu
       
    56 	{
       
    57 	ESetBrowsedPlayer = 0x70,
       
    58 	EGetFolderItems = 0x71,
       
    59 	EChangePath = 0x72,
       
    60 	EGetItemAttributes = 0x73, 
       
    61 	ESearch = 0x80,
       
    62 	EGeneralReject = 0xa0,
       
    63 	};
       
    64 
       
    65 enum TItemType
       
    66 	{
       
    67 	EMediaPlayer = 0x01,
       
    68 	EFolderItem = 0x02,
       
    69 	EMediaElement = 0x03,
       
    70 	};
       
    71 
       
    72 enum TFolderType
       
    73 	{
       
    74 	EMixed = 0,
       
    75 	ETitles = 1,
       
    76 	EAlbums = 2,
       
    77 	EArtists = 3,
       
    78 	EGenres = 4,
       
    79 	EPlaylists = 5,
       
    80 	EYears = 6,
       
    81 	EFolderTypeReserved = 7,
       
    82 	};
       
    83 
       
    84 class BrowsingFrame
       
    85 	{
       
    86 public:
       
    87 	static void VerifyFrameL(const TDesC8& aFrame);
       
    88 	static TPduId PduId(const TDesC8& aFrame);
       
    89 	static TInt ParamLength(const TDesC8& aFrame);
       
    90 	static void Payload(const TDesC8& aFrame, TPtrC8& aPayload);
       
    91 	};
       
    92 
       
    93 	} // end namespace BrowsingFrame
       
    94 
       
    95 #endif //BROWSINGFRAME_H