63
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-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: Phonebook 2 image manager parameters.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef TPBK2IMAGEMANAGERPARAMS_H
|
|
20 |
#define TPBK2IMAGEMANAGERPARAMS_H
|
|
21 |
|
|
22 |
#include <e32std.h> // TSize
|
|
23 |
#include <gdi.h> // TDisplayMode
|
|
24 |
|
|
25 |
/**
|
|
26 |
* Phonebook 2 image manager parameters.
|
|
27 |
*/
|
|
28 |
class TPbk2ImageManagerParams
|
|
29 |
{
|
|
30 |
public: // Types
|
|
31 |
|
|
32 |
/// Flags
|
|
33 |
enum TFlags
|
|
34 |
{
|
|
35 |
EFlagsNull = 0,
|
|
36 |
|
|
37 |
/// Scale the image after loading to specified size.
|
|
38 |
EScaleImage = 0x0001,
|
|
39 |
|
|
40 |
/// Scale keeping the aspect ratio.
|
|
41 |
EKeepAspectRatio = 0x0002,
|
|
42 |
|
|
43 |
/// Fast scaling of the image close, but not excactly to desired
|
|
44 |
/// size (always keeps aspect ratio).
|
|
45 |
EUseFastScaling = 0x0004,
|
|
46 |
|
|
47 |
/// Crop landscape image to square, before thumbnail is scaled.
|
|
48 |
ECropImage = 0x0008,
|
|
49 |
|
|
50 |
/// Speed optimized algorithm is used for scaling. @See AknIconUtils::ScaleBitmapL
|
|
51 |
EUseSpeedOptimizedScaling = 0x0010
|
|
52 |
};
|
|
53 |
|
|
54 |
public: // Interface
|
|
55 |
|
|
56 |
/**
|
|
57 |
* Default constructor.
|
|
58 |
*/
|
|
59 |
IMPORT_C TPbk2ImageManagerParams();
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Desired size for the bitmap.
|
|
63 |
*/
|
|
64 |
TSize iSize;
|
|
65 |
|
|
66 |
/**
|
|
67 |
* Assorted flags, @see TFlags.
|
|
68 |
* Default = EFlagsNull.
|
|
69 |
*/
|
|
70 |
TUint iFlags;
|
|
71 |
|
|
72 |
/**
|
|
73 |
* Display mode for the loaded bitmap.
|
|
74 |
* Default = EColor16M.
|
|
75 |
*/
|
|
76 |
TDisplayMode iDisplayMode;
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Number of the frame to read.
|
|
80 |
* Default = 0.
|
|
81 |
*/
|
|
82 |
TInt iFrameNumber;
|
|
83 |
|
|
84 |
private: // Data
|
|
85 |
/// Own: Spare data
|
|
86 |
TInt32 iSpare1;
|
|
87 |
/// Own: Spare data
|
|
88 |
TInt32 iSpare2;
|
|
89 |
};
|
|
90 |
|
|
91 |
#endif // TPBK2IMAGEMANAGERPARAMS_H
|
|
92 |
|
|
93 |
// End of File
|