|
1 /* |
|
2 * Copyright (c) 2008-2009 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: Represents a thumbnail request |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 * @internal reviewed 30/07/2007 by Simon Brooks |
|
22 */ |
|
23 |
|
24 #ifndef T_GLXTHUMBNAILREQUEST_H |
|
25 #define T_GLXTHUMBNAILREQUEST_H |
|
26 |
|
27 #include "glxmediaid.h" |
|
28 #include "glxthumbnailinfo.h" |
|
29 |
|
30 class TGlxThumbnailRequest |
|
31 { |
|
32 public: |
|
33 enum TPriorityMode |
|
34 { |
|
35 EPrioritizeSpeed, // Speed of thumbnail provisioning is mode important that quality |
|
36 EPrioritizeQuality, // Quality of thumbnail provisioning is mode important that speed |
|
37 }; |
|
38 |
|
39 public: |
|
40 inline TGlxThumbnailRequest(); |
|
41 |
|
42 inline TGlxThumbnailRequest(TGlxMediaId aId, |
|
43 const TSize& aSizeClass, TPriorityMode aPriorityMode, |
|
44 TInt aBitmapHandle, TBool aDrmAllowed); |
|
45 |
|
46 inline TGlxThumbnailRequest(TGlxMediaId aId, |
|
47 const TSize& aSizeClass, TPriorityMode aPriorityMode, |
|
48 TInt aBitmapHandle, TBool aDrmAllowed, |
|
49 const TRect& aCroppingRect, TGlxThumbnailFilter aFilter); |
|
50 |
|
51 public: |
|
52 TGlxMediaId iId; |
|
53 TSize iSizeClass; |
|
54 TPriorityMode iPriorityMode; |
|
55 TInt iBitmapHandle; // Handle of target bitmap for the thumbnail |
|
56 TBool iDrmAllowed; // True if client has DRM capability |
|
57 TRect iCroppingRect; |
|
58 TGlxThumbnailFilter iFilter; |
|
59 }; |
|
60 |
|
61 #include "glxtnthumbnailrequest.inl" |
|
62 |
|
63 #endif // T_GLXTHUMBNAILREQUEST_H |