homescreensrv_plat/hs_settings_api/tsrc/inc/chomescreensettingsobserver.h
branchRCL_3
changeset 28 053c6c7c14f3
equal deleted inserted replaced
27:2c7f27287390 28: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 __CHomescreenSettingsObserver_H__
       
    19 #define __CHomescreenSettingsObserver_H__
       
    20 
       
    21 //  External includes
       
    22 #include <e32def.h>
       
    23 
       
    24 //  Internal includes
       
    25 #include <MHomescreenSettingsObserver.h>
       
    26 
       
    27 //  Forward declarations
       
    28 
       
    29 #ifndef NONSHARABLE_CLASS
       
    30     #define NONSHARABLE_CLASS(x) class x
       
    31 #endif
       
    32 
       
    33 //  Class definition
       
    34 /**
       
    35  *
       
    36  * Homescreen settings API test class. 
       
    37  *
       
    38  */
       
    39 NONSHARABLE_CLASS( CHomescreenSettingsObserver )
       
    40     : public HSPluginSettingsIf::MHomeScreenSettingsObserver
       
    41     {
       
    42 public:     
       
    43     // Constructors and destructors
       
    44 
       
    45     /**
       
    46      * Two phase construction
       
    47      */
       
    48     static CHomescreenSettingsObserver* NewL();
       
    49 
       
    50     /**
       
    51      * Two phase construction
       
    52      */
       
    53     static CHomescreenSettingsObserver* NewLC();
       
    54 
       
    55     /**
       
    56      * Destructor
       
    57      */
       
    58     ~CHomescreenSettingsObserver();
       
    59 
       
    60 private:
       
    61 
       
    62     /**
       
    63      * Private constructor
       
    64      */
       
    65     CHomescreenSettingsObserver();
       
    66 
       
    67     /**
       
    68      * Leaving constructor
       
    69      */
       
    70     void ConstructL();
       
    71 
       
    72 public:
       
    73 
       
    74 private:
       
    75 
       
    76     /**
       
    77      * Interface method SettingsChangedL
       
    78      */
       
    79     void SettingsChangedL( const TDesC8& aEvent, const TDesC8& aPluginName,
       
    80         const TDesC8& aPluginUid, const TDesC8& aPluginId );                                  
       
    81 
       
    82 private:
       
    83 
       
    84     };
       
    85 
       
    86 #endif      //  __CHomescreenSettingsObserver_H__