|
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 CSPEtelConferenceCapsMonitor |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSPETELCONFERENCECAPSMONITOR_H |
|
20 #define CSPETELCONFERENCECAPSMONITOR_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <etelmm.h> |
|
24 |
|
25 |
|
26 class CSPConferenceCall; |
|
27 |
|
28 |
|
29 /** |
|
30 * Monitors single ETel RMobileConferenceCall for conference 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 CSPEtelConferenceCapsMonitor: 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 CSPEtelConferenceCapsMonitor* NewL( |
|
51 CSPConferenceCall& aOwner, |
|
52 RMobileConferenceCall& aCall ); |
|
53 |
|
54 /** |
|
55 * C++ default destructor |
|
56 */ |
|
57 virtual ~CSPEtelConferenceCapsMonitor( ); |
|
58 |
|
59 /** |
|
60 * Start monitoring call capss |
|
61 * @since S60 3.2 |
|
62 */ |
|
63 void StartMonitoring(); |
|
64 |
|
65 protected: // From CActive |
|
66 /** |
|
67 * From CActive |
|
68 * RunL |
|
69 * @since S60 3.2 |
|
70 */ |
|
71 void RunL(); |
|
72 |
|
73 |
|
74 /** |
|
75 * From CActive |
|
76 * Cancels the monitor |
|
77 * @since S60 3.2 |
|
78 */ |
|
79 void DoCancel(); |
|
80 |
|
81 private: |
|
82 /** |
|
83 * C++ default constructor |
|
84 * @param aOwner the observer for status change (incoming call) |
|
85 * @param aCall the line associated with the call |
|
86 */ |
|
87 CSPEtelConferenceCapsMonitor( CSPConferenceCall& aOwner, |
|
88 RMobileConferenceCall& aCall ); |
|
89 |
|
90 /** |
|
91 * Constructs the monitor in the second phase. |
|
92 */ |
|
93 void ConstructL(); |
|
94 |
|
95 |
|
96 private: // data |
|
97 /** |
|
98 * Forwards capss. |
|
99 */ |
|
100 CSPConferenceCall& iOwner; |
|
101 |
|
102 /** |
|
103 * Conference call that is being observed. |
|
104 */ |
|
105 RMobileConferenceCall& iCall; |
|
106 |
|
107 /** |
|
108 * Caps received. |
|
109 */ |
|
110 TUint32 iCaps; |
|
111 |
|
112 /** |
|
113 * Pointer for recovering from a situation where CCE releases call |
|
114 * during observer-call sequence. |
|
115 */ |
|
116 TBool* iDestrPtr; |
|
117 |
|
118 |
|
119 }; |
|
120 |
|
121 #endif // CSPETELCONFERENCECAPSMONITOR_H |