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