|
1 /* |
|
2 * Copyright (c) 2004-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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPREVIEWINFO_H |
|
20 #define CPREVIEWINFO_H |
|
21 |
|
22 #include <e32def.h> |
|
23 #include <e32std.h> |
|
24 |
|
25 #include "tpreviewimageinfo.h" |
|
26 |
|
27 /** |
|
28 * |
|
29 * Holds information of the preview of a single template |
|
30 * |
|
31 */ |
|
32 class CPreviewInfo : public CBase |
|
33 { |
|
34 public: // Constructors and destructors |
|
35 |
|
36 /** |
|
37 * Constructor |
|
38 * |
|
39 * @param aCapabilityUid Uid of the template |
|
40 * @param aPaperLandscape Is paper drawn to landscape or not |
|
41 */ |
|
42 CPreviewInfo( TInt aCapabilityUid, TBool aPaperLandscape ); |
|
43 |
|
44 /** |
|
45 * Destructor |
|
46 */ |
|
47 ~CPreviewInfo(); |
|
48 |
|
49 public: // data |
|
50 |
|
51 // Paper in landscape format or not.. |
|
52 TBool iPaperLandscape; |
|
53 |
|
54 // Template capability UID |
|
55 TInt iUid; |
|
56 |
|
57 // Used for sticker templates; one image per page, no matter |
|
58 // how many image positions there will be per sheet |
|
59 TBool iOneImagePerPage; |
|
60 |
|
61 // Index of a background bitmap |
|
62 TInt iBckgIndex; |
|
63 |
|
64 // Pointers to the image information in the template |
|
65 RPointerArray<TPreviewImageInfo> iImageInfo; |
|
66 }; |
|
67 |
|
68 #endif // CPREVIEWINFO_H |
|
69 |
|
70 // End of File |