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