|
1 /* |
|
2 * Copyright (c) 2007 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: Declarations for class CSPEtelCallCapsMonitor |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSPETELDATACALLCAPSMONITOR_H |
|
20 #define CSPETELDATACALLCAPSMONITOR_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <etelmm.h> |
|
24 |
|
25 |
|
26 class CSPVideoCall; |
|
27 |
|
28 |
|
29 /** |
|
30 * Monitors single ETel RMobileCall for call capss. |
|
31 * |
|
32 * This monitor is applied only for listening incoming calls, i.e. |
|
33 * line capabilites are not monitored. |
|
34 * |
|
35 * @lib csplugin.dll |
|
36 * @since S60 v3.2 |
|
37 */ |
|
38 class CSPEtelVideoCallCapsMonitor: public CActive |
|
39 { |
|
40 |
|
41 public: //Constructors and descructor |
|
42 |
|
43 |
|
44 /** |
|
45 * Two-phased constructing for the monitor. |
|
46 * |
|
47 * @param aOwner the observer for getting notification |
|
48 * @param aCall the line to monitor |
|
49 */ |
|
50 static CSPEtelVideoCallCapsMonitor* NewL( |
|
51 CSPVideoCall& aOwner, |
|
52 RMobileCall& aCall ); |
|
53 |
|
54 /** |
|
55 * C++ default destructor |
|
56 */ |
|
57 virtual ~CSPEtelVideoCallCapsMonitor( ); |
|
58 |
|
59 /** |
|
60 * Start monitoring call capss |
|
61 * @since S60 3.2 |
|
62 */ |
|
63 void StartMonitoring(); |
|
64 |
|
65 /** |
|
66 * Getter for fetching mobile data call caps. |
|
67 */ |
|
68 TInt GetMobileDataCallCaps( TDes8& aCaps ) const; |
|
69 |
|
70 /** |
|
71 * Gets protocol caps. |
|
72 * @return protocol caps |
|
73 */ |
|
74 TUint GetProtocolCaps(); |
|
75 |
|
76 /** |
|
77 * Updates protocol caps for call |
|
78 * @since S60 5.0 |
|
79 */ |
|
80 void UpdateProtocolCaps(); |
|
81 |
|
82 protected: // From CActive |
|
83 /** |
|
84 * From CActive |
|
85 * RunL |
|
86 * @since S60 3.2 |
|
87 */ |
|
88 void RunL(); |
|
89 |
|
90 /** |
|
91 * From CActive |
|
92 * Cancels the monitor |
|
93 * @since S60 3.2 |
|
94 */ |
|
95 void DoCancel(); |
|
96 |
|
97 private: |
|
98 /** |
|
99 * C++ default constructor |
|
100 * @param aOwner the observer for status change (incoming call) |
|
101 * @param aCall the line associated with the call |
|
102 */ |
|
103 CSPEtelVideoCallCapsMonitor( CSPVideoCall& aOwner, |
|
104 RMobileCall& aCall ); |
|
105 |
|
106 /** |
|
107 * Constructs the monitor in the second phase. |
|
108 */ |
|
109 void ConstructL(); |
|
110 |
|
111 |
|
112 private: // data |
|
113 /** |
|
114 * Forwards capss. |
|
115 */ |
|
116 CSPVideoCall& iOwner; |
|
117 |
|
118 /** |
|
119 * Call that is being observed. |
|
120 */ |
|
121 RMobileCall& iCall; |
|
122 |
|
123 /** |
|
124 * Call capabilities. |
|
125 */ |
|
126 RMobileCall::TMobileCallDataCapsV1 iDataCallCaps; |
|
127 RMobileCall::TMobileCallDataCapsV1Pckg iDataCallCapsPckg; |
|
128 |
|
129 }; |
|
130 |
|
131 #endif // CSPETELDATACALLCAPSMONITOR_H |