1 /* |
|
2 * Copyright (c) 2004 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: Application View for map and navigation test provider |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __MNTP_APPVIEW_H_ |
|
21 #define __MNTP_APPVIEW_H_ |
|
22 |
|
23 #include <coecntrl.h> |
|
24 |
|
25 class CTestProviderAppView : public CCoeControl |
|
26 { |
|
27 public: // New methods |
|
28 |
|
29 /** |
|
30 * NewL. |
|
31 * Two-phased constructor. |
|
32 * Create a CTestProviderAppView object, which will draw itself to aRect. |
|
33 * @param aRect The rectangle this view will be drawn to. |
|
34 * @return a pointer to the created instance of CTestProviderAppView. |
|
35 */ |
|
36 static CTestProviderAppView* NewL( const TRect& aRect ); |
|
37 |
|
38 /** |
|
39 * NewLC. |
|
40 * Two-phased constructor. |
|
41 * Create a CTestProviderAppView object, which will draw itself |
|
42 * to aRect. |
|
43 * @param aRect Rectangle this view will be drawn to. |
|
44 * @return A pointer to the created instance of CTestProviderAppView. |
|
45 */ |
|
46 static CTestProviderAppView* NewLC( const TRect& aRect ); |
|
47 |
|
48 /** |
|
49 * ~CTestProviderAppView |
|
50 * Virtual Destructor. |
|
51 */ |
|
52 virtual ~CTestProviderAppView(); |
|
53 |
|
54 public: // Functions from base classes |
|
55 |
|
56 /** |
|
57 * From CCoeControl, Draw |
|
58 * Draw this CAnimationAppView to the screen. |
|
59 * @param aRect the rectangle of this view that needs updating |
|
60 */ |
|
61 void Draw( const TRect& aRect ) const; |
|
62 |
|
63 //TInt CountComponentControls() const { return 1;}; |
|
64 |
|
65 protected: |
|
66 /* |
|
67 CCoeControl* ComponentControl(TInt aIndex) const |
|
68 { |
|
69 return (aIndex == 0) ? iList : NULL; |
|
70 }; |
|
71 */ |
|
72 private: // Constructors |
|
73 |
|
74 /** |
|
75 * ConstructL |
|
76 * 2nd phase constructor. |
|
77 * Perform the second phase construction of a |
|
78 * CTestProviderAppView object. |
|
79 * @param aRect The rectangle this view will be drawn to. |
|
80 */ |
|
81 void ConstructL(const TRect& aRect); |
|
82 |
|
83 /** |
|
84 * CTestProviderAppView. |
|
85 * C++ default constructor. |
|
86 */ |
|
87 CTestProviderAppView(); |
|
88 |
|
89 private: |
|
90 |
|
91 }; |
|
92 |
|
93 #endif // __MNTP_APPVIEW_H_ |
|
94 |
|