|
1 /* |
|
2 * Copyright (c) 2002 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: LandmarksUi Content File - Application View control class for Landmark Message Viewer. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef __CLMKMSGVIEWERAPPVIEW_H |
|
25 #define __CLMKMSGVIEWERAPPVIEW_H |
|
26 |
|
27 // INCLUDES |
|
28 #include <coecntrl.h> |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class MAknsSkinInstance; |
|
32 class CAknsBasicBackgroundControlContext; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * Application View control class. |
|
38 */ |
|
39 class CLmkMsgViewerAppView : public CCoeControl |
|
40 { |
|
41 public: // New methods |
|
42 |
|
43 /** |
|
44 * NewL. |
|
45 * Two-phased constructor. |
|
46 * Create a CLmkMsgViewerAppView object, which will draw itself to aRect. |
|
47 * @param aRect The rectangle this view will be drawn to. |
|
48 * @return a pointer to the created instance of CLmkMsgViewerAppView. |
|
49 */ |
|
50 static CLmkMsgViewerAppView* NewL( const TRect& aRect ); |
|
51 |
|
52 /** |
|
53 * NewLC. |
|
54 * Two-phased constructor. |
|
55 * Create a CLmkMsgViewerAppView object, which will draw itself |
|
56 * to aRect. |
|
57 * @param aRect Rectangle this view will be drawn to. |
|
58 * @return A pointer to the created instance of CLmkMsgViewerAppView. |
|
59 */ |
|
60 static CLmkMsgViewerAppView* NewLC( const TRect& aRect ); |
|
61 |
|
62 /** |
|
63 * ~CLmkMsgViewerAppView |
|
64 * Virtual Destructor. |
|
65 */ |
|
66 virtual ~CLmkMsgViewerAppView(); |
|
67 |
|
68 public: // Functions from base classes |
|
69 |
|
70 /** |
|
71 * From CCoeControl, Draw |
|
72 * Draw this CAnimationAppView to the screen. |
|
73 * @param aRect the rectangle of this view that needs updating |
|
74 */ |
|
75 void Draw( const TRect& aRect ) const; |
|
76 |
|
77 protected: |
|
78 // From CCoeControl |
|
79 TInt CountComponentControls() const; |
|
80 CCoeControl *ComponentControl(TInt aIndex) const; |
|
81 |
|
82 private: // Constructors |
|
83 |
|
84 /** |
|
85 * ConstructL |
|
86 * 2nd phase constructor. |
|
87 * Perform the second phase construction of a |
|
88 * CLmkMsgViewerAppView object. |
|
89 * @param aRect The rectangle this view will be drawn to. |
|
90 */ |
|
91 void ConstructL(const TRect& aRect); |
|
92 |
|
93 /** |
|
94 * CLmkMsgViewerAppView. |
|
95 * C++ default constructor. |
|
96 */ |
|
97 CLmkMsgViewerAppView(); |
|
98 |
|
99 private: |
|
100 |
|
101 //! Ref: A pointer to skin instance |
|
102 MAknsSkinInstance* iSkinInstance; |
|
103 |
|
104 //! Own: A pointer to BasicBackgroundControlContext |
|
105 CAknsBasicBackgroundControlContext* iBackgroundSkinContext; |
|
106 }; |
|
107 |
|
108 #endif // __CLMKMSGVIEWERAPPVIEW_H |
|
109 |
|
110 // End of File |