|
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 |
|
18 |
|
19 #ifndef UT_LCEFFECTHANDLER_H |
|
20 #define UT_LCEFFECTHANDLER_H |
|
21 |
|
22 #include <QObject> |
|
23 |
|
24 class LcEffectHandler; |
|
25 class LcUiEngine; |
|
26 class LcVideoWidget; |
|
27 class HbMainWindow; |
|
28 |
|
29 class UT_LcEffectHandler : public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 private slots: |
|
34 |
|
35 /* |
|
36 * In addition, there are four private slots that are not treated as testfunctions. |
|
37 * They will be executed by the testing framework and can be used to initialize and clean up |
|
38 * either the entire test or the current test function. |
|
39 * |
|
40 * initTestCase() will be called before the first testfunction is executed. |
|
41 * cleanupTestCase() will be called after the last testfunction was executed. |
|
42 * init() will be called before each testfunction is executed. |
|
43 * cleanup() will be called after every testfunction. |
|
44 */ |
|
45 void initTestCase(); |
|
46 void cleanupTestCase(); |
|
47 void init(); |
|
48 void cleanup(); |
|
49 |
|
50 |
|
51 private slots: //test methods |
|
52 |
|
53 void testConstructor(); |
|
54 void testSwap(); |
|
55 void testShowSendWindow(); |
|
56 void testHideSendWindow(); |
|
57 void testShowReceiveWindow(); |
|
58 void testHideReceiveWindow(); |
|
59 void testEffectComplete(); |
|
60 void testStartEffect(); |
|
61 |
|
62 void testSetVisibility(); |
|
63 void testSetDissappearEffect(); |
|
64 void testIsSharedVideoAtTop(); |
|
65 void testVideosSideBySide(); |
|
66 void testHandleSwapCompletion(); |
|
67 void testIsSwapInProgress(); |
|
68 |
|
69 private: // Helpers |
|
70 void clearWidgets(); |
|
71 void setWidgets(); |
|
72 private: |
|
73 |
|
74 HbMainWindow* mMainWindow; |
|
75 LcUiEngine* mEngine; |
|
76 LcEffectHandler* mEffectHandler; |
|
77 LcVideoWidget* mSharedVideo; |
|
78 LcVideoWidget* mSharedVideoOverlay; |
|
79 LcVideoWidget* mReceivedVideo; |
|
80 LcVideoWidget* mReceivedVideoOverlay; |
|
81 }; |
|
82 |
|
83 |
|
84 #endif //UT_LCEFFECTHANDLER_H |