hotspotfw/hsclient/NetCfgExtnHotSpot/inc/NetCfgExtnHotSpot.h
branchRCL_3
changeset 10 dff6ebfd236f
parent 0 56b72877c1cb
equal deleted inserted replaced
8:c2bc3f8c7777 10:dff6ebfd236f
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:    NIFMAN configuration 
    14 * Description:    NIFMAN configuration daemon
    15 *
    15 *
    16 */
    16 */
    17 
       
    18 
       
    19 
    17 
    20 
    18 
    21 #ifndef __NET_CFG_EXTN_HOTSPOT_H__
    19 #ifndef __NET_CFG_EXTN_HOTSPOT_H__
    22 #define __NET_CFG_EXTN_HOTSPOT_H__
    20 #define __NET_CFG_EXTN_HOTSPOT_H__
    23 
    21 
    33 *
    31 *
    34 *  @lib NetCfgExtnHotSpot.lib
    32 *  @lib NetCfgExtnHotSpot.lib
    35 *  @since S60 5.0
    33 *  @since S60 5.0
    36 */
    34 */
    37 class CNetworkConfigExtensionHotSpot : public CNetworkConfigExtensionBase
    35 class CNetworkConfigExtensionHotSpot : public CNetworkConfigExtensionBase
    38 	{
    36     {
    39 
    37 
    40 public:
    38 public:
    41 
    39 
    42     /**
    40     /**
    43     * Two-phased constructor.
    41     * Two-phased constructor.
    44     */
    42     */
    45   	static CNetworkConfigExtensionHotSpot* NewL( TAny* aMNifIfNotify );
    43     static CNetworkConfigExtensionHotSpot* NewL( TAny* aMNifIfNotify );
    46    	
    44        
    47    	/**
    45     /**
    48     * Destructor.
    46     * Destructor.
    49     */
    47     */
    50    	virtual ~CNetworkConfigExtensionHotSpot();
    48     virtual ~CNetworkConfigExtensionHotSpot();
    51 
    49 
    52 	/**
    50     /**
    53     * From CNetworkConfigExtensionBase
    51     * From CNetworkConfigExtensionBase
    54     * @since S60 5.0
    52     * @since S60 5.0
    55     * @param aMessage the message
    53     * @param aMessage the message
    56     * @return None
    54     * @return None
    57     */
    55     */
    58    	void SendIoctlMessageL( const ESock::RLegacyResponseMsg& aMessage );
    56     void SendIoctlMessageL( const ESock::RLegacyResponseMsg& aMessage );
    59 
    57 
       
    58     /**
       
    59     * From CNetworkConfigExtensionBase
       
    60     * @since S60 5.2
       
    61     * @param aCause Specifies what caused the deregistration request 
       
    62     * @return None
       
    63     */
       
    64     void Deregister( TInt aCause );
       
    65        
    60 protected:
    66 protected:
    61 
    67 
    62     /**
    68     /**
    63     * C++ default constructor.
    69     * C++ default constructor.
    64     */
    70     */
    65    	CNetworkConfigExtensionHotSpot( MNifIfNotify& aNifIfNotify );
    71        CNetworkConfigExtensionHotSpot( MNifIfNotify& aNifIfNotify );
    66   	
    72       
    67   	/**
    73     /**
    68     * By default Symbian 2nd phase constructor is private.
    74     * By default Symbian 2nd phase constructor is private.
    69     */
    75     */
    70   	void ConstructL();
    76     void ConstructL();
    71    	
    77        
    72     /**
    78     /**
    73     * From CTimer. Waits for StartLogin() completion from Hotspot Server 
    79     * From CNetworkConfigExtensionBase. HotspotFW handling add ons. 
    74     * @since S60 5.0
    80     * @since S60 5.0
    75     * @return None
    81     * @return None
    76     */
    82     */
    77    	virtual void RunL();
    83     virtual void RunL();
    78    	
    84        
    79    	/**
    85     /**
    80     * From CTimer. Implements cancel routines.
    86     * From CNetworkConfigExtensionBase. HotspotFW handling add ons. 
    81     * @since S60 5.0
    87     * @since S60 5.0
    82     * @return None
    88     * @return None
    83     */
    89     */
    84    	virtual void DoCancel();
    90     virtual void DoCancel();
    85 
    91     
    86     // Authentication flag  	  		
       
    87 	TBool iNotAuthenticated;
       
    88 	
       
    89 	// Authentication flag  	  		
       
    90 	TBool iNotDeregistered;
       
    91 	
       
    92 	// Flagging if Connect() to Hotspot done successfully
       
    93 	TInt iHotspotConnect;
       
    94  	
       
    95 private:
    92 private:
    96     
    93     
    97     // Hotspot client interface 
    94     // Flag for Authentication              
       
    95     TBool iNotAuthenticated;
       
    96     
       
    97     // Flag for Deregistering              
       
    98     TBool iNotDeregistered;
       
    99     
       
   100     // Defines if StartLogin() is ongoing              
       
   101     TBool iIsStartLoginActive;
       
   102     
       
   103     // Defines if HotspotFW session is created
       
   104     TInt iHotspotConnect;
       
   105     
       
   106     // Handle to HotspotFW client interface 
    98     RHssInterface iClient;
   107     RHssInterface iClient;
    99  	};
   108     
       
   109     };
   100 
   110 
   101     /**
   111     /**
   102     * CNetworkConfigExtensionBase - constructor
   112     * CNetworkConfigExtensionBase - constructor
   103     * @param aNifIfNotify - client of the control
   113     * @param aNifIfNotify - client of the control
   104     */
   114     */
   105     inline CNetworkConfigExtensionHotSpot::CNetworkConfigExtensionHotSpot( MNifIfNotify& aNifIfNotify ) :
   115     inline CNetworkConfigExtensionHotSpot::CNetworkConfigExtensionHotSpot( MNifIfNotify& aNifIfNotify ) :
   106     CNetworkConfigExtensionBase( aNifIfNotify )
   116     CNetworkConfigExtensionBase( aNifIfNotify )
   107 	{
   117     {
   108 	}
   118     }
   109 
   119 
   110 #endif
   120 #endif
   111 
   121