realtimenetprots/sipfw/ProfileAgent/AlrMonitor/inc/sipalrmonitor.h
branchRCL_3
changeset 56 2c7192069824
parent 41 f54bfd820e04
equal deleted inserted replaced
49:0a1ad22c7bdc 56:2c7192069824
    62 
    62 
    63         /**
    63         /**
    64         * Starts to monitor IAP availability for the SNAP.
    64         * Starts to monitor IAP availability for the SNAP.
    65         * The observer will be informed asynchronouysly
    65         * The observer will be informed asynchronouysly
    66         * when any IAP is available for the monitored SNAP. 
    66         * when any IAP is available for the monitored SNAP. 
    67         * @param aConfigData SNAP Data to identify the correct SNAP Monitor.
    67         * @param aSnapId SNAP id
    68         * @param aObserver observer to be informed when an IAP becomes available
    68         * @param aObserver observer to be informed when an IAP becomes available
    69         */
    69         */
    70         void MonitorSnapL( TSipSNAPConfigurationData & aConfigData, 
    70         void MonitorSnapL( TUint32 aSnapId, 
    71                            MSipAlrObserver& aObserver);
    71                            MSipAlrObserver& aObserver );
    72 
    72 
    73 
    73 
    74         /**
    74         /**
    75         * Refreshes the IAP availability for the SNAP.
    75         * Refreshes the IAP availability for the SNAP.
    76         * Scans the available IAPs for the SNAP and informs all the observers 
    76         * Scans the available IAPs for the SNAP and informs all the observers 
    77         * if a better IAP than the current one is available.
    77         * if a better IAP than the current one is available.
    78         * @param aConfigData SNAP Data to identify the correct SNAP Monitor.
    78         * @param aSnapId SNAP id
    79         */
    79         */
    80         void RefreshIapAvailabilityL( TSipSNAPConfigurationData & aConfigData );
    80         void RefreshIapAvailabilityL( TUint32 aSnapId );
    81     
    81     
    82         /**
    82         /**
    83         * Allows migration to a new IAP for the SNAP.
    83         * Allows migration to a new IAP for the SNAP.
    84         * @param aConfigData SNAP Data to identify the correct SNAP Monitor.
    84         * @param aSnapId SNAP id
    85         * @return KErrNone on success, otherwise a system wide error code.
    85         * @return KErrNone on success, otherwise a system wide error code.
    86         */    
    86         */    
    87         TInt AllowMigration( TSipSNAPConfigurationData & aConfigData );    
    87         TInt AllowMigration( TUint32 aSnapId );    
    88 
    88 
    89         /**
    89         /**
    90         * Disallows migration to a new IAP for the SNAP.
    90         * Disallows migration to a new IAP for the SNAP.
    91         * @param aConfigData SNAP Data to identify the correct SNAP Monitor.
    91         * @param aSnapId SNAP id
    92         * @return KErrNone on success, otherwise a system wide error code.
    92         * @return KErrNone on success, otherwise a system wide error code.
    93         */    
    93         */    
    94         TInt DisallowMigration( TSipSNAPConfigurationData & aConfigData );
    94         TInt DisallowMigration( TUint32 aSnapId );
    95     
    95     
    96         /**
    96         /**
    97         * The migration has succeeded and the new IAP has been taken into use.
    97         * The migration has succeeded and the new IAP has been taken into use.
    98         * @param aConfigData SNAP Data to identify the correct SNAP Monitor.
    98         * @param aSnapId SNAP id
    99         * @return KErrNone on success, otherwise a system wide error code.
    99         * @return KErrNone on success, otherwise a system wide error code.
   100         */
   100         */
   101         TInt NewIapAccepted( TSipSNAPConfigurationData & aConfigData );    
   101         TInt NewIapAccepted( TUint32 aSnapId );    
   102 
   102 
   103         /**
   103         /**
   104         * The migration has failed and the new IAP was not taken into use.
   104         * The migration has failed and the new IAP was not taken into use.
   105         * @param aConfigData SNAP Data to identify the correct SNAP Monitor.
   105         * @param aSnapId SNAP id
   106         * @return KErrNone on success, otherwise a system wide error code.
   106         * @return KErrNone on success, otherwise a system wide error code.
   107         */    
   107         */    
   108         TInt NewIapRejected( TSipSNAPConfigurationData & aConfigData );
   108         TInt NewIapRejected( TUint32 aSnapId );
   109 
   109 
   110         /**
   110         /**
   111         * Frees all the resources reserved for the observer.
   111         * Frees all the resources reserved for the observer.
   112         * @param aObserver a observer
   112         * @param aObserver a observer
   113         */
   113         */
   120 	
   120 	
   121 		CSipAlrMonitor(CSipSystemStateMonitor& aSystemStateMonitor);	
   121 		CSipAlrMonitor(CSipSystemStateMonitor& aSystemStateMonitor);	
   122 		
   122 		
   123 	private: // New functions
   123 	private: // New functions
   124 	
   124 	
   125 	    CSipAlrSnapMonitor* FindSnapMonitor( TSipSNAPConfigurationData & aConfigData);
   125 	    CSipAlrSnapMonitor* FindSnapMonitor( TUint32 aSnapId );
   126 	    
   126 		
   127 	    	
       
   128 	private: // Data
   127 	private: // Data
   129 	
   128 	
   130 	    // Used for monitoring SNAP availability 
   129 	    // Used for monitoring SNAP availability 
   131 	    CSipSystemStateMonitor& iSystemStateMonitor;
   130 	    CSipSystemStateMonitor& iSystemStateMonitor;
   132 	
   131