localisation/apparchitecture/tef/tssaac/tssaac.cpp
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-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.
    13 // Description:
    13 // Description:
    14 // Startup State Aware (SSA) test component used to
    14 // Startup State Aware (SSA) test component used to
    15 // test apparc StartApp and StartDocument functionality \n
    15 // test apparc StartApp and StartDocument functionality \n
    16 // 
    16 // 
    17 //
    17 //
    18 
       
    19 
       
    20 
    18 
    21 /**
    19 /**
    22  @file
    20  @file
    23  @test
    21  @test
    24  @internalComponent  Internal Symbian test code
    22  @internalComponent  Internal Symbian test code
   155 	//Prevent emulator closing when a panic occurs
   153 	//Prevent emulator closing when a panic occurs
   156 	User::SetJustInTime(EFalse);
   154 	User::SetJustInTime(EFalse);
   157 
   155 
   158 	CActiveScheduler* theScheduler = new (ELeave) CActiveScheduler();
   156 	CActiveScheduler* theScheduler = new (ELeave) CActiveScheduler();
   159 	CleanupStack::PushL(theScheduler);
   157 	CleanupStack::PushL(theScheduler);
   160 	CActiveScheduler::Install(theScheduler);
   158 	CActiveScheduler::Install(theScheduler);	
       
   159 
       
   160 #ifdef SYMBIAN_SYSTEM_STATE_MANAGEMENT
       
   161 	CApparcFuncInSystart *starter = CApparcFuncInSystart::NewLC(KDmHierarchyIdStartup, KSM2AppServicesDomain3);
       
   162 #else
   161 	CApparcFuncInSystart *starter = CApparcFuncInSystart::NewLC(KDmHierarchyIdStartup, KAppServicesDomain3);
   163 	CApparcFuncInSystart *starter = CApparcFuncInSystart::NewLC(KDmHierarchyIdStartup, KAppServicesDomain3);
       
   164 #endif
   162 
   165 
   163 	starter->Start();
   166 	starter->Start();
   164 
   167 
   165 	CActiveScheduler::Start();
   168 	CActiveScheduler::Start();
   166 
   169