|
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_MUSPTTCALLMONITOR_H |
|
21 #define UT_MUSPTTCALLMONITOR_H |
|
22 |
|
23 #include <digia/eunit/ceunittestsuiteclass.h> |
|
24 #include "mmusptteventobserver.h" |
|
25 |
|
26 class CMusPttCallMonitor; |
|
27 |
|
28 /** |
|
29 * Monitor, which observes status of Kodiak PTT Call * |
|
30 * @lib ut_mushaoplugin.dll |
|
31 */ |
|
32 NONSHARABLE_CLASS( UT_CMusPTTCallMonitor ) |
|
33 : public CEUnitTestSuiteClass,MMusPttEventObserver |
|
34 { |
|
35 |
|
36 public: // constructors and destructor |
|
37 /** |
|
38 * Two-phased constructor. Leaves on failure. |
|
39 * @return The constructed CMusAoCallMonitorTest object. |
|
40 */ |
|
41 static UT_CMusPTTCallMonitor* NewLC(); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~UT_CMusPTTCallMonitor(); |
|
47 |
|
48 private: |
|
49 |
|
50 /** |
|
51 * C++ constructor. |
|
52 */ |
|
53 UT_CMusPTTCallMonitor(); |
|
54 |
|
55 /** |
|
56 * Symbian 2nd-phase constructor. |
|
57 */ |
|
58 void ConstructL(); |
|
59 |
|
60 void PttCallEventOccuredL(TPSCTsyKodiakPtt& /*aVal*/) |
|
61 { |
|
62 |
|
63 }; |
|
64 |
|
65 public: |
|
66 |
|
67 void UT_RunLL(); |
|
68 |
|
69 void UT_IsPTTCallExistL(); |
|
70 |
|
71 void UT_DoCancelL(); |
|
72 |
|
73 private: |
|
74 |
|
75 void SetupL(); |
|
76 |
|
77 void Teardown(); |
|
78 |
|
79 private: // data |
|
80 |
|
81 CMusPttCallMonitor* iMonitor; |
|
82 |
|
83 EUNIT_DECLARE_TEST_TABLE; |
|
84 }; |
|
85 |
|
86 #endif // UT_MUSPTTCALLMONITOR_H |