bearermanagement/mpm/inc/mpmserver.h
branchRCL_3
changeset 20 4c83dcfb6f1a
parent 17 0a9e01492035
child 23 fc7b30ed2058
equal deleted inserted replaced
18:04408506c6e0 20:4c83dcfb6f1a
   350         */
   350         */
   351         void GetConnectionState( const TConnectionId aConnId,
   351         void GetConnectionState( const TConnectionId aConnId,
   352                                  TConnectionState&   aState );
   352                                  TConnectionState&   aState );
   353 
   353 
   354         /**
   354         /**
   355         * Checks if the connection is started for the Iap Id.
   355         * Checks if the connection is started for the Iap Id,
       
   356         * returning the state.
   356         * @since 3.2
   357         * @since 3.2
   357         * @param aIapId IAP Id of the connection
   358         * @param aIapId IAP Id of the connection
   358         * @param aConnId Connection Id
   359         * @param aConnId Connection Id
   359         */
   360         * @return Connection State, EIdle if not found
   360         TBool CheckIfStarted( const TUint32 aIapId, 
   361         */
       
   362         TConnectionState CheckUsageOfIap( const TUint32 aIapId, 
   361                               const TConnectionId aConnId );
   363                               const TConnectionId aConnId );
   362 
   364 
   363         /**
   365         /**
   364         * Checks if a connection is started with wlan iap.
   366         * Checks if any WLAN connection is started.
   365         * @since 3.2
   367         * @since 3.2
   366         * @param aCdbAccess
   368         * @param aCdbAccess
       
   369 		* @return IAP ID of the started WLAN connection, zero if not found
   367         */
   370         */
   368         TUint32 IsWlanConnectionStartedL( const CMPMCommsDatAccess* aCdbAccess );
   371         TUint32 IsWlanConnectionStartedL( const CMPMCommsDatAccess* aCdbAccess );
   369         
   372         
   370         /**
   373         /**
   371         * Appending the whole IAP info about an active BM connection.
   374         * Appending the whole IAP info about an active BM connection.
   419         /**
   422         /**
   420         * Checks whether given connection has registered for 
   423         * Checks whether given connection has registered for 
   421         * preferred IAP notifications.
   424         * preferred IAP notifications.
   422         * @since 3.2
   425         * @since 3.2
   423         * @param aConnId Connection Id
   426         * @param aConnId Connection Id
       
   427         * @return ETrue if registered
   424         */
   428         */
   425         TBool RegisteredForBMPrefIAP( const TConnectionId aConnId );
   429         TBool RegisteredForBMPrefIAP( const TConnectionId aConnId );
   426 
   430 
   427         /**
   431         /**
   428         * Sets last notified IAP for BMPrefIAPNotif related to a connection
   432         * Sets last notified IAP for BMPrefIAPNotif related to a connection
   621         * @param aDlg Pointer to the CMPMConfirmDlgWlanQuery object.
   625         * @param aDlg Pointer to the CMPMConfirmDlgWlanQuery object.
   622         */
   626         */
   623         void AppendWlanQueryQueueL( CMPMWlanQueryDialog* aDlg );
   627         void AppendWlanQueryQueueL( CMPMWlanQueryDialog* aDlg );
   624 
   628 
   625         /**
   629         /**
   626         * Removes the first item from the iWlanQueryQueue.
   630         * Removes the dialog from the iWlanQueryQueue.
   627         * @since 3.2
   631         * @since 3.2
       
   632         * @param aDlg dialog to be removed.
   628         */
   633         */
   629         inline void RemoveFromWlanQueryQueue( CMPMWlanQueryDialog* aDlg );
   634         inline void RemoveFromWlanQueryQueue( CMPMWlanQueryDialog* aDlg );
   630 
   635 
   631         /**
   636         /**
   632         * Get the WlanQueryQueue.
   637         * Get the WlanQueryQueue.
   702 
   707 
   703         /**
   708         /**
   704         * Returns the Commsdat access instance
   709         * Returns the Commsdat access instance
   705         *
   710         *
   706         * @since 3.2
   711         * @since 3.2
       
   712         * @return Commsdat access instance.
   707         */
   713         */
   708         inline CMPMCommsDatAccess* CommsDatAccess();
   714         inline CMPMCommsDatAccess* CommsDatAccess();
   709 
   715 
   710         /**
   716         /**
   711         * Starts forced roaming sequence to wlan
   717         * Starts forced roaming sequence to wlan
   717         
   723         
   718         /**
   724         /**
   719         * Starts forced roaming sequence to connected wlan
   725         * Starts forced roaming sequence to connected wlan
   720         *
   726         *
   721         * @param aIapInfo Info about available IAPs
   727         * @param aIapInfo Info about available IAPs
       
   728         * @return Always zero...
   722         * @since 5.2
   729         * @since 5.2
   723         */
   730         */
   724         static TInt StartForcedRoamingToConnectedWlanL( TAny* aUpdater );
   731         static TInt StartForcedRoamingToConnectedWlanL( TAny* aUpdater );
   725         
   732         
   726         /**
   733         /**
   733         
   740         
   734         /**
   741         /**
   735         * Checks whether phone is in visitor network.
   742         * Checks whether phone is in visitor network.
   736         *
   743         *
   737         * @since 5.2
   744         * @since 5.2
       
   745 		* @return ETrue if phone is in visitor network, EFalse otherwise
   738         */
   746         */
   739         TBool IsVisitorNetwork() const;
   747         TBool IsVisitorNetwork() const;
   740         
   748         
   741         /**
   749         /**
   742         * Returns the RoamingWatcher pointer
   750         * Returns the RoamingWatcher pointer
   743         *
   751         *
   744         * @since 5.2
   752         * @since 5.2
       
   753 		* @return RoamingWatcher pointer
   745         */
   754         */
   746         inline CMPMRoamingWatcher* RoamingWatcher() const;
   755         inline CMPMRoamingWatcher* RoamingWatcher() const;
   747         
   756         
   748         
   757         
   749         
   758         
   757         * @return Pointer to the new client session
   766         * @return Pointer to the new client session
   758         */
   767         */
   759         CSession2* NewSessionL( const TVersion& aVersion,
   768         CSession2* NewSessionL( const TVersion& aVersion,
   760                                 const RMessage2& aMessage) const;
   769                                 const RMessage2& aMessage) const;
   761 
   770 
   762         // Stops connection of certain IAP, zero for all connections
   771         /**
       
   772 		* Stops either all connections or a certain IAP
       
   773 		*
       
   774         * @param IAP ID to be stopped, zero for all connections
       
   775 		*/
   763         void StopConnections( TInt aIapId = 0 );
   776         void StopConnections( TInt aIapId = 0 );
   764 
   777 
   765     public:
   778     public:
   766 
   779 
   767         /**
   780         /**
   865         void StopCellularConns();
   878         void StopCellularConns();
   866 
   879 
   867         /**
   880         /**
   868         * Offline mode watcher updates the mode variable stored by MPM server.
   881         * Offline mode watcher updates the mode variable stored by MPM server.
   869         * @since 5.2
   882         * @since 5.2
   870         */
   883         * @param aNewModeValue New offline mode value
   871         void UpdateOfflineMode( TInt newModeValue );
   884         */
       
   885         void UpdateOfflineMode( TInt aNewModeValue );
   872 
   886 
   873         /**
   887         /**
   874         * Returns true if the phone is in offline mode.
   888         * Returns true if the phone is in offline mode.
   875         * @since 5.2
   889         * @since 5.2
       
   890         * @return ETrue if phone is in offline mode, EFalse otherwise.
   876         */
   891         */
   877         TBool IsPhoneOffline();
   892         TBool IsPhoneOffline();
   878 
   893 
   879         /**
   894         /**
   880         * Tells the "Use WLAN in offline mode" query response.
   895         * Tells the "Use WLAN in offline mode" query response.
   881         * @since 5.2
   896         * @since 5.2
       
   897         * @return Response of offline mode query (Undefined if not executed)
   882         */
   898         */
   883         TOfflineWlanQueryResponse OfflineWlanQueryResponse();
   899         TOfflineWlanQueryResponse OfflineWlanQueryResponse();
   884 
   900 
   885         /**
   901         /**
   886         * Called when the "Use WLAN in offline mode" query has been responded.
   902         * Called when the "Use WLAN in offline mode" query has been responded.
   887         * @since 5.2
   903         * @since 5.2
       
   904         * @param aResponse Sets the Offline mode query response value.
   888         */
   905         */
   889         void SetOfflineWlanQueryResponse( TOfflineWlanQueryResponse aResponse);
   906         void SetOfflineWlanQueryResponse( TOfflineWlanQueryResponse aResponse);
   890 
   907 
   891     private:
   908     private:
   892 
   909