camerauis/cameraxui/cxui/tsrc/cxuitestbat.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     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 CXUITEST_H
       
    18 #define CXUITEST_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <hbview.h>
       
    22 #include "cxeengine.h"
       
    23 #include "cxuifakeengine.h"
       
    24 #include "cxuiviewmanager.h"
       
    25 
       
    26 class CxeEngine;
       
    27 class QGraphicsWidget;
       
    28 class HbMainWindow;
       
    29 class CxuiViewManager;
       
    30 class CxuiFakeEngine;
       
    31 
       
    32 class TestCxUiBat : public QObject
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36 private slots:
       
    37     // Called before each test case
       
    38     //void init();
       
    39     // Called first before first test case
       
    40     void initTestCase();
       
    41     // Called after every testfunction
       
    42     void cleanup();
       
    43     // Called after the last testfunction was executed.
       
    44     void cleanupTestCase();
       
    45 
       
    46     // Inits still image mode
       
    47     void initStillImageMode();
       
    48 
       
    49     void testCaptureKeyInImageMode();
       
    50     // This is implemented in cxuitest.cpp
       
    51     void initVideoMode();
       
    52     void testCaptureKeyInVideoMode();
       
    53 
       
    54 
       
    55     // Tests for CxuiPrecaptureView class
       
    56     void testItemVisibilityInPrecaptureview();
       
    57 
       
    58 
       
    59 signals:
       
    60     void toPostcaptureView();
       
    61     void toPrecaptureView();
       
    62 
       
    63 private:
       
    64     void sendCameraKeyEvent(QEvent::Type event = QEvent::None);
       
    65     void sendAutofocusKeyEvent(QEvent::Type event);
       
    66 
       
    67 
       
    68 private:
       
    69     HbMainWindow *mMainWindow;
       
    70     CxeEngine *mEngine;
       
    71     CxuiViewManager *mViewManager;
       
    72     CxuiCaptureKeyHandler *mKeyHandler;
       
    73 };
       
    74 
       
    75 #endif // CXEENGINETEST_H