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 CSPEtelIncomingCallMonitor |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSPETELINCOMINGCALLMONITOR_H |
|
20 #define CSPETELINCOMINGCALLMONITOR_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <etelmm.h> |
|
24 |
|
25 #include "mcspincomingcallobserver.h" |
|
26 #include "rcsplinecontainer.h" |
|
27 |
|
28 class CSPCall; |
|
29 class MCCPCallObserver; |
|
30 |
|
31 |
|
32 |
|
33 /** |
|
34 * Monitors single ETel RMobileLine for incoming calls. |
|
35 * |
|
36 * This monitor is applied only for listening incoming calls, i.e. |
|
37 * line capabilites are not monitored. |
|
38 * |
|
39 * @lib csplugin.dll |
|
40 * @since S60 v3.2 |
|
41 */ |
|
42 class CSPEtelIncomingCallMonitor: public CActive |
|
43 { |
|
44 |
|
45 public: //Constructors and descructor |
|
46 |
|
47 /** |
|
48 * Two-phased constructing for the monitor. |
|
49 * |
|
50 * @param aObserver the observer for getting notification |
|
51 * @param aLine the line to monitor |
|
52 * @param aLineId line identifier |
|
53 */ |
|
54 static CSPEtelIncomingCallMonitor* NewL( |
|
55 MCSPIncomingCallObserver& aObserver, |
|
56 RMobileLine& aLine, |
|
57 RCSPLineContainer::TCSPLineId aLineId ); |
|
58 |
|
59 /** |
|
60 * C++ default destructor |
|
61 */ |
|
62 virtual ~CSPEtelIncomingCallMonitor( ); |
|
63 |
|
64 /** |
|
65 * Start monitoring call events |
|
66 * @since S60 3.2 |
|
67 */ |
|
68 void StartMonitoring(); |
|
69 |
|
70 protected: // From CActive |
|
71 /** |
|
72 * From CActive |
|
73 * RunL |
|
74 * @since S60 3.2 |
|
75 */ |
|
76 void RunL(); |
|
77 |
|
78 /** |
|
79 * From CActive |
|
80 * Cancels the monitor |
|
81 * @since S60 3.2 |
|
82 */ |
|
83 void DoCancel(); |
|
84 |
|
85 private: |
|
86 /** |
|
87 * C++ default constructor |
|
88 * @param aObserver the observer for status change (incoming call) |
|
89 * @param aLine the line associated with the call |
|
90 * @param aLineId line identifier |
|
91 */ |
|
92 CSPEtelIncomingCallMonitor( MCSPIncomingCallObserver& aObserver, |
|
93 RMobileLine& aLine, |
|
94 RCSPLineContainer::TCSPLineId aLineId ); |
|
95 |
|
96 private: // data |
|
97 /** |
|
98 * Forwards the incoming call information. |
|
99 */ |
|
100 MCSPIncomingCallObserver& iIncomingCallObserver; |
|
101 |
|
102 /** |
|
103 * Incoming call name received from ETel. |
|
104 */ |
|
105 TName iCallName; |
|
106 |
|
107 /** |
|
108 * Line that is being observed for incoming call. |
|
109 */ |
|
110 RMobileLine& iLine; |
|
111 |
|
112 /** |
|
113 * Line identifier / type. |
|
114 */ |
|
115 RCSPLineContainer::TCSPLineId iLineId; |
|
116 }; |
|
117 |
|
118 #endif // CSPETELINCOMINGCALLMONITOR_H |
|