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 |
26 #include <coeccntx.h> |
24 #include <coeccntx.h> |
27 #include <eikenv.h> |
25 #include <eikenv.h> |
28 #include <eikappui.h> |
26 #include <eikappui.h> |
29 #include <eikapp.h> |
27 #include <eikapp.h> |
30 #include <eikdoc.h> |
28 #include <eikdoc.h> |
31 #include <eikmenup.h> |
29 #include <mw/eikmenup.h> |
32 #include <eikon.hrh> |
30 #include <mw/eikon.hrh> |
33 #include <tnotifydrivesapp.rsg> |
31 #include <tnotifydrivesapp.rsg> |
34 |
32 |
35 //////////////////////////////////////////////////////////////////////// |
33 // |
36 // |
34 // |
37 // CExampleApplication |
35 // CExampleApplication |
38 // |
36 // |
39 //////////////////////////////////////////////////////////////////////// |
37 // |
40 |
38 |
41 class CExampleApplication : public CEikApplication |
39 class CExampleApplication : public CEikApplication |
42 { |
40 { |
43 private: |
41 private: |
44 // Inherited from class CApaApplication |
42 // Inherited from class CApaApplication |
45 CApaDocument* CreateDocumentL(); |
43 CApaDocument* CreateDocumentL(); |
46 TUid AppDllUid() const; |
44 TUid AppDllUid() const; |
47 }; |
45 }; |
48 |
46 |
49 //////////////////////////////////////////////////////////////////////// |
47 // |
50 // |
48 // |
51 // CExampleAppView |
49 // CExampleAppView |
52 // |
50 // |
53 //////////////////////////////////////////////////////////////////////// |
51 // |
54 class CExampleAppView : public CCoeControl |
52 class CExampleAppView : public CCoeControl |
55 { |
53 { |
56 public: |
54 public: |
57 static CExampleAppView* NewL(const TRect& aRect); |
55 static CExampleAppView* NewL(const TRect& aRect); |
58 CExampleAppView(); |
56 CExampleAppView(); |
66 private: |
64 private: |
67 HBufC* iExampleText; |
65 HBufC* iExampleText; |
68 }; |
66 }; |
69 |
67 |
70 |
68 |
71 //////////////////////////////////////////////////////////////////////// |
69 // |
72 // |
70 // |
73 // CExampleAppUi |
71 // CExampleAppUi |
74 // |
72 // |
75 //////////////////////////////////////////////////////////////////////// |
73 // |
76 class CExampleAppUi : public CEikAppUi |
74 class CExampleAppUi : public CEikAppUi |
77 { |
75 { |
78 public: |
76 public: |
79 void ConstructL(); |
77 void ConstructL(); |
80 ~CExampleAppUi(); |
78 ~CExampleAppUi(); |
86 private: |
84 private: |
87 CCoeControl* iAppView; |
85 CCoeControl* iAppView; |
88 }; |
86 }; |
89 |
87 |
90 |
88 |
91 //////////////////////////////////////////////////////////////////////// |
89 // |
92 // |
90 // |
93 // CExampleDocument |
91 // CExampleDocument |
94 // |
92 // |
95 //////////////////////////////////////////////////////////////////////// |
93 // |
96 class CExampleDocument : public CEikDocument |
94 class CExampleDocument : public CEikDocument |
97 { |
95 { |
98 public: |
96 public: |
99 static CExampleDocument* NewL(CEikApplication& aApp); |
97 static CExampleDocument* NewL(CEikApplication& aApp); |
100 CExampleDocument(CEikApplication& aApp); |
98 CExampleDocument(CEikApplication& aApp); |
104 CEikAppUi* CreateAppUiL(); |
102 CEikAppUi* CreateAppUiL(); |
105 }; |
103 }; |
106 |
104 |
107 |
105 |
108 #endif |
106 #endif |
|
107 |