telephonyserverplugins/simtsy/SimTsyCPM/SimTsyCPM.cpp
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     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 P&S properties used by Sim.Tsy are defined by this component.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20 */
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32property.h>
       
    24 #include <simtsy.h>
       
    25 
       
    26 /**
       
    27 This function defines all P&S properties used by Sim.Tsy.
       
    28 */
       
    29 void InitSimTsyCpm()
       
    30 	{
       
    31 	TSecurityPolicy readPolicy(TSecurityPolicy::EAlwaysPass);
       
    32 	TSecurityPolicy writePolicy(TSecurityPolicy::EAlwaysPass);
       
    33 
       
    34 	RProperty::Define(KPSSimTsyTestNumber, KPSSimTsyTestNumberKeyType, readPolicy, writePolicy);
       
    35 	RProperty::Define(KPSSimTsyTestNumberInUse, KPSSimTsyTestNumberInUseKeyType, readPolicy, writePolicy);
       
    36 	RProperty::Define(KPSSimTsyIncomingVoiceCall, KPSSimTsyIncomingVoiceCallKeyType, readPolicy, writePolicy);
       
    37 	RProperty::Define(KPSSimTsyIncomingDataCall, KPSSimTsyIncomingDataCallKeyType, readPolicy, writePolicy);
       
    38 	RProperty::Define(KPSSimTsyRemoteHangup, KPSSimTsyRemoteHangupKeyType, readPolicy, writePolicy);
       
    39 	RProperty::Define(KPSSimTsyRegStatChange, KPSSimTsyRegStatChangeKeyType, readPolicy, writePolicy);
       
    40 	RProperty::Define(KPSSimTsyTimersReduceTime, KPSSimTsyTimersReduceTimeSignalKeyType, readPolicy, writePolicy);
       
    41 	RProperty::Define(KPSSimTsyNetworkQoSChange, KPSSimTsyNetworkQoSChangeKeyType, readPolicy, writePolicy);
       
    42 	RProperty::Define(KPSSimtsyPacketServiceNtwkRegStatusChange, KPSSimtsyPacketServiceNtwkRegStatusChangeKeyType, readPolicy, writePolicy);
       
    43 	RProperty::Define(KPSSimtsyPacketContextStatusChange, KPSSimtsyPacketContextStatusChangeKeyType, readPolicy, writePolicy);
       
    44 	RProperty::Define(KPSSimTsyForceIncomingContextActivation, KPSSimTsyForceIncomingContextActivationType, readPolicy, writePolicy);
       
    45 	RProperty::Define(KPSSimTsyMbmsService, KPSSimTsyMbmsServiceType, readPolicy, writePolicy);
       
    46 	RProperty::Define(KPSSimTsySignalStrengthChange, KPSSimTsySignalStrengthChangeKeyType, readPolicy, writePolicy); //this must be the LAST one to be defined
       
    47 	}
       
    48 
       
    49 /**
       
    50 Sim.Tsy's CPM thread entry point.
       
    51 */
       
    52 EXPORT_C TInt SimTsyCpmThread(TAny*)
       
    53 	{
       
    54 	// Signal to the RootServer that init is completed successfully
       
    55 	RThread::Rendezvous(KErrNone);
       
    56 
       
    57 	InitSimTsyCpm();
       
    58 	return 0;
       
    59 	}