equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // |
14 // |
15 |
|
16 |
|
17 |
15 |
18 /** |
16 /** |
19 @file |
17 @file |
20 @test |
18 @test |
21 @internalComponent - Internal Symbian test code |
19 @internalComponent - Internal Symbian test code |
27 #include "tupgradeiconapp.h" |
25 #include "tupgradeiconapp.h" |
28 |
26 |
29 const TUid KUidUpgradeIconApp = { 0xA0003195 }; |
27 const TUid KUidUpgradeIconApp = { 0xA0003195 }; |
30 |
28 |
31 |
29 |
32 //////////////////////////////////////////////////////////////////////// |
30 // |
33 // |
31 // |
34 // Implementation of the application class - CExampleApplication |
32 // Implementation of the application class - CExampleApplication |
35 // |
33 // |
36 //////////////////////////////////////////////////////////////////////// |
34 // |
37 |
35 |
38 TUid CExampleApplication::AppDllUid() const |
36 TUid CExampleApplication::AppDllUid() const |
39 { |
37 { |
40 return KUidUpgradeIconApp; |
38 return KUidUpgradeIconApp; |
41 } |
39 } |
44 { |
42 { |
45 return new (ELeave) CExampleDocument(*this); |
43 return new (ELeave) CExampleDocument(*this); |
46 } |
44 } |
47 |
45 |
48 |
46 |
49 //////////////////////////////////////////////////////////////////////// |
47 // |
50 // |
48 // |
51 // Implementation of the appui class - CExampleAppUi |
49 // Implementation of the appui class - CExampleAppUi |
52 // |
50 // |
53 //////////////////////////////////////////////////////////////////////// |
51 // |
54 |
52 |
55 void CExampleAppUi::ConstructL() |
53 void CExampleAppUi::ConstructL() |
56 { |
54 { |
57 BaseConstructL(); |
55 BaseConstructL(); |
58 iAppView = CExampleAppView::NewL(ClientRect()); |
56 iAppView = CExampleAppView::NewL(ClientRect()); |
73 } |
71 } |
74 } |
72 } |
75 |
73 |
76 |
74 |
77 |
75 |
78 //////////////////////////////////////////////////////////////////////// |
76 // |
79 // |
77 // |
80 // Implementation of the view class - CExampleAppView |
78 // Implementation of the view class - CExampleAppView |
81 // |
79 // |
82 //////////////////////////////////////////////////////////////////////// |
80 // |
83 |
81 |
84 CExampleAppView::CExampleAppView() |
82 CExampleAppView::CExampleAppView() |
85 { |
83 { |
86 } |
84 } |
87 |
85 |
143 gc.DiscardFont(); |
141 gc.DiscardFont(); |
144 } |
142 } |
145 |
143 |
146 |
144 |
147 |
145 |
148 //////////////////////////////////////////////////////////////////////// |
146 // |
149 // |
147 // |
150 // Implementation of the document class - CExampleDocument |
148 // Implementation of the document class - CExampleDocument |
151 // |
149 // |
152 //////////////////////////////////////////////////////////////////////// |
150 // |
153 |
151 |
154 CExampleDocument::CExampleDocument(CEikApplication& aApp) |
152 CExampleDocument::CExampleDocument(CEikApplication& aApp) |
155 : CEikDocument(aApp) |
153 : CEikDocument(aApp) |
156 { |
154 { |
157 } |
155 } |