hotspotfw/hsclient/NetCfgExtnHotSpot/inc/NetCfgExtnHotSpot.h
changeset 0 56b72877c1cb
child 15 dff6ebfd236f
equal deleted inserted replaced
-1:000000000000 0:56b72877c1cb
       
     1 /*
       
     2 * Copyright (c) 2006 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:    NIFMAN configuration 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __NET_CFG_EXTN_HOTSPOT_H__
       
    22 #define __NET_CFG_EXTN_HOTSPOT_H__
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <comms-infras/networkconfigextensionbase.h>
       
    27 #include <nifman.h>
       
    28 #include "hssinterface.h"
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 *  ECom plugin of NIFMAN configuration
       
    33 *
       
    34 *  @lib NetCfgExtnHotSpot.lib
       
    35 *  @since S60 5.0
       
    36 */
       
    37 class CNetworkConfigExtensionHotSpot : public CNetworkConfigExtensionBase
       
    38 	{
       
    39 
       
    40 public:
       
    41 
       
    42     /**
       
    43     * Two-phased constructor.
       
    44     */
       
    45   	static CNetworkConfigExtensionHotSpot* NewL( TAny* aMNifIfNotify );
       
    46    	
       
    47    	/**
       
    48     * Destructor.
       
    49     */
       
    50    	virtual ~CNetworkConfigExtensionHotSpot();
       
    51 
       
    52 	/**
       
    53     * From CNetworkConfigExtensionBase
       
    54     * @since S60 5.0
       
    55     * @param aMessage the message
       
    56     * @return None
       
    57     */
       
    58    	void SendIoctlMessageL( const ESock::RLegacyResponseMsg& aMessage );
       
    59 
       
    60 protected:
       
    61 
       
    62     /**
       
    63     * C++ default constructor.
       
    64     */
       
    65    	CNetworkConfigExtensionHotSpot( MNifIfNotify& aNifIfNotify );
       
    66   	
       
    67   	/**
       
    68     * By default Symbian 2nd phase constructor is private.
       
    69     */
       
    70   	void ConstructL();
       
    71    	
       
    72     /**
       
    73     * From CTimer. Waits for StartLogin() completion from Hotspot Server 
       
    74     * @since S60 5.0
       
    75     * @return None
       
    76     */
       
    77    	virtual void RunL();
       
    78    	
       
    79    	/**
       
    80     * From CTimer. Implements cancel routines.
       
    81     * @since S60 5.0
       
    82     * @return None
       
    83     */
       
    84    	virtual void DoCancel();
       
    85 
       
    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:
       
    96     
       
    97     // Hotspot client interface 
       
    98     RHssInterface iClient;
       
    99  	};
       
   100 
       
   101     /**
       
   102     * CNetworkConfigExtensionBase - constructor
       
   103     * @param aNifIfNotify - client of the control
       
   104     */
       
   105     inline CNetworkConfigExtensionHotSpot::CNetworkConfigExtensionHotSpot( MNifIfNotify& aNifIfNotify ) :
       
   106     CNetworkConfigExtensionBase( aNifIfNotify )
       
   107 	{
       
   108 	}
       
   109 
       
   110 #endif
       
   111