homescreensrv_plat/hs_settings_api/tsrc/inc/mt_hspluginsettings.h
branchRCL_3
changeset 111 053c6c7c14f3
equal deleted inserted replaced
110:2c7f27287390 111:053c6c7c14f3
       
     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: EUnit test for homescreen settings API, main suite
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MT_HsPluginSettings_H__
       
    19 #define __MT_HsPluginSettings_H__
       
    20 
       
    21 //  External includes
       
    22 #include <digia/eunit/ceunittestsuiteclass.h>
       
    23 #include <e32def.h>
       
    24 
       
    25 //  Internal includes
       
    26 #include "chomescreensettingsobserver.h"
       
    27 
       
    28 //  Forward declarations
       
    29 class CItemMap;
       
    30 
       
    31 #ifndef NONSHARABLE_CLASS
       
    32     #define NONSHARABLE_CLASS(x) class x
       
    33 #endif
       
    34 
       
    35 //  Class definition
       
    36 
       
    37 /**
       
    38  *
       
    39  * Homescreen settings API test class. 
       
    40  *
       
    41  */
       
    42 NONSHARABLE_CLASS( MT_HsPluginSettings ) : public CEUnitTestSuiteClass
       
    43     {
       
    44 public:
       
    45     // Constructors and destructors
       
    46 
       
    47     /**
       
    48      * Two phase construction
       
    49      */
       
    50     static MT_HsPluginSettings* NewL();
       
    51 
       
    52     /**
       
    53      * Two phase construction
       
    54      */
       
    55     static MT_HsPluginSettings* NewLC();
       
    56         
       
    57     /**
       
    58      * Destructor
       
    59      */
       
    60      ~MT_HsPluginSettings();
       
    61 
       
    62 private:    
       
    63 
       
    64     /**
       
    65      * Private constructor
       
    66      */
       
    67     MT_HsPluginSettings();
       
    68 
       
    69     /**
       
    70      * Leaving constructor
       
    71      */
       
    72     void ConstructL();
       
    73 
       
    74 public:
       
    75 
       
    76 private:
       
    77 
       
    78     /**
       
    79      * Setup the test
       
    80      */
       
    81     void SetupL();
       
    82         
       
    83     /**
       
    84      * Clean after the test  
       
    85      */
       
    86     void Teardown();
       
    87         
       
    88     /**
       
    89      * Test the get of settings  
       
    90      */
       
    91     void TestGetSettingsL();
       
    92 
       
    93     /**
       
    94      * Test the set of settings  
       
    95      */
       
    96     void TestSetSettingsL();
       
    97 
       
    98 private:
       
    99     /** Test set */
       
   100     EUNIT_DECLARE_TEST_TABLE;
       
   101 
       
   102     HSPluginSettingsIf::CHomescreenSettings* iHomescreenSettings; // Not owned.
       
   103     CHomescreenSettingsObserver* iObserver;
       
   104     };
       
   105 
       
   106 #endif      //  __MT_HsPluginSettings_H__