|
1 /* |
|
2 * Copyright (c) 2005-2006 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: Monitor the event of a call |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSCALLEVENTMONITOR_H |
|
21 #define MUSCALLEVENTMONITOR_H |
|
22 |
|
23 #include "musunittesting.h" |
|
24 #include "muscallmonitorbase.h" |
|
25 |
|
26 #include <etelmm.h> |
|
27 #include <e32base.h> |
|
28 |
|
29 /** |
|
30 * Monitors the event of call and set the state to property. |
|
31 * |
|
32 * @lib musaoplugin.dll |
|
33 */ |
|
34 class CMusCallEventMonitor : public CMusCallMonitorBase |
|
35 { |
|
36 |
|
37 public: |
|
38 /** |
|
39 * Two-phased constructor. Leaves on failure. |
|
40 * aCall is not owned. |
|
41 * @return CMusCallEventMonitor object. |
|
42 */ |
|
43 static CMusCallEventMonitor* NewL(const RMobileCall& aCall, MMusTsyPropertyObserver& aObserver ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CMusCallEventMonitor(); |
|
49 |
|
50 private: |
|
51 |
|
52 /** |
|
53 * C++ constructor. |
|
54 */ |
|
55 CMusCallEventMonitor( const RMobileCall& aCall, MMusTsyPropertyObserver& aObserver ); |
|
56 |
|
57 /** |
|
58 * Symbian 2nd-phase constructor. |
|
59 */ |
|
60 void ConstructL(); |
|
61 |
|
62 private: |
|
63 |
|
64 /** |
|
65 * Handles an active object's request completion event. |
|
66 */ |
|
67 void RunL(); |
|
68 |
|
69 /** |
|
70 * cancels of an outstanding request. |
|
71 */ |
|
72 void DoCancel(); |
|
73 |
|
74 |
|
75 private: |
|
76 /** |
|
77 * Mobile Call Events. |
|
78 */ |
|
79 RMobileCall::TMobileCallEvent iCallEvent; |
|
80 |
|
81 MUS_UNITTEST( UT_CMusCallEventMonitor ) |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // MUSCALLMONITOR_H |