localisation/apparchitecture/tef/apparctestserver.cpp
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-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 // apparctestserver.cpp
    14 //
    15 //
    15 
    16 
    16 
       
    17 
       
    18 /**
    17 /**
    19  @file
    18  @file apparctestserver.cpp
    20  @test
    19  @test
    21  @internalComponent - Internal Symbian test code 
    20  @internalComponent - Internal Symbian test code 
    22 */
    21 */
    23 
    22 
    24 #include <basched.h>
    23 #include <basched.h>
    25 #include <eikenv.h>
    24 #include <eikenv.h>
    26 #include <eikappui.h>
    25 #include <eikappui.h>
    27 #include <eikon.hrh>
    26 #include <mw/eikon.hrh>
    28 #include <eikapp.h>
    27 #include <eikapp.h>
    29 #include <eikdoc.h>
    28 #include <eikdoc.h>
    30 #include <eiklabel.h>
    29 #include <mw/eiklabel.h>
    31 #include <eikfctry.h>
    30 #include <eikfctry.h>
    32 #include <coecntrl.h>
    31 #include <coecntrl.h>
    33 #include <barsread.h>
    32 #include <barsread.h>
    34 #include <eiktbar.h>
    33 #include <mw/eiktbar.h>
    35 #include <eikmenub.h>
    34 #include <mw/eikmenub.h>
    36 
    35 
    37 #include "appfwk_test_AppUi.h"
    36 #include "appfwk_test_appui.h"
    38 #include "ApparcTestServer.h"
    37 #include "apparctestserver.h"
    39 #include "t_foreground.h"
    38 #include "t_foreground.h"
    40 #include "T_ProStep.h"
    39 #include "T_ProStep.h"
    41 #include "T_OOMStep.h"
    40 #include "T_OOMStep.h"
    42 #include "T_File1Step.h"
       
    43 #include "T_File2Step.h"
    41 #include "T_File2Step.h"
    44 #include "T_File3Step.h"
    42 #include "T_File3Step.h"
    45 #include "T_BackupStep.h"
    43 #include "T_BackupStep.h"
    46 #include "T_MdrStep.h"
    44 #include "T_MdrStep.h"
    47 #include "T_Serv2Step.h"
    45 #include "T_Serv2Step.h"
    78 #include "T_IntegritySupportStep.h"
    76 #include "T_IntegritySupportStep.h"
    79 #include "T_IntegritySupportRebootStep.h"
    77 #include "T_IntegritySupportRebootStep.h"
    80 #include "T_ApsScan.h"
    78 #include "T_ApsScan.h"
    81 #include "T_EndTaskStep.h"
    79 #include "T_EndTaskStep.h"
    82 #include "T_RecUpgrade.h"
    80 #include "T_RecUpgrade.h"
    83 #ifdef SYMBIAN_APPARC_APPINFO_CACHE
       
    84 #include "T_AppListFileBootStep.h"
    81 #include "T_AppListFileBootStep.h"
    85 #include "T_AppListFileUpdateStep.h"
    82 #include "T_AppListFileUpdateStep.h"
    86 #endif //SYMBIAN_APPARC_APPINFO_CACHE
       
    87 #include "t_largestackstep.h"
    83 #include "t_largestackstep.h"
    88 #include "t_drivenotification.h"
    84 #include "t_drivenotification.h"
    89 #include "t_mimecontentpolicystep.h"
    85 #include "t_mimecontentpolicystep.h"
    90 #include "t_servicebasestep.h"
    86 #include "t_servicebasestep.h"
    91 
    87 
   132 		testStep = new CT_ProStep();
   128 		testStep = new CT_ProStep();
   133 		}
   129 		}
   134 	else if(aStepName == KT_OOMStep)
   130 	else if(aStepName == KT_OOMStep)
   135 		{
   131 		{
   136 		testStep = new CT_OOMStep();
   132 		testStep = new CT_OOMStep();
   137 		}	
       
   138 	else if(aStepName == KT_File1Step)
       
   139 		{
       
   140 		testStep = new CT_File1Step();
       
   141 		}
   133 		}
   142 	else if(aStepName == KT_File2Step)
   134 	else if(aStepName == KT_File2Step)
   143 		{
   135 		{
   144 		testStep = new CT_File2Step();
   136 		testStep = new CT_File2Step();
   145 		}
   137 		}
   308 		}
   300 		}
   309 	else if (aStepName == KT_EndTaskStep)
   301 	else if (aStepName == KT_EndTaskStep)
   310 		{
   302 		{
   311 		testStep = new CTEndTaskStep();
   303 		testStep = new CTEndTaskStep();
   312 		}	
   304 		}	
   313 	#ifdef SYMBIAN_APPARC_APPINFO_CACHE
       
   314 	else if (aStepName == KT_AppListFileUpdate)
   305 	else if (aStepName == KT_AppListFileUpdate)
   315 		{
   306 		{
   316 		testStep = new CT_AppListFileUpdateStep();
   307 		testStep = new CT_AppListFileUpdateStep();
   317 		}
   308 		}
   318 	else if (aStepName == KT_AppListFile_Boot1)
   309 	else if (aStepName == KT_AppListFile_Boot1)
   325 		}
   316 		}
   326 	else if (aStepName == KT_AppListFile_Boot3)
   317 	else if (aStepName == KT_AppListFile_Boot3)
   327 		{
   318 		{
   328 		testStep = new CT_AppListFileBootStep(3);
   319 		testStep = new CT_AppListFileBootStep(3);
   329 		}
   320 		}
   330 	#endif //SYMBIAN_APPARC_APPINFO_CACHE
       
   331 	else if (aStepName == KT_LargeStackStep)
   321 	else if (aStepName == KT_LargeStackStep)
   332 		{
   322 		{
   333 		testStep = new CT_LargeStackStep();
   323 		testStep = new CT_LargeStackStep();
   334 		}
   324 		}
   335 	else if (aStepName == KT_DriveNotificationStep)
   325 	else if (aStepName == KT_DriveNotificationStep)
   346 		}
   336 		}
   347 	else if (aStepName == KT_RecUpgradeStep)
   337 	else if (aStepName == KT_RecUpgradeStep)
   348 		{
   338 		{
   349 		testStep = new CT_RecUpgradeStep();
   339 		testStep = new CT_RecUpgradeStep();
   350 		}
   340 		}
   351 	
   341 
   352 	return testStep;
   342 	return testStep;
   353 	}
   343 	}
   354 
   344 
   355 
   345 
   356 LOCAL_C void MainL()
   346 LOCAL_C void MainL()