gssettingsuis/Gs/GSNetworkPlugin/Inc/PSMNetworkPlugin.h
branchRCL_3
changeset 24 8ee96d21d9bf
parent 23 8bda91a87a00
child 25 7e0eff37aedb
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PSMNETWORKPLUGIN_H
       
    20 #define PSMNETWORKPLUGIN_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include <psmpluginbase.h> //CPsmPluginBase
       
    26 #include <psmtypes.h>
       
    27 
       
    28 class CGSNetworkPluginModel;
       
    29 class CRepository;
       
    30 
       
    31 /**
       
    32 *  PSMNetwork plugin stub
       
    33 *
       
    34 *  @lib ?library
       
    35 *  @since Series 60_5.1
       
    36 */
       
    37 class CPSMNetworkPlugin : public CPsmPluginBase
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43 		* @return The created object.
       
    44         */
       
    45         static CPSMNetworkPlugin* NewL( TPsmPluginCTorParams& initParams );
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CPSMNetworkPlugin();
       
    51 
       
    52     public:
       
    53 
       
    54         // From CPsmPluginBase
       
    55         void NotifyModeChange( const TInt aMode );
       
    56 
       
    57 	private:
       
    58 
       
    59 	    CPSMNetworkPlugin( TPsmPluginCTorParams& aInitParams );
       
    60 	    void ConstructL();
       
    61 
       
    62         /**
       
    63         *  Internal leaving function calleb from non-leaving NotifyModeChange.
       
    64         */
       
    65         void DoModeChangeL( const TInt aMode );
       
    66         
       
    67         /**
       
    68         * To verify if the phone is in the offline mode. (or mostly if mode is supported???)
       
    69         */
       
    70         TBool IsPhoneOfflineL() const;
       
    71         
       
    72         /**
       
    73          * To verify if the network mode needs to be changed.
       
    74          * not change when from EPsmsrvModeNormal to EPsmsrvPartialMode
       
    75          * and from EPsmsrvModePowerSave to EPsmsrvPartialMode
       
    76          */
       
    77         TBool IsChangeNetworkMode( TPsmsrvMode& aOldMode, TPsmsrvMode aNewMode );
       
    78         
       
    79     private: // data
       
    80 
       
    81         CGSNetworkPluginModel *iModel;        //data model
       
    82         CRepository* iPsmRepository;
       
    83         TPsmsrvMode iPsmMode;
       
    84 
       
    85     };
       
    86 
       
    87 #endif // PSMNETWORKPLUGIN_H