|
1 // Copyright (c) 2008-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 // |
|
15 |
|
16 #ifndef __TCUSTCMD_CONST_H__ |
|
17 #define __TCUSTCMD_CONST_H__ |
|
18 |
|
19 #include <e32property.h> |
|
20 |
|
21 //Swp policy file for sim status swp |
|
22 _LIT(KTestSimStatusSwpPolicy, "ssm.swp.policy.simstatus.dll"); |
|
23 |
|
24 //Exe name which defines startup PS keys |
|
25 _LIT (KExeToDefineStartUpPS, "\\sys\\bin\\definestartupps.exe"); |
|
26 //Exe name which defines startup PS keys |
|
27 _LIT (KExeToDefineStartUpStatePS, "\\sys\\bin\\definesecuritystateps.exe"); |
|
28 |
|
29 |
|
30 _LIT(KDirNameOfTestCasesNumFile, "c:\\cmdsecuritychecktest\\"); |
|
31 // Use to write the PIN Check Security test case nos. |
|
32 _LIT(KTestCmdSecurityCheckTestFile, "c:\\cmdsecuritychecktest\\pinchecksecuritycaseno.txt"); |
|
33 |
|
34 //Exe name which defines emergency call PS keys |
|
35 _LIT (KExeToDefineEmergencyCallPS, "\\sys\\bin\\defineemergencycallps.exe"); |
|
36 |
|
37 _LIT(KDllName, "customcmds.dll"); |
|
38 |
|
39 //static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy); |
|
40 |
|
41 const TUid KPropertyCategory={0x2000D75B}; // tcustomcmd_server SID = KSsmServerName SID (changed in tcustomcmd_server.mmp file) |
|
42 const TUid KCustomcmdServerSID = KPropertyCategory; |
|
43 |
|
44 const TUint KCustomcmdServerPropertyKey = 0x0012AC; |
|
45 |
|
46 const TUint KTestSwp={0x00B0BE}; |
|
47 |
|
48 |
|
49 const TInt KSecurityCustCmdOrdinal = 1; |
|
50 const TInt KActivateEmergencyCallOrdinal = 4; |
|
51 const TInt KDeActivateEmergencyCallOrdinal = 6; |
|
52 |
|
53 enum TRPropertyValCustCmd |
|
54 { |
|
55 //create and execute ActivateEmergencyCall custom command |
|
56 ERPropertyValForActivateEmergencyCall = 11, |
|
57 //create and execute DeActivateEmergencyCall custom command |
|
58 ERPropertyValForDeActivateEmergencyCall = 22, |
|
59 //create and execute security custom command with execution behaviour WaitForSignal |
|
60 ERPropertyValForSecCustCmdWaitForSignal = 33, |
|
61 //create and execute security custom command with execution behaviour DeferredWaitForSignal |
|
62 ERPropertyValForSecCustCmdDeferrdWaitForSignal = 44, |
|
63 //create and execute security custom command with execution behaviour fireandforget |
|
64 ERPropertyValForSecCustCmdFireAndForget = 55, |
|
65 //create and execute security custom command with execution behaviour WaitForSignal |
|
66 ERPropertyValForDeviceSecCustCmdWaitForSignal = 333, |
|
67 //create and execute security custom command with execution behaviour DeferredWaitForSignal |
|
68 ERPropertyValForDeviceSecCustCmdDeferrdWaitForSignal = 444, |
|
69 //create and execute security custom command with execution behaviour fireandforget |
|
70 ERPropertyValForDeviceSecCustCmdFireAndForget = 555, |
|
71 // stop simulating key in of security pin check when execution is waitforsignal |
|
72 ERPropertyValForStopSchedulerCmdWaitForSignal = 66, |
|
73 // stop simulating key in of security pin check when execution is fireandforget and DeferredWaitForSignal |
|
74 ERPropertyValForStopSchedulerCmdDeferredWaitForSignal = 77, |
|
75 // stop simulating key in of security pin check when execution is fireandforget and FireAndForget |
|
76 ERPropertyValForStopSchedulerCmdFireAndForget = 88, |
|
77 // to issue a cancel request for security pin check custom command |
|
78 ERPropertyValForSecCustCmdCancelRequest = 99 |
|
79 }; |
|
80 |
|
81 _LIT(KTestSwpPolicyCustomCmd, "ssm.swp.policy.test.customcmd.dll"); |
|
82 |
|
83 #endif // __TCUSTCMD_CONST_H__ |