|
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 CSPClientVideoCall for CS Call Plug-in |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSPCLIENTVIDEOCALL_H |
|
20 #define CSPCLIENTVIDEOCALL_H |
|
21 |
|
22 #include <mccpcscall.h> |
|
23 #include <mccpcallobserver.h> |
|
24 #include <etel.h> |
|
25 #include <etelmm.h> |
|
26 #include <cccecallparameters.h> |
|
27 |
|
28 #include "cspvideocall.h" |
|
29 #include "cspconsts.h" |
|
30 #include "mcspcallobserver.h" |
|
31 #include "mcspcallerrorobserver.h" |
|
32 |
|
33 |
|
34 /** |
|
35 * Call class for CS Call Plug-in. Implements the API defined by CCP in classes |
|
36 * MCCPCall and MCCPCSCall |
|
37 * |
|
38 * @lib csplugin.dll |
|
39 * @since S60 v5.0 |
|
40 */ |
|
41 class CSPClientVideoCall : public CSPVideoCall |
|
42 { |
|
43 |
|
44 public: |
|
45 |
|
46 /* |
|
47 * Creates a new CSPClientVideoCall object. |
|
48 * @since S60 5.0 |
|
49 * @param aName dialled number (MT) or call name (MO) |
|
50 * @param aLine line for opening the call |
|
51 * @param aParams call parameters |
|
52 * @param aCommonInfo common information for call, |
|
53 * @return pointer to created call object |
|
54 */ |
|
55 static CSPClientVideoCall* NewL( const TDesC& aName, |
|
56 RMobileLine& aLine, |
|
57 const CCCECallParameters& aParams, |
|
58 MCSPCommonInfo& aCommonInfo ); |
|
59 |
|
60 /** |
|
61 * C++ default destructor |
|
62 */ |
|
63 virtual ~CSPClientVideoCall( ); |
|
64 |
|
65 // from base class CSPVideoCall |
|
66 |
|
67 /** |
|
68 * From CSPCall |
|
69 * Updates the state change and forwards the state for observer. |
|
70 * @param aState new state of the call |
|
71 */ |
|
72 void NotifyCallStateChanged( MCCPCallObserver::TCCPCallState aState ); |
|
73 |
|
74 /** |
|
75 * From CSPCall |
|
76 * Updates the state change and forwards the state for observer. |
|
77 * @param aState new state of the call |
|
78 */ |
|
79 void NotifyCallStateChangedWithInband( MCCPCallObserver::TCCPCallState aState ); |
|
80 |
|
81 private: |
|
82 |
|
83 /* |
|
84 * C++ default constructor |
|
85 * @param aLine open line ready for use |
|
86 * @param aServiceId service ID |
|
87 * @param aCallType type of call |
|
88 * @param aLineType type of line (primary/aux) |
|
89 * @param aMobileOriginated true if MO, false if MT |
|
90 * @param aName call name (MT) or recipient (MO) |
|
91 * @param aExtMoCall is externally created MO call |
|
92 */ |
|
93 CSPClientVideoCall( RMobileLine& aLine, |
|
94 const TDesC& aName, |
|
95 MCSPCommonInfo& aCommonInfo ); |
|
96 |
|
97 /* |
|
98 * Constructing 2nd phase. |
|
99 * @since S60 3.2 |
|
100 */ |
|
101 void ConstructL( const CCCECallParameters& aParams ); |
|
102 |
|
103 /* |
|
104 * Indicate client call. |
|
105 * Indication is done in Dialling state and can be done only once |
|
106 */ |
|
107 void IndicateClientCall(); |
|
108 |
|
109 /** |
|
110 * Open call handle. |
|
111 * Opens an existing handle for client call. |
|
112 */ |
|
113 void OpenCallHandleL(); |
|
114 |
|
115 /** |
|
116 * Update call info. |
|
117 */ |
|
118 void UpdateCallInfoImpl( RMobileCall::TMobileCallInfoV7 aCallInfo ); |
|
119 |
|
120 private: // Data |
|
121 |
|
122 /** |
|
123 * Defines whether client call has been already indicated for this call |
|
124 * when Dialling state is entered. |
|
125 */ |
|
126 TBool iClientCallIndicated; |
|
127 |
|
128 }; |
|
129 |
|
130 |
|
131 #endif // CSPCLIENTVIDEOCALL_H |