controlpanel/tsrc/unit/ut_cpplugin/src/ut_cpplugin.h
branchRCL_3
changeset 54 7e0eff37aedb
parent 53 8ee96d21d9bf
child 57 e78c61e77b1a
equal deleted inserted replaced
53:8ee96d21d9bf 54:7e0eff37aedb
     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_CPPLUGIN_H
       
    18 #define	UT_CPPLUGIN_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <QVector>
       
    22 #include <QStringList>
       
    23 
       
    24 class CpPluginPlatInterface;
       
    25 class CpPluginLoader;
       
    26 class HbMainWindow;
       
    27 
       
    28 class TestCpPlugin : public QObject
       
    29 {
       
    30 	Q_OBJECT
       
    31 private slots:
       
    32     void initTestCase();                // initialize test data
       
    33     //void test_loadPluginsID();          //loading plugins
       
    34     //void test_loadPluginsID_N();	//loading plugins(with wrong input)
       
    35     void test_loadPluginsName();        //loading plugins(by dll name)
       
    36     void test_loadPluginsName_N();      //loading plugins(by dll name)(with wrong input)
       
    37     //void test_uid();                    //
       
    38     void test_createSettingFormItemData();
       
    39     //void test_launcher_by_ID();     //testing launcher by id
       
    40     //void test_launcher_by_ID_N();   //testing launcher by id (with wrong input)
       
    41     void test_launcher_by_Name();   //testing launcher by name
       
    42     void test_launcher_by_Name_N(); //testing launcher by name (with wrong input)
       
    43     void cleanupTestCase();	//Finalize test data
       
    44 private:
       
    45     QVector<CpPluginPlatInterface *> plist;	//
       
    46     CpPluginLoader* pLoader;						//
       
    47     QStringList  pluginDlls;
       
    48     HbMainWindow* mainWindow;
       
    49 };
       
    50 
       
    51 
       
    52 #endif	//UT_CPPLUGIN_H