|
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: Declares view class for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __NEWCONTACTLAUNCHERAPPVIEW_h__ |
|
19 #define __NEWCONTACTLAUNCHERAPPVIEW_h__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <coecntrl.h> |
|
23 |
|
24 // CLASS DECLARATION |
|
25 class CNewContactLauncherAppView : public CCoeControl |
|
26 { |
|
27 public: |
|
28 // New methods |
|
29 |
|
30 /** |
|
31 * NewL. |
|
32 * Two-phased constructor. |
|
33 * Create a CNewContactLauncherAppView object, which will draw itself to aRect. |
|
34 * @param aRect The rectangle this view will be drawn to. |
|
35 * @return a pointer to the created instance of CNewContactLauncherAppView. |
|
36 */ |
|
37 static CNewContactLauncherAppView* NewL(const TRect& aRect); |
|
38 |
|
39 /** |
|
40 * NewLC. |
|
41 * Two-phased constructor. |
|
42 * Create a CNewContactLauncherAppView object, which will draw itself |
|
43 * to aRect. |
|
44 * @param aRect Rectangle this view will be drawn to. |
|
45 * @return A pointer to the created instance of CNewContactLauncherAppView. |
|
46 */ |
|
47 static CNewContactLauncherAppView* NewLC(const TRect& aRect); |
|
48 |
|
49 /** |
|
50 * ~CNewContactLauncherAppView |
|
51 * Virtual Destructor. |
|
52 */ |
|
53 virtual ~CNewContactLauncherAppView(); |
|
54 |
|
55 public: |
|
56 // Functions from base classes |
|
57 |
|
58 /** |
|
59 * From CCoeControl, Draw |
|
60 * Draw this CNewContactLauncherAppView to the screen. |
|
61 * @param aRect the rectangle of this view that needs updating |
|
62 */ |
|
63 void Draw(const TRect& aRect) const; |
|
64 |
|
65 /** |
|
66 * From CoeControl, SizeChanged. |
|
67 * Called by framework when the view size is changed. |
|
68 */ |
|
69 virtual void SizeChanged(); |
|
70 |
|
71 /** |
|
72 * From CoeControl, HandlePointerEventL. |
|
73 * Called by framework when a pointer touch event occurs. |
|
74 * Note: although this method is compatible with earlier SDKs, |
|
75 * it will not be called in SDKs without Touch support. |
|
76 * @param aPointerEvent the information about this event |
|
77 */ |
|
78 virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
79 |
|
80 private: |
|
81 // Constructors |
|
82 |
|
83 /** |
|
84 * ConstructL |
|
85 * 2nd phase constructor. |
|
86 * Perform the second phase construction of a |
|
87 * CNewContactLauncherAppView object. |
|
88 * @param aRect The rectangle this view will be drawn to. |
|
89 */ |
|
90 void ConstructL(const TRect& aRect); |
|
91 |
|
92 /** |
|
93 * CNewContactLauncherAppView. |
|
94 * C++ default constructor. |
|
95 */ |
|
96 CNewContactLauncherAppView(); |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // __NEWCONTACTLAUNCHERAPPVIEW_h__ |
|
101 // End of File |