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