epoc32/include/mw/remconmediabrowsetypes.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/mw/remconmediabrowsetypes.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,118 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +
    1.20 +
    1.21 +/**
    1.22 + @file
    1.23 + @publishedAll
    1.24 + @released
    1.25 +*/
    1.26 +
    1.27 +#ifndef REMCONMEDIABROWSETYPES_H
    1.28 +#define REMCONMEDIABROWSETYPES_H
    1.29 +
    1.30 +#include <e32base.h>
    1.31 +#include <remconmediaattributeid.h>
    1.32 +
    1.33 +/**
    1.34 +Defines a type representing a UID which is 8 octet and uniquely identifys 
    1.35 +a folder or media element in the media library.
    1.36 +*/
    1.37 +typedef TUint64 TRemConItemUid;
    1.38 +
    1.39 +/**
    1.40 +Defines item types to indicate the item is a folder item or media item.
    1.41 +*/
    1.42 +enum TRemConItemType
    1.43 +	{
    1.44 +	ERemConFolderItem = 2,
    1.45 +	ERemConMediaItem = 3,
    1.46 +	};
    1.47 +
    1.48 +class TRemConItem
    1.49 +	{
    1.50 +public:
    1.51 +	TRemConItemUid iUid;
    1.52 +	TRemConItemType iType;
    1.53 +	};
    1.54 +
    1.55 +/**
    1.56 +Defines a type which indicates whether a folder item is playable.
    1.57 +*/
    1.58 +typedef TUint8 TFolderItemPlayable;
    1.59 +
    1.60 +/**
    1.61 +Defines a type to indicate a media item type.
    1.62 +*/
    1.63 +typedef TUint8 TMediaItemType;
    1.64 +
    1.65 +const TFolderItemPlayable KFolderNotPlayable = 0;
    1.66 +const TFolderItemPlayable KFolderPlayable = 1;
    1.67 +
    1.68 +const TMediaItemType KMediaAudio = 0;
    1.69 +const TMediaItemType KMediaVideo = 1;
    1.70 +
    1.71 +enum TFolderItemType
    1.72 +	{
    1.73 +	EFolderMixed = 0,
    1.74 +	EFolderTitles = 1,
    1.75 +	EFolderAlbums = 2,
    1.76 +	EFolderArtists = 3,
    1.77 +	EFolderGenres = 4,
    1.78 +	EFolderPlaylists = 5,
    1.79 +	EFolderYears = 6,
    1.80 +	};
    1.81 +
    1.82 +/**
    1.83 +Defines folder scopes in which media content navigaition  may take place.
    1.84 +*/
    1.85 +enum TRemConFolderScope
    1.86 +	{
    1.87 +	/**
    1.88 +	Applicable in browsed player.
    1.89 +	Valid browseable items are foler item and media element item.
    1.90 +	*/
    1.91 +	EBrowseFolder         = 0x1,
    1.92 +	
    1.93 +	/**
    1.94 +	Applicable in browsed player.
    1.95 +	Valid browseable items are media element items.
    1.96 +	*/
    1.97 +	ESearchResultFolder   = 0x2,
    1.98 +	
    1.99 +	/**
   1.100 +	Applicable in addressed player.
   1.101 +	Valid browseable items are media element items.
   1.102 +	*/
   1.103 +	ENowPlayingFolder     = 0x3
   1.104 +	};
   1.105 +
   1.106 +/**
   1.107 +A data container of a media element attribute.
   1.108 +
   1.109 +*/
   1.110 +class TMediaElementAttribute
   1.111 +	{
   1.112 +public:
   1.113 +	TMediaAttributeId     iAttributeId;
   1.114 +	
   1.115 +	/**
   1.116 +	The value of the attribute in UTF-8.
   1.117 +	*/
   1.118 +	HBufC8*               iString;
   1.119 +	};
   1.120 +
   1.121 +#endif //REMCONMEDIABROWSETYPES_H