hotspotfw/hsclient/NetCfgExtnHotSpot/inc/NetCfgExtnHotSpot.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 09:20:28 +0200
changeset 0 56b72877c1cb
child 10 dff6ebfd236f
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:    NIFMAN configuration 
*
*/




#ifndef __NET_CFG_EXTN_HOTSPOT_H__
#define __NET_CFG_EXTN_HOTSPOT_H__

//  INCLUDES
#include <e32base.h>
#include <comms-infras/networkconfigextensionbase.h>
#include <nifman.h>
#include "hssinterface.h"

// CLASS DECLARATION
/**
*  ECom plugin of NIFMAN configuration
*
*  @lib NetCfgExtnHotSpot.lib
*  @since S60 5.0
*/
class CNetworkConfigExtensionHotSpot : public CNetworkConfigExtensionBase
	{

public:

    /**
    * Two-phased constructor.
    */
  	static CNetworkConfigExtensionHotSpot* NewL( TAny* aMNifIfNotify );
   	
   	/**
    * Destructor.
    */
   	virtual ~CNetworkConfigExtensionHotSpot();

	/**
    * From CNetworkConfigExtensionBase
    * @since S60 5.0
    * @param aMessage the message
    * @return None
    */
   	void SendIoctlMessageL( const ESock::RLegacyResponseMsg& aMessage );

protected:

    /**
    * C++ default constructor.
    */
   	CNetworkConfigExtensionHotSpot( MNifIfNotify& aNifIfNotify );
  	
  	/**
    * By default Symbian 2nd phase constructor is private.
    */
  	void ConstructL();
   	
    /**
    * From CTimer. Waits for StartLogin() completion from Hotspot Server 
    * @since S60 5.0
    * @return None
    */
   	virtual void RunL();
   	
   	/**
    * From CTimer. Implements cancel routines.
    * @since S60 5.0
    * @return None
    */
   	virtual void DoCancel();

    // Authentication flag  	  		
	TBool iNotAuthenticated;
	
	// Authentication flag  	  		
	TBool iNotDeregistered;
	
	// Flagging if Connect() to Hotspot done successfully
	TInt iHotspotConnect;
 	
private:
    
    // Hotspot client interface 
    RHssInterface iClient;
 	};

    /**
    * CNetworkConfigExtensionBase - constructor
    * @param aNifIfNotify - client of the control
    */
    inline CNetworkConfigExtensionHotSpot::CNetworkConfigExtensionHotSpot( MNifIfNotify& aNifIfNotify ) :
    CNetworkConfigExtensionBase( aNifIfNotify )
	{
	}

#endif