mmsharing/mmshapp/tsrc/ut_mmshapp/inc/ut_lcapplication.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 #ifndef UT_LCAPPLICATION_H
       
    18 #define UT_LCAPPLICATION_H
       
    19 
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 class LcHbApplication;
       
    24 
       
    25 class UT_LcApplication : public QObject
       
    26 {
       
    27     Q_OBJECT
       
    28      
       
    29 private slots:
       
    30 
       
    31 /*
       
    32  * In addition, there are four private slots that are not treated as testfunctions. 
       
    33  * They will be executed by the testing framework and can be used to initialize and clean up 
       
    34  * either the entire test or the current test function.
       
    35  * 
       
    36  * initTestCase() will be called before the first testfunction is executed.
       
    37  * cleanupTestCase() will be called after the last testfunction was executed.
       
    38  * init() will be called before each testfunction is executed.
       
    39  * cleanup() will be called after every testfunction.
       
    40 */
       
    41     void initTestCase();
       
    42     void cleanupTestCase();
       
    43     void init();
       
    44     void cleanup();
       
    45 
       
    46 
       
    47 private slots: //test methods
       
    48      
       
    49     void testConstructorDestructor();
       
    50     void testQuit();
       
    51     
       
    52 private:
       
    53  
       
    54     LcHbApplication* mLcApplication;
       
    55     int mArgc;
       
    56 };
       
    57 
       
    58 #endif //UT_LCAPPLICATION_H