hotspotfw/hsclient/NetCfgExtnHotSpot/inc/NetCfgExtnHotSpot.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 02:07:04 +0300
changeset 62 b47b808de481
parent 19 10810c91db26
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/*
* 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 daemon
*
*/


#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 );

    /**
    * From CNetworkConfigExtensionBase
    * @since S60 5.2
    * @param aCause Specifies what caused the deregistration request 
    * @return None
    */
    void Deregister( TInt aCause );
       
protected:

    /**
    * C++ default constructor.
    */
       CNetworkConfigExtensionHotSpot( MNifIfNotify& aNifIfNotify );
      
    /**
    * By default Symbian 2nd phase constructor is private.
    */
    void ConstructL();
       
    /**
    * From CNetworkConfigExtensionBase. HotspotFW handling add ons. 
    * @since S60 5.0
    * @return None
    */
    virtual void RunL();
       
    /**
    * From CNetworkConfigExtensionBase. HotspotFW handling add ons. 
    * @since S60 5.0
    * @return None
    */
    virtual void DoCancel();
    
private:
    
    // Flag for Authentication              
    TBool iNotAuthenticated;
    
    // Flag for Deregistering              
    TBool iNotDeregistered;
    
    // Defines if StartLogin() is ongoing              
    TBool iIsStartLoginActive;
    
    // Defines if HotspotFW session is created
    TInt iHotspotConnect;
    
    // Handle to HotspotFW client interface 
    RHssInterface iClient;
    
    };

    /**
    * CNetworkConfigExtensionBase - constructor
    * @param aNifIfNotify - client of the control
    */
    inline CNetworkConfigExtensionHotSpot::CNetworkConfigExtensionHotSpot( MNifIfNotify& aNifIfNotify ) :
    CNetworkConfigExtensionBase( aNifIfNotify )
    {
    	iNotAuthenticated =false;
    	iNotDeregistered = false;
    	iIsStartLoginActive=false;
    	iHotspotConnect=0;
    }

#endif