bearermanagement/mpm/inc/mpmserversession.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
child 69 cf1b3ddbe9a1
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
     1 /*
     1 /*
     2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    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>
    31 #include <ConnectionUiUtilities.h> //TMsgQueryLinkedResults
    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
    51 const TUint   KMPMNrWlansTwo        = 2;
    51 const TUint   KMPMNrWlansTwo        = 2;
    52 const TInt    KMaxGetIntSettingLength = KCommsDbSvrMaxColumnNameLength * 2;
    52 const TInt    KMaxGetIntSettingLength = KCommsDbSvrMaxColumnNameLength * 2;
    53 _LIT( KIapProxyServiceSetting, "IAP\\IAPService" );
    53 _LIT( KIapProxyServiceSetting, "IAP\\IAPService" );
    54 
    54 
    55 // FORWARD DECLARATIONS
    55 // FORWARD DECLARATIONS
       
    56 class CMPMDisconnectDlg;
    56 class CMPMConfirmDlgRoaming;
    57 class CMPMConfirmDlgRoaming;
    57 class CMPMCommsDatAccess;
    58 class CMPMCommsDatAccess;
    58 class CMPMIapSelection;
    59 class CMPMIapSelection;
    59 
    60 
    60 // CLASS DECLARATION
    61 // CLASS DECLARATION
   318         * contain the sorted iaps
   319         * contain the sorted iaps
   319         */
   320         */
   320         void SortSnapL( const TUint32   aSnapId, 
   321         void SortSnapL( const TUint32   aSnapId, 
   321                         TMpmSnapBuffer& aSortedIaps );
   322                         TMpmSnapBuffer& aSortedIaps );
   322 
   323 
       
   324         /**
       
   325         * If session is displaying connection selection dialog
       
   326         * updated contents for it are written to publish& subscribe API.
       
   327         *
       
   328         * @since 3.2
       
   329         */
       
   330         void UpdateConnectionDialogL();
   323 
   331 
   324         /**
   332         /**
   325         * Returns a reference to iStoredIapInfo. 
   333         * Returns a reference to iStoredIapInfo. 
   326         *
   334         *
   327         * @since 3.2
   335         * @since 3.2
   409         /**
   417         /**
   410          * Use user connection preferences
   418          * Use user connection preferences
   411          * @since 5.1
   419          * @since 5.1
   412          */
   420          */
   413         TBool UseUserConnPref();
   421         TBool UseUserConnPref();
   414         
       
   415         /**
       
   416          * Returns VPN user connection usage status.
       
   417          * @return ETrue if VPN user connection is used in this session.
       
   418          */
       
   419         inline TBool VpnUserConnectionUsed() const;
       
   420 
       
   421         /**
       
   422          * Sets VPN user connection usage status.
       
   423          * @param aEnabled Informs if VPN user connection is used.
       
   424          */
       
   425         void SetVpnUserConnectionUsed( const TBool aEnabled );
       
   426         
   422         
   427         /**
   423         /**
   428         * Returns id of the client.
   424         * Returns id of the client.
   429         *
   425         *
   430         * @since 5.0
   426         * @since 5.0
   601         * Handling of error processing.
   597         * Handling of error processing.
   602         * @since 3.1
   598         * @since 3.1
   603         * @param aMessage message from client
   599         * @param aMessage message from client
   604         */
   600         */
   605         void HandleServerProcessErrorL(const RMessage2& aMessage);
   601         void HandleServerProcessErrorL(const RMessage2& aMessage);
   606         
   602 
   607         /**
   603         /**
   608         * Handling of prefered IAP notification registration.
   604         * Handling of prefered IAP notification registration.
   609         * @since 3.1
   605         * @since 3.1
   610         * @param aMessage message from client
   606         * @param aMessage message from client
   611         */
   607         */
   831         * to a background application.
   827         * to a background application.
   832         * @since 3.2
   828         * @since 3.2
   833         * @param aUid Application Uid
   829         * @param aUid Application Uid
   834         */
   830         */
   835         TBool IsBackgroundApplication( TUint32 aUid ) const;
   831         TBool IsBackgroundApplication( TUint32 aUid ) const;
   836         
   832 
   837         /**
   833         /**
   838         * Checks if disconnect dialog should be displayed for this error
   834         * Checks if disconnect dialog should be displayed for this error
   839         * @since 3.2
   835         * @since 3.2
   840         * @param aError Error code
   836         * @param aError Error code
   841         */
   837         */
   882 
   878 
   883     private: // Data
   879     private: // Data
   884     
   880     
   885         // Server class reference
   881         // Server class reference
   886         CMPMServer& iMyServer;
   882         CMPMServer& iMyServer;
       
   883 
       
   884         // Pointer to the disconnect dialog active object
       
   885         CMPMDisconnectDlg* iDisconnectDlg;
   887 
   886 
   888         // Pointer to the roaming confirmation dialog active object
   887         // Pointer to the roaming confirmation dialog active object
   889         CMPMConfirmDlgRoaming* iConfirmDlgRoaming;
   888         CMPMConfirmDlgRoaming* iConfirmDlgRoaming;
   890 
   889 
   891         // Connection Id
   890         // Connection Id
   936             
   935             
   937         // Iap selection object
   936         // Iap selection object
   938         //    
   937         //    
   939         CMPMIapSelection* iIapSelection;
   938         CMPMIapSelection* iIapSelection;
   940 
   939 
   941         // Stored state of migrating to carrier
   940 		// Stored state of migrating to carrier
   942         // 
   941 		// 
   943         TMigrateToCarrierState iMigrateState;
   942 		TMigrateToCarrierState iMigrateState;
   944 
   943 
   945         // Last Iap notified using PreferredIap-notification
   944 		// Last Iap notified using PreferredIap-notification
   946         //
   945 		//
   947         TUint32 iLastNotifiedIap;
   946 		TUint32 iLastNotifiedIap;
   948     
   947 		
   949         // Iap to which connection is migrating
   948 		// Iap to which connection is migrating
   950         //
   949         //
   951         TUint32 iMigrateIap;
   950         TUint32 iMigrateIap;
   952 
   951 
   953         // Set when this session is user connection
   952         // Set when this session is user connection
       
   953 		//
       
   954         TBool iUserConnection;
       
   955         
       
   956         // Set when disconnect dialog is shown to avoid 
       
   957         // showing duplicate cellulara data usage dialog
   954         //
   958         //
   955         TBool iUserConnection;
   959         TBool iDisconnectDialogShown;
   956 
   960         
   957         // Set when this session uses VPN user connection
       
   958         //
       
   959         TBool iVpnUserConnectionUsed;        
       
   960 
       
   961         // Set when error discreet popup shown for IAP so it is
   961         // Set when error discreet popup shown for IAP so it is
   962         // not shown again if the SNAP is empty
   962         // not shown again if the SNAP is empty
   963         TBool iErrorDiscreetPopupShown;
   963         TBool iErrorDiscreetPopupShown;
   964     };
   964     };
   965 
   965