1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-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. |
38 |
36 |
39 #include <eikenv.h> |
37 #include <eikenv.h> |
40 #include <eikappui.h> |
38 #include <eikappui.h> |
41 #include <eikapp.h> |
39 #include <eikapp.h> |
42 #include <eikdoc.h> |
40 #include <eikdoc.h> |
43 #include <eikmenup.h> |
41 #include <mw/eikmenup.h> |
44 #include <eikstart.h> ////TKAS added for exe-app |
42 #include <eikstart.h> //TKAS added for exe-app |
45 |
43 |
46 #include <eikserverapp.h> // REikAppServiceBase |
44 #include <eikserverapp.h> // REikAppServiceBase |
47 #include <eikon.hrh> |
45 #include <mw/eikon.hrh> |
48 |
46 |
49 // Test stuff |
47 // Test stuff |
50 #include "twindowchaining.h" |
48 #include "TWindowChaining.h" |
51 |
49 |
52 class CPackagerAppUi; |
50 class CPackagerAppUi; |
53 |
51 |
54 |
52 |
55 //////////////////////////////////////////////////////////////////////// |
53 // |
56 // CMyAppService |
54 // CMyAppService |
57 //////////////////////////////////////////////////////////////////////// |
55 // |
58 class CMyAppService : public CApaAppServiceBase |
56 class CMyAppService : public CApaAppServiceBase |
59 { |
57 { |
60 private: |
58 private: |
61 void ServiceL(const RMessage2& aMessage); |
59 void ServiceL(const RMessage2& aMessage); |
62 TInt TestL(TInt aParentWindowGroupID); |
60 TInt TestL(TInt aParentWindowGroupID); |
63 }; |
61 }; |
64 |
62 |
65 |
63 |
66 //////////////////////////////////////////////////////////////////////// |
64 // |
67 // CMyEikAppServer |
65 // CMyEikAppServer |
68 //////////////////////////////////////////////////////////////////////// |
66 // |
69 class CMyEikAppServer : public CEikAppServer |
67 class CMyEikAppServer : public CEikAppServer |
70 { |
68 { |
71 private: |
69 private: |
72 CApaAppServiceBase* CreateServiceL(TUid aServiceType) const; |
70 CApaAppServiceBase* CreateServiceL(TUid aServiceType) const; |
73 }; |
71 }; |
74 |
72 |
75 |
73 |
76 //////////////////////////////////////////////////////////////////////// |
74 // |
77 // |
75 // |
78 // CChainChildApplication |
76 // CChainChildApplication |
79 // |
77 // |
80 //////////////////////////////////////////////////////////////////////// |
78 // |
81 class CChainChildApplication : public CEikApplication |
79 class CChainChildApplication : public CEikApplication |
82 { |
80 { |
83 public: |
81 public: |
84 void NewAppServerL(CApaAppServer*& aAppServer) |
82 void NewAppServerL(CApaAppServer*& aAppServer) |
85 { |
83 { |
93 // Inherited from class CApaApplication |
91 // Inherited from class CApaApplication |
94 CApaDocument* CreateDocumentL(); |
92 CApaDocument* CreateDocumentL(); |
95 TUid AppDllUid() const; |
93 TUid AppDllUid() const; |
96 }; |
94 }; |
97 |
95 |
98 //////////////////////////////////////////////////////////////////////// |
96 // |
99 // |
97 // |
100 // CChainChildAppUi |
98 // CChainChildAppUi |
101 // |
99 // |
102 //////////////////////////////////////////////////////////////////////// |
100 // |
103 class CChainChildAppUi : public CEikAppUi |
101 class CChainChildAppUi : public CEikAppUi |
104 { |
102 { |
105 public: |
103 public: |
106 CChainChildAppUi() : |
104 CChainChildAppUi() : |
107 CEikAppUi() |
105 CEikAppUi() |
121 CCoeControl* iAppView; |
119 CCoeControl* iAppView; |
122 |
120 |
123 }; |
121 }; |
124 |
122 |
125 |
123 |
126 //////////////////////////////////////////////////////////////////////// |
124 // |
127 // |
125 // |
128 // CChainChildDocument |
126 // CChainChildDocument |
129 // |
127 // |
130 //////////////////////////////////////////////////////////////////////// |
128 // |
131 class CChainChildDocument : public CEikDocument |
129 class CChainChildDocument : public CEikDocument |
132 { |
130 { |
133 public: |
131 public: |
134 static CChainChildDocument* NewL(CEikApplication& aApp); |
132 static CChainChildDocument* NewL(CEikApplication& aApp); |
135 CChainChildDocument(CEikApplication& aApp); |
133 CChainChildDocument(CEikApplication& aApp); |