homescreenapp/hsapplication/tsrc/t_hsapplication/t_hsapplicationexe/inc/t_hsapplication.h
changeset 96 458d8c8d9580
equal deleted inserted replaced
92:6727c5d0afc7 96:458d8c8d9580
       
     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:  Test class for homescreen::core
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <QtTest/QtTest>
       
    20 
       
    21 class HbMainWindow;
       
    22 
       
    23 /**
       
    24 * @test Test class for homescreen::hsapplication modules.
       
    25 */
       
    26 class t_hsapplication : public QObject
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 private slots:
       
    31 
       
    32     /**
       
    33      * initialize
       
    34      */
       
    35     void initTestCase();
       
    36     void cleanupTestCase();
       
    37 
       
    38 #ifdef Q_OS_SYMBIAN
       
    39     /**
       
    40      * hsrecoverymanager.cpp
       
    41      */
       
    42     void testHsRecoveryManagerConstruction();
       
    43     void testHsRecoveryManagerCrashCount();
       
    44     void testHsRecoveryManagerRestoreRomDatabase();
       
    45     void testHsRecoveryManagerExecute();
       
    46 #endif
       
    47 
       
    48     /**
       
    49      * hshomescreen.cpp
       
    50      */
       
    51     void testCreateHomescreen();
       
    52     void testHomescreenStart();
       
    53     void testHomescreenStop();
       
    54     void testOnRuntimeStarted();
       
    55     void testOnRuntimeStopped();
       
    56     void testEventFilter();
       
    57     
       
    58     /**
       
    59      * hshomescreenclientserviceprovider.cpp
       
    60      */    
       
    61 #ifdef Q_OS_SYMBIAN     
       
    62     void testCreateClientServiceProvider();
       
    63     void testAddWidget();
       
    64     void testSetWallpaper();
       
    65     void testWidgetComponentDescriptor();
       
    66     void testWidgetUninstalled();
       
    67 #endif    
       
    68 
       
    69   /**
       
    70 	 * HsStateMachine
       
    71 	 */
       
    72    void testConstruction();
       
    73 	 void testStartStop();
       
    74 	 void testOnIdleStateEntered();
       
    75 	 void testOnIdleStateExited();
       
    76 	 void testRuntimeEventFilter();
       
    77    void testActivityRequested();
       
    78 
       
    79 private:
       
    80     HbMainWindow *mWindow;
       
    81 };