|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Provides emergency number policy API to verify an emergency |
|
15 * number. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CEMERGENCYNUMBERPOLICY_H |
|
22 #define CEMERGENCYNUMBERPOLICY_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <RPhCltServer.h> |
|
27 #include <rphcltemergencycall.h> |
|
28 |
|
29 // CONSTANTS |
|
30 const TUid KEnPolicyUid={ 0x101F86D1 }; |
|
31 // length of list in shared data. |
|
32 const TInt KEnPolicySDEmergencyNumberListLength( 100 ); |
|
33 // separator between emergency numbers. |
|
34 const TText KEnPolicySDNumberSeparator = ' '; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * CEmergencyNumberPolicy |
|
40 * Description: Defines emergency number policy. |
|
41 * |
|
42 * @since Series60_2.6 |
|
43 */ |
|
44 |
|
45 class CEmergencyNumberPolicy : public CBase |
|
46 |
|
47 { |
|
48 public: // Abstract |
|
49 /** |
|
50 * Constructor. |
|
51 * @since Series60_2.6 |
|
52 * @param aETelServer a reference of RTelServer. |
|
53 */ |
|
54 virtual void ConstructL( RTelServer& aETelServer ) = 0; |
|
55 |
|
56 /** |
|
57 * Emergency number check. |
|
58 * @since Series60_2.6 |
|
59 * @param aTelNumber a telephone number to be checked. |
|
60 * @param aMode a check mode, Normal/Advanced. |
|
61 * @param aIsEmergencyNumber return True if the number is emergency. |
|
62 * @return error code. |
|
63 */ |
|
64 virtual TInt IsEmergencyNumber( |
|
65 TPhCltTelephoneNumber& aTelNumber, |
|
66 TPhCltEmergencyNumberQueryMode aMode, |
|
67 TBool& aIsEmergencyNumber ) = 0; |
|
68 |
|
69 }; |
|
70 |
|
71 #endif // CEMERGENCYNUMBERPOLICY_H |
|
72 |
|
73 // End of File |