gssettingsuis/Gs/GSNetworkPlugin/Inc/GSNetworkPluginAO.h
changeset 68 13e71d907dc3
parent 0 8c5d936e5675
equal deleted inserted replaced
40:6465d5bb863a 68:13e71d907dc3
       
     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:  Active object for handling PSM related CenRep changes.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GSNETWORKPLUGINAO_H
       
    20 #define GSNETWORKPLUGINAO_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 *  CGSNetworkPluginAO. Acts as a CenRep observer for PSM related state 
       
    39 *  changes.
       
    40 *
       
    41 *  @lib GSNetworkPlugin.lib
       
    42 *  @since Series 60_5.1
       
    43 */
       
    44 class CRepository;
       
    45 class CGSNetworkPlugin;
       
    46 
       
    47 class CGSNetworkPluginAO : public CActive
       
    48     {
       
    49     public:
       
    50     
       
    51         static CGSNetworkPluginAO* NewL();
       
    52         ~CGSNetworkPluginAO();
       
    53     
       
    54         /**
       
    55          * Set view which should be updated when PSM mode changes.
       
    56          */
       
    57         void SetView( CGSNetworkPlugin* aNetworkPluginView );
       
    58         
       
    59         /**
       
    60          * @return PSM mode. See TPsmsrvMode.
       
    61          */
       
    62         TInt Mode() const;
       
    63         
       
    64     protected: // From CActive
       
    65 
       
    66         void DoCancel();
       
    67         void RunL();
       
    68         TInt RunError( TInt aError );
       
    69         
       
    70     private:
       
    71 
       
    72         CGSNetworkPluginAO();
       
    73         void ConstructL();
       
    74 
       
    75     private: // Data
       
    76         
       
    77         CRepository* iPsmRepository;
       
    78         TInt iPsmMode;
       
    79         CGSNetworkPlugin* iNetworkPluginView;
       
    80     };
       
    81 
       
    82 
       
    83 #endif // GSNETWORKPLUGINAO_H
       
    84 
       
    85 //End of File