|
1 /* |
|
2 * Copyright (c) 2002-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: Retrieves and manages the emergency numbers from EnPolicy. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPHSRVEMERGENCYNUMBERMANAGER_H |
|
21 #define CPHSRVEMERGENCYNUMBERMANAGER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> // cbase |
|
25 #include "MPhSrvEmergencyNumberManager.h" // interface |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MPhSrvPhoneInterface; |
|
29 class CEmergencyNumberPolicy; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Retrieves and manages the emergency numbers from EnPolicy. |
|
35 * |
|
36 * @since 1.0 |
|
37 */ |
|
38 class CPhSrvEmergencyNumberManager : |
|
39 public CBase, |
|
40 public MPhSrvEmergencyNumberManager |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Constructor. |
|
46 * @param aPhone a reference of phone interface. |
|
47 */ |
|
48 CPhSrvEmergencyNumberManager( MPhSrvPhoneInterface& aPhone ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CPhSrvEmergencyNumberManager(); |
|
54 |
|
55 /** |
|
56 * Symbian 2nd phase constructor. |
|
57 * @param aIsDosEnPolicy ETrue if Dos emergency policy is enabled. |
|
58 */ |
|
59 void ConstructL( TBool aIsDosEnPolicy ); |
|
60 |
|
61 |
|
62 public: // Functions from base classes |
|
63 |
|
64 /** |
|
65 * @see MPhSrvEmergencyNumberManager |
|
66 */ |
|
67 TBool EmergencyNumberManagerIsEmergencyNumberL( |
|
68 TDes& aNumber, |
|
69 TPhCltEmergencyNumberQueryMode aMode ); |
|
70 |
|
71 private: // Data |
|
72 |
|
73 // Contains Phoneserver phone interfaces. |
|
74 MPhSrvPhoneInterface& iPhone; |
|
75 |
|
76 // Contains Emergency policy DLL interface. |
|
77 RLibrary iEnPolicyLib; |
|
78 |
|
79 // Pointer to Emergency policy interface. |
|
80 CEmergencyNumberPolicy* iEmergencyNumberPolicy; |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // CPHSRVEMERGENCYNUMBERMANAGER_H |
|
85 |
|
86 // End of File |