sysstatemgmt/systemstateplugins/test/tcmncustomcmd/src/tcmncustomcmd_server.cpp
changeset 70 653a8b91b95e
parent 0 4e1aa6a622a0
equal deleted inserted replaced
64:61992147389a 70:653a8b91b95e
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2010 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 "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".
    19  @internalComponent - Internal Symbian test code
    19  @internalComponent - Internal Symbian test code
    20 */
    20 */
    21 
    21 
    22 #include "tcmncustomcmd_server.h"
    22 #include "tcmncustomcmd_server.h"
    23 #include "tcmncustomcmd_step_rendezvouswithestart.h"
    23 #include "tcmncustomcmd_step_rendezvouswithestart.h"
    24 #include "tcmncustomcmd_step_persistreboots.h"
       
    25 #include "tcmncustomcmd_step_cancelmonitoring.h"
    24 #include "tcmncustomcmd_step_cancelmonitoring.h"
    26 
    25 
    27 _LIT(KCustomCmdTestServerName, "tcmncustomcmd_server");
    26 _LIT(KCustomCmdTestServerName, "tcmncustomcmd_server");
    28 
    27 
    29 CCmdTestServer* CCmdTestServer::NewLC( )
    28 CCmdTestServer* CCmdTestServer::NewLC( )
    82 	CTestStep* testStep = NULL;
    81 	CTestStep* testStep = NULL;
    83 	if (aStepName == KTCCustomCmdTestRendezvousWithEStart)
    82 	if (aStepName == KTCCustomCmdTestRendezvousWithEStart)
    84 		{
    83 		{
    85 		testStep = new CCustomCmdTestRendezvousWithEStart();
    84 		testStep = new CCustomCmdTestRendezvousWithEStart();
    86 		}
    85 		}
    87 	else if (aStepName == KTCCustomCmdTestPersistReboots)
    86 	else if (aStepName == KTCCustomCmdTestCancelMonitoring)
    88 		{
       
    89 		testStep = new CCustomCmdTestPersistReboots();
       
    90 		}	
       
    91     else if (aStepName == KTCCustomCmdTestCancelMonitoring)
       
    92         {
    87         {
    93         testStep = new CCustomCmdTestCancelMonitoring();
    88         testStep = new CCustomCmdTestCancelMonitoring();
    94         }   
    89         }   
    95 	else
    90 	else
    96 		{
    91 		{