realtimenetprots/sipfw/ProfileAgent/AlrMonitor/inc/sipalrsnapmonitor.h
branchRCL_3
changeset 56 2c7192069824
parent 41 f54bfd820e04
equal deleted inserted replaced
49:0a1ad22c7bdc 56:2c7192069824
    32 #include "sipalrobserver.h"
    32 #include "sipalrobserver.h"
    33 #include <sipsystemstateobserver.h>
    33 #include <sipsystemstateobserver.h>
    34 #include <e32base.h>
    34 #include <e32base.h>
    35 #include <in_sock.h>
    35 #include <in_sock.h>
    36 #include <connpref.h>
    36 #include <connpref.h>
    37 #include <extendedconnpref.h>
       
    38 
    37 
    39 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
    38 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
    40 #include <comms-infras/es_mobility_apiext.h>
    39 #include <comms-infras/es_mobility_apiext.h>
    41 #else
    40 #else
    42 #include <comms-infras/cs_mobility_apiext.h>
    41 #include <comms-infras/cs_mobility_apiext.h>
    55                            public MSipSystemStateObserver
    54                            public MSipSystemStateObserver
    56 	{
    55 	{
    57 	public: // Constructors and destructor
    56 	public: // Constructors and destructor
    58 	    
    57 	    
    59     	static CSipAlrSnapMonitor* NewLC( 
    58     	static CSipAlrSnapMonitor* NewLC( 
    60     	    TSipSNAPConfigurationData aSnapData,
    59             TUint32 aSnapId,
    61             MSipAlrObserver& aObserver,
    60             MSipAlrObserver& aObserver,
    62             RSocketServ& aSocketServer,
    61             RSocketServ& aSocketServer,
    63             CSipSystemStateMonitor& aSystemStateMonitor);
    62             CSipSystemStateMonitor& aSystemStateMonitor );
    64             
    63             
    65     	~CSipAlrSnapMonitor();
    64     	~CSipAlrSnapMonitor();
    66     
    65     
    67 	public: // From CActive
    66 	public: // From CActive
    68 	
    67 	
   107    
   106    
   108         void DisallowMigration();
   107         void DisallowMigration();
   109 
   108 
   110         void NewIapAccepted();    
   109         void NewIapAccepted();    
   111    
   110    
   112         void NewIapRejected();  
   111         void NewIapRejected();    
   113         
       
   114         TBool BearerId();
       
   115         
   112         
   116 	private: // New functions	
   113 	private: // New functions	
   117 		
   114 		
   118 		TInt StartSnap();
   115 		TInt StartSnap();
   119 		
   116 		
   135 		TBool IsSnapAvailable() const;
   132 		TBool IsSnapAvailable() const;
   136 		
   133 		
   137 	private: // Constructors
   134 	private: // Constructors
   138 	
   135 	
   139 		CSipAlrSnapMonitor( 
   136 		CSipAlrSnapMonitor( 
   140 		    TSipSNAPConfigurationData aSnapData,
   137 		    TUint32 aSnapId,
   141 		    RSocketServ& aSocketServer,
   138 		    RSocketServ& aSocketServer,
   142 		    CSipSystemStateMonitor& aSystemStateMonitor);
   139 		    CSipSystemStateMonitor& aSystemStateMonitor );
   143 		
   140 		
   144     	void ConstructL( 
   141     	void ConstructL( 
   145     	    MSipAlrObserver& aObserver );
   142     	    MSipAlrObserver& aObserver );
   146    
   143    
   147     private: // Helper classes
   144     private: // Helper classes
   153     		    TBool iInitialEventDone;		
   150     		    TBool iInitialEventDone;		
   154     	    };
   151     	    };
   155   			
   152   			
   156     private: // Data
   153     private: // Data
   157     
   154     
   158     	TSipSNAPConfigurationData iSnapData;	
   155 		TUint32 iSnapId;	
   159 		RSocketServ& iSocketServer;
   156 		RSocketServ& iSocketServer;
   160         CSipSystemStateMonitor& iSystemStateMonitor;				
   157         CSipSystemStateMonitor& iSystemStateMonitor;				
   161 		RConnection iConnection;
   158 		RConnection iConnection;
   162 		TConnSnapPref iPrefs;
   159 		TConnSnapPref iPrefs;
   163 		CActiveCommsMobilityApiExt* iCommsMobilityAO;
   160 		CActiveCommsMobilityApiExt* iCommsMobilityAO;
   165 		TBool iPreferredCarrierAvailableCalled;
   162 		TBool iPreferredCarrierAvailableCalled;
   166 		TBool iMigrationAllowedByClient;
   163 		TBool iMigrationAllowedByClient;
   167 		TBool iFirstStartHasSucceeded;
   164 		TBool iFirstStartHasSucceeded;
   168 		TBool iConnectionActive;
   165 		TBool iConnectionActive;
   169 		TBool iDying;
   166 		TBool iDying;
   170 		TConnPrefList  iPrefList;
       
   171 	    TExtendedConnPref iExtPrefs;
       
   172 		
   167 		
   173 	private: // For testing purposes	
   168 	private: // For testing purposes	
   174 		
   169 		
   175     	#ifdef CPPUNIT_TEST
   170     	#ifdef CPPUNIT_TEST
   176     		friend class CSipAlrMonitorTest;
   171     		friend class CSipAlrMonitorTest;