1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 #ifndef UT_LCUIENGINE_H |
|
18 #define UT_LCUIENGINE_H |
|
19 |
|
20 #include <QObject> |
|
21 class LcUiEngine; |
|
22 class HbProgressDialog; |
|
23 class HbDialog; |
|
24 class HbMainWindow; |
|
25 class LcSignalSink; |
|
26 |
|
27 |
|
28 class UT_LcUiEngine : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 private slots: |
|
33 |
|
34 /* |
|
35 * In addition, there are four private slots that are not treated as testfunctions. |
|
36 * They will be executed by the testing framework and can be used to initialize and clean up |
|
37 * either the entire test or the current test function. |
|
38 * |
|
39 * initTestCase() will be called before the first testfunction is executed. |
|
40 * cleanupTestCase() will be called after the last testfunction was executed. |
|
41 * init() will be called before each testfunction is executed. |
|
42 * cleanup() will be called after every testfunction. |
|
43 */ |
|
44 void initTestCase(); |
|
45 void cleanupTestCase(); |
|
46 void init(); |
|
47 void cleanup(); |
|
48 |
|
49 private slots: //test methods |
|
50 |
|
51 void testConstructor(); |
|
52 void testFeatureSupported(); |
|
53 void testEstablishSession(); |
|
54 void testTerminateSession(); |
|
55 void testSetWindowRect(); |
|
56 void testEnableWindow(); |
|
57 void testPlay(); |
|
58 void testPause(); |
|
59 void testEnableSpeaker(); |
|
60 void testMuteMic(); |
|
61 void testStartLiveContent(); |
|
62 void testStart(); |
|
63 void testSetContentAreas(); |
|
64 void testSetOrientation(); |
|
65 void testToggleMute(); |
|
66 void testToggleSpeaker(); |
|
67 void testToggleDisableCamera(); |
|
68 void testToggleCamera(); |
|
69 void testSessionStateChanged(); |
|
70 void testPlayerStateChanged(); |
|
71 void testStartReceiving(); |
|
72 void testStartPlayback(); |
|
73 void testStop(); |
|
74 void testSetViewLayout(); |
|
75 void testHideNotes(); |
|
76 void testSetUiComponents(); |
|
77 void testZoom(); |
|
78 void testBlockUi(); |
|
79 void testCloseTimer(); |
|
80 void testfullScreenMode(); |
|
81 void testsetFullScreenMode(); |
|
82 void testTimerEvent(); |
|
83 void testFillRemoteInfo(); |
|
84 void testUpdateSession(); |
|
85 void testIsLocalPlayerPlaying(); |
|
86 void testIsRemotePlayerPlaying(); |
|
87 void testMinimized(); |
|
88 void testMaximized(); |
|
89 void testIsMinimized(); |
|
90 void testHandleForegroundStatus(); |
|
91 void testSendDialTone(); |
|
92 void testShareVideoIsAllowedShownAutomatically(); |
|
93 void testShareVideoIsNotAllowedShown(); |
|
94 void testShareVideoPermissionAskedAlways(); |
|
95 void testVolumeLevelChanged(); |
|
96 |
|
97 private: |
|
98 |
|
99 LcUiEngine* mEngine; |
|
100 HbProgressDialog* mInvitingNote; |
|
101 HbProgressDialog* mWaitingNote; |
|
102 HbDialog* mAcceptQuery; |
|
103 HbDialog* mRecipientQuery; |
|
104 HbDialog* mShareOwnVideoQuery; |
|
105 }; |
|
106 |
|
107 |
|
108 |
|
109 |
|
110 #endif //UT_LCUIENGINE_H |
|