|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @test |
|
21 @internalComponent - Internal Symbian test code |
|
22 */ |
|
23 |
|
24 |
|
25 #ifndef __TUPGRADEICONAPP_H |
|
26 #define __TUPGRADEICONAPP_H |
|
27 |
|
28 #include <coeccntx.h> |
|
29 |
|
30 #include <eikenv.h> |
|
31 #include <eikappui.h> |
|
32 #include <eikapp.h> |
|
33 #include <eikdoc.h> |
|
34 #include <eikmenup.h> |
|
35 |
|
36 #include <eikon.hrh> |
|
37 |
|
38 #include <tupgradeiconapp.rsg> |
|
39 |
|
40 |
|
41 |
|
42 //////////////////////////////////////////////////////////////////////// |
|
43 // |
|
44 // CExampleApplication |
|
45 // |
|
46 //////////////////////////////////////////////////////////////////////// |
|
47 |
|
48 class CExampleApplication : public CEikApplication |
|
49 { |
|
50 private: |
|
51 // Inherited from class CApaApplication |
|
52 CApaDocument* CreateDocumentL(); |
|
53 TUid AppDllUid() const; |
|
54 }; |
|
55 |
|
56 //////////////////////////////////////////////////////////////////////// |
|
57 // |
|
58 // CExampleAppView |
|
59 // |
|
60 //////////////////////////////////////////////////////////////////////// |
|
61 class CExampleAppView : public CCoeControl |
|
62 { |
|
63 public: |
|
64 static CExampleAppView* NewL(const TRect& aRect); |
|
65 CExampleAppView(); |
|
66 ~CExampleAppView(); |
|
67 void ConstructL(const TRect& aRect); |
|
68 |
|
69 private: |
|
70 // Inherited from CCoeControl |
|
71 void Draw(const TRect& /*aRect*/) const; |
|
72 |
|
73 private: |
|
74 HBufC* iExampleText; |
|
75 }; |
|
76 |
|
77 |
|
78 //////////////////////////////////////////////////////////////////////// |
|
79 // |
|
80 // CExampleAppUi |
|
81 // |
|
82 //////////////////////////////////////////////////////////////////////// |
|
83 class CExampleAppUi : public CEikAppUi |
|
84 { |
|
85 public: |
|
86 void ConstructL(); |
|
87 ~CExampleAppUi(); |
|
88 |
|
89 private: |
|
90 // Inherirted from class CEikAppUi |
|
91 void HandleCommandL(TInt aCommand); |
|
92 |
|
93 private: |
|
94 CCoeControl* iAppView; |
|
95 }; |
|
96 |
|
97 |
|
98 //////////////////////////////////////////////////////////////////////// |
|
99 // |
|
100 // CExampleDocument |
|
101 // |
|
102 //////////////////////////////////////////////////////////////////////// |
|
103 class CExampleDocument : public CEikDocument |
|
104 { |
|
105 public: |
|
106 static CExampleDocument* NewL(CEikApplication& aApp); |
|
107 CExampleDocument(CEikApplication& aApp); |
|
108 void ConstructL(); |
|
109 private: |
|
110 // Inherited from CEikDocument |
|
111 CEikAppUi* CreateAppUiL(); |
|
112 }; |
|
113 |
|
114 |
|
115 #endif |