|
1 // Copyright (c) 2005-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 // The class definitions for the simple test application |
|
15 // which is launched by t_winchainLaunch. The application |
|
16 // checks that the window group id matches the parent app |
|
17 // and returns a message based on the result. |
|
18 // The class definitions are: |
|
19 // CMyAppService |
|
20 // CMyEikAppServer |
|
21 // CChainChildApplication |
|
22 // CChainChildAppUi |
|
23 // CChainChildDocument |
|
24 // |
|
25 // |
|
26 |
|
27 /** |
|
28 @file |
|
29 @internalComponent - Internal Symbian test code |
|
30 */ |
|
31 |
|
32 #ifndef __T_WINCHAINCHILD_H |
|
33 #define __T_WINCHAINCHILD_H |
|
34 |
|
35 #include <coeccntx.h> |
|
36 |
|
37 #include <eikenv.h> |
|
38 #include <eikappui.h> |
|
39 #include <eikapp.h> |
|
40 #include <eikdoc.h> |
|
41 #include <techview/eikmenup.h> |
|
42 #include <eikstart.h> //TKAS added for exe-app |
|
43 |
|
44 #include <eikserverapp.h> // REikAppServiceBase |
|
45 #include <techview/eikon.hrh> |
|
46 |
|
47 // Test stuff |
|
48 #include "TWindowChaining.h" |
|
49 |
|
50 class CPackagerAppUi; |
|
51 |
|
52 |
|
53 // |
|
54 // CMyAppService |
|
55 // |
|
56 class CMyAppService : public CApaAppServiceBase |
|
57 { |
|
58 private: |
|
59 void ServiceL(const RMessage2& aMessage); |
|
60 TInt TestL(TInt aParentWindowGroupID); |
|
61 }; |
|
62 |
|
63 |
|
64 // |
|
65 // CMyEikAppServer |
|
66 // |
|
67 class CMyEikAppServer : public CEikAppServer |
|
68 { |
|
69 private: |
|
70 CApaAppServiceBase* CreateServiceL(TUid aServiceType) const; |
|
71 }; |
|
72 |
|
73 |
|
74 // |
|
75 // |
|
76 // CChainChildApplication |
|
77 // |
|
78 // |
|
79 class CChainChildApplication : public CEikApplication |
|
80 { |
|
81 public: |
|
82 void NewAppServerL(CApaAppServer*& aAppServer) |
|
83 { |
|
84 aAppServer=new(ELeave) CMyEikAppServer; |
|
85 }; |
|
86 |
|
87 TFileName BitmapStoreName() const; |
|
88 TFileName ResourceFileName() const; |
|
89 |
|
90 private: |
|
91 // Inherited from class CApaApplication |
|
92 CApaDocument* CreateDocumentL(); |
|
93 TUid AppDllUid() const; |
|
94 }; |
|
95 |
|
96 // |
|
97 // |
|
98 // CChainChildAppUi |
|
99 // |
|
100 // |
|
101 class CChainChildAppUi : public CEikAppUi |
|
102 { |
|
103 public: |
|
104 CChainChildAppUi() : |
|
105 CEikAppUi() |
|
106 { |
|
107 } |
|
108 void ConstructL(); |
|
109 ~CChainChildAppUi(); |
|
110 virtual void RunTestStepL(TInt aNextStep); |
|
111 |
|
112 private: |
|
113 // Inherited from class CEikAppUi |
|
114 void HandleCommandL(TInt aCommand); |
|
115 |
|
116 |
|
117 private: |
|
118 |
|
119 CCoeControl* iAppView; |
|
120 |
|
121 }; |
|
122 |
|
123 |
|
124 // |
|
125 // |
|
126 // CChainChildDocument |
|
127 // |
|
128 // |
|
129 class CChainChildDocument : public CEikDocument |
|
130 { |
|
131 public: |
|
132 static CChainChildDocument* NewL(CEikApplication& aApp); |
|
133 CChainChildDocument(CEikApplication& aApp); |
|
134 void ConstructL(); |
|
135 private: |
|
136 // Inherited from CEikDocument |
|
137 CEikAppUi* CreateAppUiL(); |
|
138 }; |
|
139 |
|
140 |
|
141 #endif // T_WINCHAINCHILD |
|
142 |