gssettingsuis/Gs/GSNetworkPlugin/Inc/PSMNetworkPlugin.h
changeset 0 8c5d936e5675
child 12 bdac6c462392
equal deleted inserted replaced
-1:000000000000 0:8c5d936e5675
       
     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 
       
    27 class CGSNetworkPluginModel;
       
    28 
       
    29 /**
       
    30 *  PSMNetwork plugin stub
       
    31 *
       
    32 *  @lib ?library
       
    33 *  @since Series 60_5.1
       
    34 */
       
    35 class CPSMNetworkPlugin : public CPsmPluginBase
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38 
       
    39         /**
       
    40         * Two-phased constructor.
       
    41 		* @return The created object.
       
    42         */
       
    43         static CPSMNetworkPlugin* NewL( TPsmPluginCTorParams& initParams );
       
    44 
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         virtual ~CPSMNetworkPlugin();
       
    49 
       
    50     public:
       
    51 
       
    52         // From CPsmPluginBase
       
    53         void NotifyModeChange( const TInt aMode );
       
    54 
       
    55 	private:
       
    56 
       
    57 	    CPSMNetworkPlugin( TPsmPluginCTorParams& aInitParams );
       
    58 	    void ConstructL();
       
    59 
       
    60         /**
       
    61         *  Internal leaving function calleb from non-leaving NotifyModeChange.
       
    62         */
       
    63         void DoModeChangeL( const TInt aMode );
       
    64         
       
    65         /**
       
    66         * To verify if the phone is in the offline mode. (or mostly if mode is supported???)
       
    67         */
       
    68         TBool IsPhoneOfflineL() const;
       
    69         
       
    70     private: // data
       
    71 
       
    72         CGSNetworkPluginModel *iModel;        //data model
       
    73 
       
    74     };
       
    75 
       
    76 #endif // PSMNETWORKPLUGIN_H