hotspotfw/hsserver/inc/hotspotsession.h
branchRCL_3
changeset 24 63be7eb3fc78
parent 23 b852595f5cbe
child 25 f28ada11abbf
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
    25 #include <e32svr.h>
    25 #include <e32svr.h>
    26 #include <wlanmgmtclient.h> 
    26 #include <wlanmgmtclient.h> 
    27 #include <wlanmgmtinterface.h>
    27 #include <wlanmgmtinterface.h>
    28 #include <wlanmgmtcommon.h>
    28 #include <wlanmgmtcommon.h>
    29 #include <commdb.h>
    29 #include <commdb.h>
    30 #include <ictscommon.h>
       
    31 #include <ictsclientinterface.h>
       
    32 #include "hssnotif.h"
    30 #include "hssnotif.h"
    33 #include "hssiapsettingshandler.h"
    31 #include "hssiapsettingshandler.h"
    34 #include "hssclientinterface.h"
    32 #include "hssclientinterface.h"
    35 #include "hsslogintimerobserver.h"
    33 #include "hsslogintimerobserver.h"
    36 #include "hsslogouttimerobserver.h"
    34 #include "hsslogouttimerobserver.h"
    49 * Server side counterpart for client's Session classes.
    47 * Server side counterpart for client's Session classes.
    50 * Each connection has own session in server.
    48 * Each connection has own session in server.
    51 * @lib HotSpotServer.exe
    49 * @lib HotSpotServer.exe
    52 * @since Series 60 3.0
    50 * @since Series 60 3.0
    53 */
    51 */
    54 NONSHARABLE_CLASS( CHotSpotSession ) : public CSession2, 
    52 NONSHARABLE_CLASS( CHotSpotSession ) : public CSession2,
    55                                        public MIctsObserver,
       
    56                                        public MHssLoginTimerObserver,
    53                                        public MHssLoginTimerObserver,
    57                                        public MHssLogoutTimerObserver,
    54                                        public MHssLogoutTimerObserver,
    58                                        public MWlanMgmtNotifications
    55                                        public MWlanMgmtNotifications
    59 	{
    56 	{
    60 
    57 
    94         * @return None
    91         * @return None
    95         */
    92         */
    96         void DispatchMessageL( const RMessage2& aMessage );
    93         void DispatchMessageL( const RMessage2& aMessage );
    97         
    94         
    98         /**
    95         /**
    99         * From MICTSObserver. Called when internet connectivity tests are
       
   100         * being done.
       
   101         * @param aResult Result of tests
       
   102         * @param aString String containing possible HTML response
       
   103         * @return None
       
   104         */
       
   105         void ConnectivityObserver( TIctsTestResult aResult, 
       
   106                                    const TDesC& aString );
       
   107                
       
   108         /**
       
   109         * From MHssLoginTimerObserver. Called when time used for Login(..)
    96         * From MHssLoginTimerObserver. Called when time used for Login(..)
   110         * has run out for client.
    97         * has run out for client.
   111         * @return None
    98         * @return None
   112         */
    99         */
   113         void LoginTimeout();
   100         void LoginTimeout();
   148         /**
   135         /**
   149         * By default Symbian 2nd phase constructor is private.
   136         * By default Symbian 2nd phase constructor is private.
   150         */
   137         */
   151 
   138 
   152         void ConstructL();	
   139         void ConstructL();	
   153          /**
   140        
   154         * Initialize Scan to WlanEngine
       
   155         * @return None
       
   156         */
       
   157 
       
   158          /**
       
   159         * Launch Intenet Connectivity Test Service
       
   160         * @return None
       
   161         */
       
   162         void TestInternetConnectivityL();
       
   163         
       
   164         /**
   141         /**
   165         * Starts client register procedures
   142         * Starts client register procedures
   166         * @param aMessage, RMessage from client side
   143         * @param aMessage, RMessage from client side
   167         * @return None
   144         * @return None
   168         */
   145         */
   169         void ProcessRegisterL( const RMessage2& aMessage );
   146         void ProcessRegister( const RMessage2& aMessage );
   170         
   147         
   171         /**
   148         /**
   172         * Starts client unregister procedures
   149         * Starts client unregister procedures
   173         * @param aMessage, RMessage from client side
   150         * @param aMessage, RMessage from client side
   174         * @return None
   151         * @return None
   175         */
   152         */
   176         void ProcessUnRegisterL( const RMessage2& aMessage );
   153         void ProcessUnRegister( const RMessage2& aMessage );
   177         
   154         
   178         /**
   155         /**
   179         * Starts login procedures
   156         * Starts login procedures
   180         * @param aIapId, IAP id
   157         * @param aIapId, IAP id
   181         * @param aNetId, Network id
   158         * @param aNetId, Network id
   182         * @return KErrNone, if successful, otherwice one of system wide errorcodes.
   159         * @return KErrNone, if successful, otherwice one of system wide errorcodes.
   183         */
   160         */
   184         TInt ProcessStartLoginL( const TUint aIapId, const TUint aNetId );
   161         TInt ProcessStartLogin( const TUint aIapId, const TUint aNetId );
   185         
   162         
   186           /**
   163           /**
   187         * Starts Join procedures
   164         * Starts Join procedures
   188         * @param aIapId, IAP id
   165         * @param aIapId, IAP id
   189         * @return KErrNone, if successful, otherwice one of system wide errorcodes.
   166         * @return KErrNone, if successful, otherwice one of system wide errorcodes.
   222         /**
   199         /**
   223         * Makes server shutdown processes (agent change and IAP removals)
   200         * Makes server shutdown processes (agent change and IAP removals)
   224         * @param aMessage, Message for completing request
   201         * @param aMessage, Message for completing request
   225         */
   202         */
   226         void ProcessServerShutdown( const RMessage2& aMessage );
   203         void ProcessServerShutdown( const RMessage2& aMessage );
   227         
       
   228         /**
       
   229         * Updates UI state of HotSpot browser logon application.
       
   230         * @param aMessage, Message for completing request
       
   231         */
       
   232         void ProcessUiStateL( const RMessage2& aMessage );
       
   233         
       
   234         /**
       
   235         * Start HotSpot browser logon application.
       
   236         * @param aString, redirect URL
       
   237         */        
       
   238         void AuthenticateL( const TDesC& aString );
       
   239         
   204         
   240         /**
   205         /**
   241         * Removes brackets from the UID
   206         * Removes brackets from the UID
   242         * @param aUid, UID of the client
   207         * @param aUid, UID of the client
   243         */
   208         */
   315         /**
   280         /**
   316         * Handler for changing IAP settings
   281         * Handler for changing IAP settings
   317         * Own
   282         * Own
   318         */
   283         */
   319         CHssIapSettingsHandler* iIapSettingsHandler;
   284         CHssIapSettingsHandler* iIapSettingsHandler;
   320         
       
   321         /**
       
   322         * Internet Connectivity testing instance
       
   323         * Own
       
   324         */
       
   325         CIctsClientInterface* iIcts;
       
   326 
   285 
   327         /**
   286         /**
   328         * Timer used for client Login procedure
   287         * Timer used for client Login procedure
   329         * Own
   288         * Own
   330         */       
   289         */