equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * CUniDrmInfo, Storage for single attachment in presentation. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // --------------------------------------------------------- |
|
22 // CUniDrmInfo::ConsumeIntent |
|
23 // |
|
24 // --------------------------------------------------------- |
|
25 // |
|
26 inline ContentAccess::TIntent CUniDrmInfo::ConsumeIntent() |
|
27 { |
|
28 switch ( iMediaInfo.MediaType() ) |
|
29 { |
|
30 case EMsgMediaAudio: |
|
31 case EMsgMediaVideo: |
|
32 { |
|
33 return ContentAccess::EPlay; |
|
34 break; |
|
35 } |
|
36 case EMsgMediaImage: |
|
37 case EMsgMediaText: |
|
38 case EMsgMediaSvg: |
|
39 { |
|
40 return ContentAccess::EView; |
|
41 break; |
|
42 } |
|
43 default: |
|
44 { |
|
45 return ContentAccess::EUnknown; |
|
46 break; |
|
47 } |
|
48 } |
|
49 } |