gssettingsuis/Gs/GSDisplayPlugin/Inc/PSMDisplayPlugin.h
changeset 0 8c5d936e5675
equal deleted inserted replaced
-1:000000000000 0:8c5d936e5675
       
     1 /*
       
     2 * Copyright (c) 2007 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 
       
    18 
       
    19 #ifndef PSMDISPLAYPLUGIN_H
       
    20 #define PSMDISPLAYPLUGIN_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 
       
    26 #include <psmpluginbase.h>
       
    27 #include <centralrepository.h>
       
    28 
       
    29 class MPsmSettingsProvider;
       
    30 class MPsmPluginCallback;
       
    31 class CGSDisplayPluginModel;
       
    32 class CPowerSaveDisplayMode;
       
    33 
       
    34 /**
       
    35 *  PSMDisplay plugin stub
       
    36 *
       
    37 *  @lib ?library
       
    38 *  @since Series ?XX ?SeriesXX_version
       
    39 */
       
    40 class CPSMDisplayPlugin : public CPsmPluginBase
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43 
       
    44         /**
       
    45         * Two-phased constructor.
       
    46 		* @return The created object.
       
    47         */
       
    48         static CPSMDisplayPlugin* NewL( TPsmPluginCTorParams& initParams );
       
    49 
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CPSMDisplayPlugin();
       
    54 
       
    55     public:
       
    56 
       
    57         // From CPsmPluginBase
       
    58         void NotifyModeChange( const TInt aMode );
       
    59 
       
    60 	private:
       
    61 
       
    62 	    CPSMDisplayPlugin( TPsmPluginCTorParams& aInitParams );
       
    63 	    void ConstructL();
       
    64 
       
    65         /**
       
    66         *  Internal leaving function calleb from non-leaving NotifyModeChange.
       
    67         */
       
    68         void DoModeChangeL( const TInt aMode );
       
    69         
       
    70     private: // data
       
    71         
       
    72         CGSDisplayPluginModel *iModel;
       
    73 
       
    74         // For automatic brigthness control
       
    75         CPowerSaveDisplayMode *iDisplayModel;
       
    76         
       
    77     };
       
    78 
       
    79 #endif // PSMDISPLAYPLUGIN_H