mmsharing/livecommsui/lcui/tsrc/ut_lcui/inc/ut_lcview.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     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_LCVIEW_H
       
    20 #define UT_LCVIEW_H
       
    21 
       
    22 #include <QObject>
       
    23 
       
    24 class LcView;
       
    25 class LcUiEngine;
       
    26 class HbLabel;
       
    27 class LcUiComponentRepository;
       
    28 class HbAction;
       
    29 class HbPushButton;
       
    30 class HbMainWindow;
       
    31 
       
    32 class UT_LcView : public QObject
       
    33 {
       
    34     Q_OBJECT
       
    35      
       
    36 private slots:
       
    37 
       
    38 /*
       
    39  * In addition, there are four private slots that are not treated as testfunctions. 
       
    40  * They will be executed by the testing framework and can be used to initialize and clean up 
       
    41  * either the entire test or the current test function.
       
    42  * 
       
    43  * initTestCase() will be called before the first testfunction is executed.
       
    44  * cleanupTestCase() will be called after the last testfunction was executed.
       
    45  * init() will be called before each testfunction is executed.
       
    46  * cleanup() will be called after every testfunction.
       
    47 */
       
    48     void initTestCase();
       
    49     void cleanupTestCase();
       
    50     void init();
       
    51     void cleanup();
       
    52 
       
    53 
       
    54 private slots: //test methods
       
    55      
       
    56     void testConstructor();
       
    57     void testActivated();
       
    58     void testInit();
       
    59     void testDeactivated();
       
    60     void testEndVideoSession();
       
    61     void testMute();
       
    62     void testChangeCamera();    
       
    63     void testSwitchToVoiceCall();
       
    64     void testDisableCameraWhenOnFullScreenMode();
       
    65     void testDisableCameraWhenNotOnFullScreenMode();
       
    66     void testSpeaker();
       
    67     void testSwap();
       
    68     void testNotSupported();
       
    69     void testSetCameraActionToMain();
       
    70     void testSetCameraActionToSecondary();
       
    71     void testSetMuteActionToUnmute();
       
    72     void testSetMuteActionToMute();
       
    73     void testSetSpeakerActionToHandset();
       
    74     void testSetSpeakerActionToSpeaker();
       
    75     void testSetCameraActionToEnable();
       
    76     void testSetCameraActionToDisable();
       
    77     void testDisableControls();
       
    78     void testEnableControls();
       
    79     void testUpdateVideoRects();
       
    80     void testCurrentLayout();    
       
    81     void testGestureEvent();
       
    82     void testContextMenu();
       
    83     void testGestureLongPress();
       
    84     void testGestureShortPress();    
       
    85     void testShareImage();    
       
    86     void testUpdateSwapLayout();
       
    87     void testMenuAboutToShow();    
       
    88     void testTranslateRectForOrientation();
       
    89     void testTranslatePointForOrientation();    
       
    90     void testOpenDialpad();
       
    91     void testDialpadOpened();
       
    92     void testDialpadClosed();
       
    93     void testDialpadEditorTextChanged();
       
    94     void testBack();
       
    95     void testAddOptionsMenuActions();
       
    96     void testToFullScreen();
       
    97     void testWatchInactivity();
       
    98     void testTimerEvent();
       
    99     void testIsVideoPositionedCorrectly();
       
   100     void testIsPositioned();
       
   101 
       
   102 private:
       
   103  
       
   104     HbMainWindow* mMainWindow;   
       
   105     LcView* mView;
       
   106     LcUiEngine* mEngine;
       
   107     HbLabel* mRecipient;
       
   108     LcUiComponentRepository* mRepository;    
       
   109     HbPushButton* mEndCallButton;
       
   110 };
       
   111 
       
   112 
       
   113 #endif //UT_LCVIEW_H