bearermanagement/mpm/inc/mpmserversession.h
changeset 20 9c97ad6591ae
parent 0 5a93021fdf25
child 40 c5b848e6c7d1
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
    26 //  INCLUDES
    26 //  INCLUDES
    27 #include <e32base.h>
    27 #include <e32base.h>
    28 #include <commdbconnpref.h> // for TCommDbConnPref
    28 #include <commdbconnpref.h> // for TCommDbConnPref
    29 #include <connpref.h>       // for TConnPref
    29 #include <connpref.h>       // for TConnPref
    30 #include <rconnmon.h>       // for TConnMonIapInfo
    30 #include <rconnmon.h>       // for TConnMonIapInfo
    31 #include <ConnectionUiUtilities.h> //TMsgQueryLinkedResults
    31 #include <ConnectionUiUtilities.h>
    32 #include "rmpm.h"
    32 #include "rmpm.h"
    33 #include "mpmserver.h"
    33 #include "mpmserver.h"
    34 
    34 
    35 // CONSTANTS
    35 // CONSTANTS
    36 const TUint32 KLowestPriority       = 2147483647; // 0x7FFFFFFF
    36 const TUint32 KLowestPriority       = 2147483647; // 0x7FFFFFFF
   287         * @param aError Error code
   287         * @param aError Error code
   288         */
   288         */
   289         void ClientErrorNotificationL( TInt aError );
   289         void ClientErrorNotificationL( TInt aError );
   290 
   290 
   291         /**
   291         /**
   292         * Checks if phone is in offline mode or not.
       
   293         * @since 3.1
       
   294         * @return ETrue if phone is in offline mode, otherwise EFalse.
       
   295         */
       
   296         TBool IsPhoneOfflineL() const;
       
   297 
       
   298         /**
       
   299         * Returns the list of available IAPs, where the blacklisted IAPs 
   292         * Returns the list of available IAPs, where the blacklisted IAPs 
   300         * have already been removed.
   293         * have already been removed.
   301         * @since 3.2
   294         * @since 3.2
   302         * @param aAvailableIAPs List of IAPs 
   295         * @param aAvailableIAPs List of IAPs 
   303         * @param aConnId Connection Id
   296         * @param aConnId Connection Id
   326         * contain the sorted iaps
   319         * contain the sorted iaps
   327         */
   320         */
   328         void SortSnapL( const TUint32   aSnapId, 
   321         void SortSnapL( const TUint32   aSnapId, 
   329                         TMpmSnapBuffer& aSortedIaps );
   322                         TMpmSnapBuffer& aSortedIaps );
   330 
   323 
   331         /**
       
   332         * If session is displaying connection selection dialog
       
   333         * updated contents for it are written to publish& subscribe API.
       
   334         *
       
   335         * @since 3.2
       
   336         */
       
   337         void UpdateConnectionDialogL();
       
   338 
   324 
   339         /**
   325         /**
   340         * Returns a reference to iStoredIapInfo. 
   326         * Returns a reference to iStoredIapInfo. 
   341         *
   327         *
   342         * @since 3.2
   328         * @since 3.2
   805         * @param aCurrentIap Current Iap Id of connection
   791         * @param aCurrentIap Current Iap Id of connection
   806         * @param aLastNotifiedIap Last notified Iap Id
   792         * @param aLastNotifiedIap Last notified Iap Id
   807         * @param aValidatedIap Iap validated by MPM for roaming
   793         * @param aValidatedIap Iap validated by MPM for roaming
   808         * @return ETrue if necessary, otherwise EFalse.
   794         * @return ETrue if necessary, otherwise EFalse.
   809         */
   795         */
   810         TBool CheckNotifNeed( const TUint32       aCurrentIap,
   796         TBool CheckNotifNeedL( const TUint32       aCurrentIap,
   811                               const TUint32       aLastNotifiedIap,
   797                                const TUint32       aLastNotifiedIap,
   812                               const TUint32       aValidatedIap );
   798                                const TUint32       aValidatedIap );
   813 
   799 
   814         /**
   800         /**
   815         * Returns the list of unavailable IAPs.
   801         * Returns the list of unavailable IAPs.
   816         * @since 3.2
   802         * @since 3.2
   817         * @param aAvailableIAPs Array of available IAPs
   803         * @param aAvailableIAPs Array of available IAPs
   942             
   928             
   943         // Iap selection object
   929         // Iap selection object
   944         //    
   930         //    
   945         CMPMIapSelection* iIapSelection;
   931         CMPMIapSelection* iIapSelection;
   946 
   932 
   947 		// Stored state of migrating to carrier
   933 				// Stored state of migrating to carrier
   948 		// 
   934 				// 
   949 		TMigrateToCarrierState iMigrateState;
   935 				TMigrateToCarrierState iMigrateState;
   950 
   936 
   951 		// Last Iap notified using PreferredIap-notification
   937 				// Last Iap notified using PreferredIap-notification
   952 		//
   938 				//
   953 		TUint32 iLastNotifiedIap;
   939 				TUint32 iLastNotifiedIap;
   954 		
   940 		
   955 		// Iap to which connection is migrating
   941 		    // Iap to which connection is migrating
   956         //
   942         //
   957         TUint32 iMigrateIap;
   943         TUint32 iMigrateIap;
   958 
   944 
   959         // Set when this session is user connection
   945         // Set when this session is user connection
   960 		//
   946 		    //
   961         TBool iUserConnection;
   947         TBool iUserConnection;
       
   948         
       
   949         // Set when disconnect dialog is shown to avoid 
       
   950         // showing duplicate cellulara data usage dialog
       
   951         //
       
   952         TBool iDisconnectDialogShown;
   962     };
   953     };
   963 
   954 
   964 #include "mpmserversession.inl"
   955 #include "mpmserversession.inl"
   965     
   956     
   966 #endif // MPMSERVERSESSION_H
   957 #endif // MPMSERVERSESSION_H