|
1 /* |
|
2 * Copyright (c) 2002-2009 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: Emergency call request manager. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPHSRVEMERGENCYREQUESTMANAGER_H |
|
20 #define CPHSRVEMERGENCYREQUESTMANAGER_H |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "MPhSrvEmergencyNegotiators.h" |
|
26 #include "MPhSrvEmergencyInitiators.h" |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CPhSrvCallRequest; |
|
31 |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Call request manager. |
|
37 * |
|
38 * @since 1.0 |
|
39 */ |
|
40 class CPhSrvEmergencyRequestManager : |
|
41 public CBase, |
|
42 public MPhSrvEmergencyNegotiatorCall |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Constructor. |
|
48 */ |
|
49 CPhSrvEmergencyRequestManager(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CPhSrvEmergencyRequestManager(); |
|
55 |
|
56 /** |
|
57 * Symbian 2nd phase constructor. |
|
58 */ |
|
59 void ConstructL(); |
|
60 |
|
61 |
|
62 public: // Functions from base classes |
|
63 |
|
64 /** |
|
65 * @see MPhSrvEmergencyCallBase |
|
66 */ |
|
67 void EmergencyDialL( const RMessage2& aMessage ); |
|
68 |
|
69 /** |
|
70 * @see MPhSrvEmergencyCallBase |
|
71 */ |
|
72 void EmergencyDialCancel(); |
|
73 |
|
74 /** |
|
75 * @see MPhSrvNegotiatorCall |
|
76 */ |
|
77 void SetNegotiatorReadyCall( MPhSrvEmergencyCall& aInitiator ); |
|
78 |
|
79 /** |
|
80 * @see MPhSrvNegotiatorCall |
|
81 */ |
|
82 void SetNegotiatorReadyCallCancel( MPhSrvEmergencyCall& aInitiator ); |
|
83 |
|
84 /** |
|
85 * @see MPhSrvNegotiatorCall |
|
86 */ |
|
87 void SetNegotiatorAttemptedCallResponseValue( |
|
88 TPhCltPhoneResults aResult ); |
|
89 |
|
90 private: |
|
91 |
|
92 /** |
|
93 * Does emergency call request |
|
94 */ |
|
95 void DoMakeEmergencyDial( const RMessage2& aMessage ); |
|
96 |
|
97 private: // Data |
|
98 |
|
99 // The object responsible for processing external client call requests. |
|
100 // This is essentially an interface to the phone app engine. |
|
101 MPhSrvEmergencyCall* iEmergencyInitiator; |
|
102 |
|
103 // Pending request message pointer |
|
104 RMessagePtr2 iPendingRequestPointer; |
|
105 |
|
106 // Pending request message |
|
107 RMessage2 iPendingRequest; |
|
108 |
|
109 // Pending request flag |
|
110 TBool iIsRequestPending; |
|
111 |
|
112 }; |
|
113 |
|
114 |
|
115 #endif // CPHSRVEMERGENCYREQUESTMANAGER_H |
|
116 |
|
117 |
|
118 // End of File |