bearermanagement/mpm/inc/mpmiapselection.h
changeset 32 5c4486441ae6
parent 20 9c97ad6591ae
child 44 a0c4ceac30d0
equal deleted inserted replaced
31:c16e04725da3 32:5c4486441ae6
    21 #include <e32base.h>
    21 #include <e32base.h>
    22 
    22 
    23 #include "mpmserversession.h"
    23 #include "mpmserversession.h"
    24 #include "mpmcommsdataccess.h"
    24 #include "mpmcommsdataccess.h"
    25 
    25 
    26 class CMPMWlanQueryDialog;
       
    27 class CMPMConfirmDlgStarting;
    26 class CMPMConfirmDlgStarting;
    28 class TMpmConnPref;
    27 class TMpmConnPref;
    29 
    28 
    30 /**
    29 /**
    31  * Handles IAP selection. MPM Server session
    30  * Handles IAP selection. MPM Server session
    89      */
    88      */
    90     void ExplicitConnectionL();
    89     void ExplicitConnectionL();
    91 
    90 
    92 public:
    91 public:
    93     /**
    92     /**
    94      * Starts Wlan query if Iap is wlan iap.
    93      * Returns true if given iap is a wlan iap.
    95      *
    94      *
    96      * @param aIapId Id of Iap
    95      * @param aIapId Id of Iap
    97      * @param aIsRoaming True if wlan query is for roaming
    96      * @return ETrue if iap aIap is wlan
    98      * @return ETrue if wlan query was started
    97      * @since symbian^4
    99      * @since S60 v3.2
    98      */
   100      */
    99     TBool IsIapWlanL( TUint32 aIapId );
   101     TBool StartWlanQueryIfNeededL(
       
   102         TUint32 aIapId,
       
   103         TBool aIsRoaming = EFalse );
       
   104 
   100 
   105     /**
   101     /**
   106      * Part of selecting best IAP at connection start. Called when WLAN scan
   102      * Part of selecting best IAP at connection start. Called when WLAN scan
   107      * is completed. Continues IAP selection according to the iChooseIapState.
   103      * is completed. Continues IAP selection according to the iChooseIapState.
   108      *
   104      *
   119      * @param aError Message status
   115      * @param aError Message status
   120      * @param aPolicyPref Policy preference to be returned, NULL if no 
   116      * @param aPolicyPref Policy preference to be returned, NULL if no 
   121      * preference should be passed
   117      * preference should be passed
   122      */
   118      */
   123     void ChooseIapComplete( TInt aError, const TMpmConnPref* aPolicyPref );
   119     void ChooseIapComplete( TInt aError, const TMpmConnPref* aPolicyPref );
   124 
       
   125     /**
       
   126      * Callback function used after Wlan network has been selected. 
       
   127      * Uses HandleUserIapSelectionL to complete IAP selection.
       
   128      *
       
   129      * @since 3.2
       
   130      * @param aError Error code from selection
       
   131      * @param aIapId Element id of IAP record if different than reported before. 
       
   132      * May be 0, when error occurred in selection or when no new Iap id is set.
       
   133      *
       
   134      */
       
   135     void UserWlanSelectionDoneL( TInt aError, TUint32 aIapId );
       
   136 
   120 
   137     /**
   121     /**
   138      * Stops displaying the starting dialog.
   122      * Stops displaying the starting dialog.
   139      *
   123      *
   140      * @since 3.2
   124      * @since 3.2
   303     CMPMServerSession* iSession;
   287     CMPMServerSession* iSession;
   304 
   288 
   305     // Pointer to Confirmation dialog.
   289     // Pointer to Confirmation dialog.
   306     CMPMConfirmDlgStarting* iConfirmDlgStarting;
   290     CMPMConfirmDlgStarting* iConfirmDlgStarting;
   307 
   291 
   308     // Pointer to Wlan query dialog.
       
   309     CMPMWlanQueryDialog* iWlanDialog;
       
   310 
       
   311     // Stores the boolean value whether next best iaps 
   292     // Stores the boolean value whether next best iaps 
   312     // exists in explicit connection start.
   293     // exists in explicit connection start.
   313     TBool iNextBestExists;
   294     TBool iNextBestExists;
   314 
   295 
   315     // Iap selected by user.
   296     // Iap selected by user.