gssettingsuis/Gs/GSDisplayPlugin/Inc/GSDisplayPluginAO.h
changeset 68 13e71d907dc3
parent 0 8c5d936e5675
equal deleted inserted replaced
40:6465d5bb863a 68:13e71d907dc3
       
     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:  Active object for handling PSM related CenRep changes.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GSDISPLAYPLUGINAO_H
       
    20 #define GSDISPLAYPLUGINAO_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <psmtypes.h>
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 // MACROS
       
    28 
       
    29 // DATA TYPES
       
    30 
       
    31 // FUNCTION PROTOTYPES
       
    32 
       
    33 // FORWARD CLASS DECLARATION
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 *  CGSDisplayPluginAO. Acts as a CenRep observer for PSM related state 
       
    39 *  changes.
       
    40 *
       
    41 *  @lib GSDisplayPlugin.lib
       
    42 *  @since Series 60_3.2
       
    43 */
       
    44 class CGSDisplayPluginAO : public CActive
       
    45     {
       
    46     public:
       
    47     
       
    48         static CGSDisplayPluginAO* NewL();
       
    49         ~CGSDisplayPluginAO();
       
    50     
       
    51         /**
       
    52          * Set view which should be updated when PSM mode changes.
       
    53          */
       
    54         void SetView( CGSDisplayPlugin* aDisplayView );
       
    55         
       
    56         /**
       
    57          * @return PSM mode. See TPsmsrvMode.
       
    58          */
       
    59         TInt Mode();
       
    60         
       
    61     protected: // From CActive
       
    62 
       
    63         void DoCancel();
       
    64         void RunL();
       
    65         TInt RunError( TInt aError );
       
    66         
       
    67     private:
       
    68 
       
    69         CGSDisplayPluginAO();
       
    70         void ConstructL();
       
    71 
       
    72     private: // Data
       
    73         
       
    74         CRepository* iPsmRepository;
       
    75         TInt iPsmMode;
       
    76         CGSDisplayPlugin* iDisplayView;
       
    77     };
       
    78 
       
    79 
       
    80 #endif // GSDISPLAYPLUGINAO_H
       
    81 
       
    82 //End of File