homescreensrv_plat/hs_settings_api/tsrc/inc/mt_plugininfo.h
branchRCL_3
changeset 28 053c6c7c14f3
equal deleted inserted replaced
27:2c7f27287390 28:053c6c7c14f3
       
     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: EUnit test for homescreen settings API, object map tests
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MT_PLUGININFO_H__
       
    19 #define __MT_PLUGININFO_H__
       
    20 
       
    21 //  External includes
       
    22 #include <digia/eunit/ceunittestsuiteclass.h>
       
    23 #include <e32def.h>
       
    24 
       
    25 //  Internal includes
       
    26 
       
    27 //  Forward declarations
       
    28 namespace HSPluginSettingsIf
       
    29     {
       
    30     class CPluginInfo;
       
    31     }
       
    32 
       
    33 #ifndef NONSHARABLE_CLASS
       
    34     #define NONSHARABLE_CLASS(x) class x
       
    35 #endif
       
    36 
       
    37 //  Class definition
       
    38 /**
       
    39  *
       
    40  * Homescreen settings API test class for object map tests. 
       
    41  *
       
    42  */
       
    43 NONSHARABLE_CLASS( MT_PluginInfo ) : public CEUnitTestSuiteClass
       
    44     {
       
    45 public:
       
    46     // Constructors and destructors
       
    47 
       
    48     /**
       
    49      * Two phase construction
       
    50      */
       
    51     static MT_PluginInfo* NewL();
       
    52 
       
    53     /**
       
    54      * Two phase construction
       
    55      */
       
    56     static MT_PluginInfo* NewLC();
       
    57     
       
    58     /**
       
    59      * Destructor
       
    60      */
       
    61     ~MT_PluginInfo();
       
    62 
       
    63 private:
       
    64 
       
    65     /**
       
    66      * Private constructor
       
    67      */
       
    68     MT_PluginInfo();
       
    69 
       
    70     /**
       
    71      * Leaving constructor
       
    72      */
       
    73     void ConstructL();
       
    74 
       
    75 public:
       
    76 
       
    77 private:
       
    78 
       
    79     /**
       
    80      * Setup the test  
       
    81      */
       
    82     void SetupL();
       
    83 
       
    84     /**
       
    85      * Clean after the test
       
    86      */
       
    87     void Teardown();
       
    88     
       
    89     /**
       
    90      * Test set and get ConfigurationState
       
    91      */
       
    92     void TestConfigurationStateL();
       
    93 
       
    94     /**
       
    95      * Test set and get Name
       
    96      */
       
    97     void TestNameL();
       
    98 
       
    99     /**
       
   100      * Test set and get Interface
       
   101      */
       
   102     void TestInterfaceL();
       
   103 
       
   104     /**
       
   105      * Test set and get Type
       
   106      */
       
   107     void TestTypeL();
       
   108 
       
   109     /**
       
   110      * Test set and get Uid
       
   111      */
       
   112     void TestUidL();
       
   113   
       
   114 private:
       
   115     /** Test set  */
       
   116     EUNIT_DECLARE_TEST_TABLE;
       
   117 
       
   118     HSPluginSettingsIf::CPluginInfo* iPluginInfo;
       
   119     };
       
   120 
       
   121 #endif      //  __MT_PLUGININFO_H__