|
1 /* |
|
2 * Copyright (c) 2009-2010 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: Class for dealing with Emergency Call |
|
15 * Interface : Private, CVmbxEmergencyCall |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef C_VMBXEMERGENCYCALL_H |
|
21 #define C_VMBXEMERGENCYCALL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <phclttypes.h> // from PhoneClient |
|
26 #include <mphcltemergencycallobserver.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * CVmbxEmergencyCall declaration |
|
32 * |
|
33 * @lib vmbxengine.lib |
|
34 */ |
|
35 NONSHARABLE_CLASS( CVmbxEmergencyCall ) : public CBase, |
|
36 public MPhCltEmergencyCallObserver |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Two-phased constructor |
|
42 */ |
|
43 static CVmbxEmergencyCall* NewL(); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CVmbxEmergencyCall(); |
|
49 |
|
50 /** |
|
51 * Verifies that the given number is not an emergency number. |
|
52 * |
|
53 * @param aNumber Mailbox number |
|
54 * @return ETrue if emergency number |
|
55 */ |
|
56 TBool IsEmergencyNumber( const TDesC& aNumber ); |
|
57 |
|
58 private: // New Functions |
|
59 |
|
60 /** |
|
61 * C++ default constructor. |
|
62 * |
|
63 */ |
|
64 CVmbxEmergencyCall(); |
|
65 |
|
66 /** |
|
67 * C++ Two-phased constructor. |
|
68 */ |
|
69 void ConstructL(); |
|
70 |
|
71 private: // Functions from base classes |
|
72 |
|
73 /** |
|
74 * Handle dial request completion. |
|
75 * |
|
76 * @see MPhCltExtPhoneObserver::HandleDialL(). |
|
77 * |
|
78 * @param aEntry Reference to store handler |
|
79 */ |
|
80 void HandleDialL( const TInt aStatus ); |
|
81 |
|
82 /** |
|
83 * Handling of emergency dial result. |
|
84 * |
|
85 * @param aEntry Reference to store handler |
|
86 */ |
|
87 void HandleEmergencyDialL( const TInt aStatus ); |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // C_VMBXEMERGENCYCALL_H |