localisation/apparchitecture/tef/t_winchainChild.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-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 
       
    29 /**
       
    30  @file
       
    31  @internalComponent - Internal Symbian test code 
       
    32 */
       
    33 
       
    34 #ifndef __T_WINCHAINCHILD_H
       
    35 #define __T_WINCHAINCHILD_H
       
    36 
       
    37 #include <coeccntx.h>
       
    38 
       
    39 #include <eikenv.h>
       
    40 #include <eikappui.h>
       
    41 #include <eikapp.h>
       
    42 #include <eikdoc.h>
       
    43 #include <eikmenup.h>
       
    44 #include <eikstart.h> ////TKAS added for exe-app
       
    45 
       
    46 #include <eikserverapp.h> // REikAppServiceBase
       
    47 #include <eikon.hrh>
       
    48 
       
    49 //  Test stuff
       
    50 #include "twindowchaining.h"
       
    51 
       
    52 class CPackagerAppUi;
       
    53 
       
    54 
       
    55 ////////////////////////////////////////////////////////////////////////
       
    56 // CMyAppService
       
    57 ////////////////////////////////////////////////////////////////////////
       
    58 class CMyAppService : public CApaAppServiceBase
       
    59 	{
       
    60 private:
       
    61 	void ServiceL(const RMessage2& aMessage);
       
    62 	TInt TestL(TInt aParentWindowGroupID);
       
    63 	};
       
    64 	
       
    65 
       
    66 ////////////////////////////////////////////////////////////////////////
       
    67 // CMyEikAppServer
       
    68 ////////////////////////////////////////////////////////////////////////	
       
    69 class CMyEikAppServer : public CEikAppServer
       
    70 	{
       
    71 private:
       
    72 	CApaAppServiceBase* CreateServiceL(TUid aServiceType) const;	
       
    73 	};
       
    74 
       
    75 	
       
    76 ////////////////////////////////////////////////////////////////////////
       
    77 //
       
    78 // CChainChildApplication
       
    79 //
       
    80 ////////////////////////////////////////////////////////////////////////
       
    81 class CChainChildApplication : public CEikApplication
       
    82 	{
       
    83 public:
       
    84 	void NewAppServerL(CApaAppServer*& aAppServer)
       
    85 		{
       
    86 		aAppServer=new(ELeave) CMyEikAppServer;
       
    87 		};
       
    88 	
       
    89 	TFileName BitmapStoreName() const;
       
    90 	TFileName ResourceFileName() const;
       
    91 	
       
    92 private: 
       
    93 	// Inherited from class CApaApplication
       
    94 	CApaDocument* CreateDocumentL();
       
    95 	TUid AppDllUid() const;
       
    96 	};
       
    97 
       
    98 ////////////////////////////////////////////////////////////////////////
       
    99 //
       
   100 // CChainChildAppUi
       
   101 //
       
   102 ////////////////////////////////////////////////////////////////////////
       
   103 class CChainChildAppUi : public CEikAppUi
       
   104     {
       
   105 public:
       
   106 	CChainChildAppUi() :
       
   107 	   CEikAppUi()  
       
   108 		{
       
   109 		}
       
   110     void ConstructL();
       
   111 	~CChainChildAppUi();
       
   112 	virtual void RunTestStepL(TInt aNextStep); 
       
   113 	
       
   114 private:
       
   115     // Inherited from class CEikAppUi
       
   116 	void HandleCommandL(TInt aCommand);
       
   117 
       
   118 	
       
   119 private:
       
   120 	
       
   121 	CCoeControl* iAppView;
       
   122 
       
   123 	};
       
   124 
       
   125 
       
   126 ////////////////////////////////////////////////////////////////////////
       
   127 //
       
   128 // CChainChildDocument
       
   129 //
       
   130 ////////////////////////////////////////////////////////////////////////
       
   131 class CChainChildDocument : public CEikDocument
       
   132 	{
       
   133 public:
       
   134 	static CChainChildDocument* NewL(CEikApplication& aApp);
       
   135 	CChainChildDocument(CEikApplication& aApp);
       
   136 	void ConstructL();
       
   137 private: 
       
   138 	// Inherited from CEikDocument
       
   139 	CEikAppUi* CreateAppUiL();
       
   140 	};
       
   141 
       
   142 
       
   143 #endif // T_WINCHAINCHILD