1 /* |
|
2 * Copyright (c) 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: Implements CSPClientVoiceCall for CS Call Plug-in |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSPCLIENTVOICECALL_H |
|
20 #define CSPCLIENTVOICECALL_H |
|
21 |
|
22 #include "cspvoicecall.h" |
|
23 |
|
24 /** |
|
25 * Client voice call class for CS Call Plug-in. |
|
26 * |
|
27 * @lib csplugin.dll |
|
28 */ |
|
29 class CSPClientVoiceCall : public CSPVoiceCall |
|
30 { |
|
31 |
|
32 public: |
|
33 |
|
34 /* |
|
35 * Creates a new CSPClientVoiceCall object. |
|
36 * @since S60 5.0 |
|
37 * @param aName dialled number (MT) or call name (MO) |
|
38 * @param aLine line for opening the call |
|
39 * @param aParams call parameters |
|
40 * @param aCommonInfo common information for call, |
|
41 * @return pointer to created call object |
|
42 */ |
|
43 static CSPClientVoiceCall* NewL( const TDesC& aName, |
|
44 RMobileLine& aLine, |
|
45 const CCCECallParameters& aParams, |
|
46 MCSPCommonInfo& aCommonInfo ); |
|
47 |
|
48 /** |
|
49 * C++ default destructor |
|
50 */ |
|
51 virtual ~CSPClientVoiceCall( ); |
|
52 |
|
53 // from base class CSPVoiceCall |
|
54 |
|
55 /** |
|
56 * From CSPVoiceCall |
|
57 * Updates the state change and forwards the state for observer. |
|
58 * @param aState new state of the call |
|
59 */ |
|
60 void NotifyCallStateChanged( MCCPCallObserver::TCCPCallState aState ); |
|
61 |
|
62 /** |
|
63 * From CSPVoiceCall |
|
64 * Updates the state change and forwards the state for observer. |
|
65 * @param aState new state of the call |
|
66 */ |
|
67 void NotifyCallStateChangedWithInband( MCCPCallObserver::TCCPCallState aState ); |
|
68 |
|
69 private: |
|
70 |
|
71 /* |
|
72 * Voice call constructor. |
|
73 * @param aLine open line ready for use |
|
74 * @param aName remote party or call name depending on direction |
|
75 * @param aCommonInfo reference to common info interface |
|
76 */ |
|
77 CSPClientVoiceCall( RMobileLine& aLine, |
|
78 const TDesC& aName, |
|
79 MCSPCommonInfo& aCommonInfo ); |
|
80 |
|
81 /* |
|
82 * Constructing 2nd phase. |
|
83 */ |
|
84 void ConstructL( const CCCECallParameters& aParams ); |
|
85 |
|
86 /* |
|
87 * Indicate client call. |
|
88 * Indication is done in Dialling state and can be done only once |
|
89 */ |
|
90 void IndicateClientCall(); |
|
91 |
|
92 /** |
|
93 * Open call handle. |
|
94 * Opens an existing handle for client call. |
|
95 */ |
|
96 void OpenCallHandleL(); |
|
97 |
|
98 /** |
|
99 * Update call info. |
|
100 */ |
|
101 void UpdateCallInfoImpl( RMobileCall::TMobileCallInfoV7 aCallInfo ); |
|
102 |
|
103 private: // Data |
|
104 |
|
105 /** |
|
106 * Defines whether client call has been already indicated for this call |
|
107 * when Dialling state is entered. |
|
108 */ |
|
109 TBool iClientCallIndicated; |
|
110 |
|
111 }; |
|
112 |
|
113 |
|
114 #endif // CSPCLIENTVOICECALL_H |
|