testfwuis/symbianunittestui/qt/widgettestrunner.h
changeset 2 453d490c84a5
equal deleted inserted replaced
1:753e33780645 2:453d490c84a5
       
     1 /*
       
     2  * Copyright (c) 2010 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: TabWidget class to select, run tests and show the result.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef WIDGETTESTRUNNER_H_
       
    19 #define WIDGETTESTRUNNER_H_
       
    20 
       
    21 #include <QWidget>
       
    22 
       
    23 class TestRunnerPrivate;
       
    24 class Settings;
       
    25 
       
    26 class WidgetTestRunner : public QWidget
       
    27     {
       
    28     Q_OBJECT
       
    29     
       
    30 public:
       
    31     WidgetTestRunner(QWidget* parent = 0);
       
    32     virtual ~WidgetTestRunner();
       
    33     
       
    34 public:
       
    35     int listTestCases(const QString&, QStringList&);
       
    36 
       
    37 signals:
       
    38     void infoMsgReceived(QString msg);
       
    39     void testFailed(QString, QString, int);
       
    40     void testPassed(int);
       
    41     void errorOccurred(int);
       
    42     void errorOccurred(const QString);
       
    43     void testExecuted(int);
       
    44     
       
    45 public slots:
       
    46     void addTestDllNames(const QStringList&);
       
    47     void addTestCaseNames(const QStringList&);
       
    48     void saveSettings(const Settings*);
       
    49     void runTests();
       
    50     
       
    51 private:
       
    52     TestRunnerPrivate* d_ptr;
       
    53     
       
    54 private:
       
    55     friend class TestRunnerPrivate;
       
    56     };
       
    57 
       
    58 #endif /* WIDGETTESTRUNNER_H_ */