|
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 that observes the status of the current CS call |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef UT_MUSCONFERENCECALLMONITOR_H |
|
21 #define UT_MUSCONFERENCECALLMONITOR_H |
|
22 |
|
23 #include "muscallstatusmonitorobserver.h" |
|
24 |
|
25 #include <etelmm.h> |
|
26 #include <digia/eunit/ceunittestsuiteclass.h> |
|
27 |
|
28 |
|
29 class CMusConferenceCallMonitor; |
|
30 |
|
31 /** |
|
32 * Monitor, which observes status of current cs call |
|
33 * Observers will be notified, when call status is idle |
|
34 * i.e. call has ended. |
|
35 * |
|
36 * @lib ut_mushaoplugin.dll |
|
37 */ |
|
38 NONSHARABLE_CLASS( UT_CMusConferenceCallMonitor ) |
|
39 : public CEUnitTestSuiteClass, public MMusCallStatusMonitorObserver |
|
40 { |
|
41 |
|
42 public: // constructors and destructor |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 ~UT_CMusConferenceCallMonitor(); |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. Leaves on failure. |
|
51 * @return The constructed CMusAoCallMonitorTest object. |
|
52 */ |
|
53 static UT_CMusConferenceCallMonitor* NewLC(); |
|
54 |
|
55 private: |
|
56 |
|
57 /** |
|
58 * C++ constructor. |
|
59 */ |
|
60 UT_CMusConferenceCallMonitor(); |
|
61 |
|
62 /** |
|
63 * Symbian 2nd-phase constructor. |
|
64 */ |
|
65 void ConstructL(); |
|
66 |
|
67 |
|
68 private: // test MMusCallStatusMonitorObserver |
|
69 |
|
70 virtual void StatusChanged(); |
|
71 |
|
72 |
|
73 public: |
|
74 |
|
75 void UT_IsEqual(); |
|
76 |
|
77 void UT_GetLastEventL(); |
|
78 |
|
79 void UT_RunL(); |
|
80 |
|
81 void UT_DoCancel(); |
|
82 |
|
83 void UT_RunError(); |
|
84 |
|
85 |
|
86 private: |
|
87 void SetupL(); |
|
88 |
|
89 void Teardown(); |
|
90 |
|
91 private: // data |
|
92 |
|
93 CMusConferenceCallMonitor* iMonitor; |
|
94 |
|
95 EUNIT_DECLARE_TEST_TABLE; |
|
96 |
|
97 TBool iStatusChanged; |
|
98 |
|
99 }; |
|
100 |
|
101 #endif // UT_MUSCONFERENCECALLMONITOR_H |