27 #include "iadinternaldefinitions.h" // For TIADConnectionStatus |
27 #include "iadinternaldefinitions.h" // For TIADConnectionStatus |
28 #include "iadnokiadefinitions.h" // For EIADSizeOfChannels |
28 #include "iadnokiadefinitions.h" // For EIADSizeOfChannels |
29 //ISCE |
29 //ISCE |
30 #include "isirouterlinkifs.h" // For MLinkRouterIf |
30 #include "isirouterlinkifs.h" // For MLinkRouterIf |
31 //ISCE |
31 //ISCE |
32 #ifndef NCP_COMMON_BRIDGE_FAMILY |
32 #ifdef NCP_COMMON_BRIDGE_FAMILY_PIPE_SUPPORT |
33 class DPipeHandler; |
33 class DPipeHandler; |
34 #endif |
34 #endif |
35 //ISCE class MIAD2ISTApi; |
35 //ISCE class MIAD2ISTApi; |
36 class DRouter; |
36 class DRouter; |
37 class DIndicationHandler; |
37 class DIndicationHandler; |
135 { |
135 { |
136 EIsiMsg = 1, |
136 EIsiMsg = 1, |
137 EPipeMsg, |
137 EPipeMsg, |
138 EMediaMsg, |
138 EMediaMsg, |
139 EIndicationMsg, |
139 EIndicationMsg, |
140 EControlMsg, |
|
141 EPnNameAddRespMsg, |
|
142 ENotKnownMsg, |
140 ENotKnownMsg, |
|
141 EUsbPhonetMsg |
143 }; |
142 }; |
144 |
143 |
145 enum TWaitingType |
144 enum TWaitingType |
146 { |
145 { |
147 ENormalOpen = 1, |
146 ENormalOpen = 1, |
148 EDrmOpen, |
|
149 ENameAddOpen |
|
150 #if (NCP_COMMON_SOS_VERSION_SUPPORT >= SOS_VERSION_95) |
147 #if (NCP_COMMON_SOS_VERSION_SUPPORT >= SOS_VERSION_95) |
151 ,ELoan |
148 ELoan |
152 #endif |
149 #endif |
153 }; |
150 }; |
154 |
151 |
155 void HandleIsiMessage( TDes8& aMsg ); |
152 void HandleIsiMessage( TDes8& aMsg ); |
156 |
153 |
157 void HandlePipeMessage( TDes8& aMsg ); |
154 void HandlePipeMessage( TDes8& aMsg ); |
158 |
155 |
159 void HandleMediaMessage( TDes8& aMsg ); |
156 void HandleMediaMessage( TDes8& aMsg ); |
160 |
157 |
161 void HandleControlMessage( TDes8& aMsg ); |
|
162 |
|
163 void HandlePnsNameAddResp( TDes8& aMsg ); |
|
164 |
158 |
165 void SendCommIsaEntityNotReachableResp( const TDesC8& aMsg ); |
159 void SendCommIsaEntityNotReachableResp( const TDesC8& aMsg ); |
166 |
160 |
167 static void CheckDfc(); |
161 static void CheckDfc(); |
168 |
162 |
169 TInt ValiDateIsiMessage( TDes8& aMsg ); |
163 TInt ValiDateIsiMessage( TDes8& aMsg ); |
170 |
164 |
171 public: |
165 public: |
172 static void CheckRouting( DRouter& aTmp, TDes8& aMsg ); |
166 static void CheckRouting( DRouter& aTmp, TDes8& aMsg ); |
173 |
167 |
|
168 static DRouter* iThisPtr; |
|
169 MISIRouterObjectIf* iNameService; |
|
170 MISIRouterObjectIf* iCommunicationManager; |
|
171 |
174 private: |
172 private: |
175 static void CommonRxDfc( TAny* aPtr ); |
173 static void CommonRxDfc( TAny* aPtr ); |
176 |
174 |
177 static void InitCmtDfc( TAny* aPtr ); |
175 static void InitCmtDfc( TAny* aPtr ); |
178 #ifdef NCP_COMMON_BRIDGE_FAMILY |
176 |
179 void InitConnectionOk(); |
177 void InitConnectionOk(); |
180 #endif |
|
181 void InitCmtConnection(); |
|
182 |
|
183 void SendDrmReq( const TUint16 aChannelId ); |
|
184 |
|
185 void SendPnsNameAddReq( const TUint16 aChannel, const TDesC8& aOpenInfo ); |
|
186 |
178 |
187 static void NotifyObjLayerConnStatDfc( TAny* aPtr ); |
179 static void NotifyObjLayerConnStatDfc( TAny* aPtr ); |
188 |
180 |
189 void NotifyObjLayerConnStat( const TIADConnectionStatus aStatus ); |
181 void NotifyObjLayerConnStat( const TIADConnectionStatus aStatus ); |
190 |
182 |
191 void SetSenderInfo( TDes8& aMessage, const TUint16 aCh ); |
183 void SetSenderInfo( TDes8& aMessage, const TUint16 aCh ); |
|
184 |
|
185 //From objectapi |
|
186 TInt Send( TDes8& aMessage, const TUint8 aObjId ); |
192 |
187 |
193 // Member data |
188 // Member data |
194 private: |
189 private: |
195 |
190 |
196 void CheckSameThreadContext(); |
191 void CheckSameThreadContext(); |
212 // ISCE |
207 // ISCE |
213 TUint8 MapMediaToLinkId( const TUint8 aMedia ); |
208 TUint8 MapMediaToLinkId( const TUint8 aMedia ); |
214 |
209 |
215 enum TISIMedias |
210 enum TISIMedias |
216 { |
211 { |
217 #ifndef NCP_COMMON_BRIDGE_FAMILY |
|
218 EISIMediaSOS = 0x00, |
|
219 #else |
|
220 EISIMediaHostSSI = 0x00, |
212 EISIMediaHostSSI = 0x00, |
221 #endif |
|
222 EISIAmountOfMedias |
213 EISIAmountOfMedias |
223 }; |
214 }; |
224 // ISCE |
215 // ISCE |
225 |
216 |
226 // owned |
217 // owned |
227 // APE <-> CMT connection status ok/nok. |
218 // APE <-> CMT connection status ok/nok. |
228 TIADConnectionStatus iConnectionStatus; |
219 TIADConnectionStatus iConnectionStatus; |
229 #ifndef NCP_COMMON_BRIDGE_FAMILY |
220 #ifdef NCP_COMMON_BRIDGE_FAMILY_PIPE_SUPPORT |
230 DPipeHandler* iPipeHandler; |
221 DPipeHandler* iPipeHandler; |
231 #endif |
222 #endif |
232 DIndicationHandler* iIndicationHandler; |
223 DIndicationHandler* iIndicationHandler; |
233 DQueue* iCommonRxQueue; |
224 DQueue* iCommonRxQueue; |
234 TIADChannel iChannelTable[ EIADSizeOfChannels ]; |
225 TIADChannel iChannelTable[ EIADSizeOfChannels ]; |