|
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 launches the child application with window chaining |
|
16 // The class definitions are: |
|
17 // CChainLaunchApplication |
|
18 // CChainLaunchAppUi |
|
19 // CChainLaunchDocument |
|
20 // |
|
21 // |
|
22 |
|
23 /** |
|
24 @file |
|
25 @internalComponent - Internal Symbian test code |
|
26 */ |
|
27 |
|
28 #ifndef __T_WINCHAINLAUNCH_H |
|
29 #define __T_WINCHAINLAUNCH_H |
|
30 |
|
31 #include <coeccntx.h> |
|
32 |
|
33 #include <eikenv.h> |
|
34 #include <eikappui.h> |
|
35 #include <eikapp.h> |
|
36 #include <eikdoc.h> |
|
37 #include <techview/eikmenup.h> |
|
38 #include <eikstart.h> //TKAS added for exe-app |
|
39 |
|
40 #include <eikserverapp.h> // REikAppServiceBase |
|
41 #include <techview/eikon.hrh> |
|
42 |
|
43 // Test stuff |
|
44 #include "TWindowChaining.h" |
|
45 |
|
46 class CPackagerAppUi; |
|
47 |
|
48 // |
|
49 // |
|
50 // CChainLaunchApplication |
|
51 // |
|
52 // |
|
53 |
|
54 class CChainLaunchApplication : public CEikApplication |
|
55 { |
|
56 private: |
|
57 // Inherited from class CApaApplication |
|
58 CApaDocument* CreateDocumentL(); |
|
59 TUid AppDllUid() const; |
|
60 TFileName BitmapStoreName() const; |
|
61 }; |
|
62 |
|
63 |
|
64 // |
|
65 // |
|
66 // CChainLaunchAppUi |
|
67 // |
|
68 // |
|
69 class CChainLaunchAppUi : public CEikAppUi, REikAppServiceBase |
|
70 { |
|
71 public: |
|
72 CChainLaunchAppUi() : |
|
73 CEikAppUi() |
|
74 { |
|
75 } |
|
76 void ConstructL(); |
|
77 ~CChainLaunchAppUi(); |
|
78 virtual void RunTestStepL(TInt aNextStep); |
|
79 |
|
80 private: |
|
81 // from RApaAppServiceBase |
|
82 TUid ServiceUid() const; |
|
83 |
|
84 |
|
85 private: |
|
86 |
|
87 CCoeControl* iAppView; |
|
88 |
|
89 }; |
|
90 |
|
91 |
|
92 // |
|
93 // |
|
94 // CChainLaunchDocument |
|
95 // |
|
96 // |
|
97 class CChainLaunchDocument : public CEikDocument |
|
98 { |
|
99 public: |
|
100 static CChainLaunchDocument* NewL(CEikApplication& aApp); |
|
101 CChainLaunchDocument(CEikApplication& aApp); |
|
102 void ConstructL(); |
|
103 private: |
|
104 // Inherited from CEikDocument |
|
105 CEikAppUi* CreateAppUiL(); |
|
106 }; |
|
107 |
|
108 |
|
109 #endif // T_WINCHAINLAUNCH |
|
110 |