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