equal
deleted
inserted
replaced
76 friend class CL2CapSAPSignalHandler; |
76 friend class CL2CapSAPSignalHandler; |
77 |
77 |
78 TL2CAPSigState(const CL2CAPSignalStateFactory& aFactory); |
78 TL2CAPSigState(const CL2CAPSignalStateFactory& aFactory); |
79 |
79 |
80 // Events from the SAP |
80 // Events from the SAP |
81 virtual void CloseChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
81 virtual void CloseChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
82 virtual void OpenChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
82 virtual void OpenChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
83 virtual void ConnectRequestReceived(CL2CapSAPSignalHandler& aSignalHandler) const; |
83 virtual void ConnectRequestReceived(CL2CapSAPSignalHandler& aSignalHandler) const; |
84 virtual void ConfigureChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
84 virtual void ConfigureChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
85 virtual TInt UpdateChannelConfig(CL2CapSAPSignalHandler& aSignalHandler, const TL2CapConfig& aAPIConfig) const; |
85 virtual TInt UpdateChannelConfig(CL2CapSAPSignalHandler& aSignalHandler, const TL2CapConfig& aAPIConfig) const; |
86 |
86 |
87 virtual TInt GetNegotiatedChannelMode(const CL2CapSAPSignalHandler& aSignalHandler, TL2CapChannelMode& aMode) const; |
87 virtual TInt GetNegotiatedChannelMode(const CL2CapSAPSignalHandler& aSignalHandler, TL2CapChannelMode& aMode) const; |
88 |
88 |
89 // L2CAP commands received from the peer. |
89 // L2CAP commands received from the peer. |
140 { |
140 { |
141 public: |
141 public: |
142 TL2CAPSigStateClosed(const CL2CAPSignalStateFactory& aFactory); |
142 TL2CAPSigStateClosed(const CL2CAPSignalStateFactory& aFactory); |
143 |
143 |
144 // Events from the SAP |
144 // Events from the SAP |
145 void OpenChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
145 void OpenChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
146 void ConnectRequestReceived(CL2CapSAPSignalHandler& aSignalHandler) const; |
146 void ConnectRequestReceived(CL2CapSAPSignalHandler& aSignalHandler) const; |
147 void CloseChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
147 void CloseChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
148 |
148 |
149 void ConfigRequest(CL2CapSAPSignalHandler& aSignalHandler, |
149 void ConfigRequest(CL2CapSAPSignalHandler& aSignalHandler, |
150 HConfigureRequest* aConfigRequest) const; |
150 HConfigureRequest* aConfigRequest) const; |
151 |
151 |
152 // Change of state state events |
152 // Change of state state events |
163 { |
163 { |
164 public: |
164 public: |
165 TL2CAPSigStateWaitConnectRsp(const CL2CAPSignalStateFactory& aFactory); |
165 TL2CAPSigStateWaitConnectRsp(const CL2CAPSignalStateFactory& aFactory); |
166 |
166 |
167 // Events from the SAP |
167 // Events from the SAP |
168 void CloseChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
168 void CloseChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
169 |
169 |
170 // L2CAP commands received from the peer. |
170 // L2CAP commands received from the peer. |
171 void ConnectResponse(CL2CapSAPSignalHandler& aSignalHandler, |
171 void ConnectResponse(CL2CapSAPSignalHandler& aSignalHandler, |
172 HConnectionResponse* aConnectionResponse) const; |
172 HConnectionResponse* aConnectionResponse) const; |
173 void ConfigRequest(CL2CapSAPSignalHandler& aSignalHandler, |
173 void ConfigRequest(CL2CapSAPSignalHandler& aSignalHandler, |
181 { |
181 { |
182 public: |
182 public: |
183 TL2CAPSigStateWaitConnect(const CL2CAPSignalStateFactory& aFactory); |
183 TL2CAPSigStateWaitConnect(const CL2CAPSignalStateFactory& aFactory); |
184 |
184 |
185 // Events from the SAP |
185 // Events from the SAP |
186 void OpenChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
186 void OpenChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
187 void CloseChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
187 void CloseChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
188 |
188 |
189 // L2CAP commands received from the peer. |
189 // L2CAP commands received from the peer. |
190 void DisconnectRequest(CL2CapSAPSignalHandler& aSignalHandler, TUint8 aId) const; |
190 void DisconnectRequest(CL2CapSAPSignalHandler& aSignalHandler, TUint8 aId) const; |
191 |
191 |
192 // Change of state state events |
192 // Change of state state events |
193 void PendingCommandsDrained(CL2CapSAPSignalHandler& aSignalHandler) const; |
193 void PendingCommandsDrained(CL2CapSAPSignalHandler& aSignalHandler) const; |
194 |
194 |
|
195 void Enter(CL2CapSAPSignalHandler& aSignalHandler) const; |
195 }; |
196 }; |
196 |
197 |
197 NONSHARABLE_CLASS(TL2CAPSigStateConfigBase) : public TL2CAPSigState |
198 NONSHARABLE_CLASS(TL2CAPSigStateConfigBase) : public TL2CAPSigState |
198 /* |
199 /* |
199 This is the base class for the config states. It will NEVER be instantiated itself. |
200 This is the base class for the config states. It will NEVER be instantiated itself. |
210 void Error(CL2CapSAPSignalHandler& aSignalHandler, |
211 void Error(CL2CapSAPSignalHandler& aSignalHandler, |
211 TInt aErrorCode, |
212 TInt aErrorCode, |
212 MSocketNotify::TOperationBitmasks aErrorAction) const; |
213 MSocketNotify::TOperationBitmasks aErrorAction) const; |
213 |
214 |
214 // Events from the SAP |
215 // Events from the SAP |
215 void CloseChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
216 void CloseChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
216 TInt UpdateChannelConfig(CL2CapSAPSignalHandler& aSignalHandler, const TL2CapConfig& aAPIConfig) const; |
217 TInt UpdateChannelConfig(CL2CapSAPSignalHandler& aSignalHandler, const TL2CapConfig& aAPIConfig) const; |
217 |
218 |
218 // Timer Events |
219 // Timer Events |
219 void ConfigurationTimerExpiry(CL2CapSAPSignalHandler& aSignalHandler) const; |
220 void ConfigurationTimerExpiry(CL2CapSAPSignalHandler& aSignalHandler) const; |
220 |
221 |
236 { |
237 { |
237 public: |
238 public: |
238 TL2CAPSigStateWaitConfig(const CL2CAPSignalStateFactory& aFactory); |
239 TL2CAPSigStateWaitConfig(const CL2CAPSignalStateFactory& aFactory); |
239 |
240 |
240 // Events from the SAP |
241 // Events from the SAP |
241 void ConfigureChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
242 void ConfigureChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
242 |
243 |
243 // L2CAP commands received from the peer. |
244 // L2CAP commands received from the peer. |
244 void ConfigRequest(CL2CapSAPSignalHandler& aSignalHandler, |
245 void ConfigRequest(CL2CapSAPSignalHandler& aSignalHandler, |
245 HConfigureRequest* aConfigRequest) const; |
246 HConfigureRequest* aConfigRequest) const; |
246 |
247 |
257 { |
258 { |
258 public: |
259 public: |
259 TL2CAPSigStateWaitSendConfig(const CL2CAPSignalStateFactory& aFactory); |
260 TL2CAPSigStateWaitSendConfig(const CL2CAPSignalStateFactory& aFactory); |
260 |
261 |
261 // Events from the SAP |
262 // Events from the SAP |
262 void ConfigureChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
263 void ConfigureChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
263 }; |
264 }; |
264 |
265 |
265 NONSHARABLE_CLASS(TL2CAPSigStateWaitConfigReqRsp) : public TL2CAPSigStateConfigBase |
266 NONSHARABLE_CLASS(TL2CAPSigStateWaitConfigReqRsp) : public TL2CAPSigStateConfigBase |
266 /* |
267 /* |
267 Outgoing config request sent. |
268 Outgoing config request sent. |
315 { |
316 { |
316 public: |
317 public: |
317 TL2CAPSigStateOpen(const CL2CAPSignalStateFactory& aFactory); |
318 TL2CAPSigStateOpen(const CL2CAPSignalStateFactory& aFactory); |
318 |
319 |
319 // Events from the SAP |
320 // Events from the SAP |
320 void CloseChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
321 void CloseChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
321 |
322 |
322 // L2CAP commands received from the peer. |
323 // L2CAP commands received from the peer. |
323 void DisconnectRequest(CL2CapSAPSignalHandler& aSignalHandler, TUint8 aId) const; |
324 void DisconnectRequest(CL2CapSAPSignalHandler& aSignalHandler, TUint8 aId) const; |
324 void ConfigRequest(CL2CapSAPSignalHandler& aSignalHandler,HConfigureRequest* aConfigRequest) const; |
325 void ConfigRequest(CL2CapSAPSignalHandler& aSignalHandler,HConfigureRequest* aConfigRequest) const; |
325 |
326 |
341 { |
342 { |
342 public: |
343 public: |
343 TL2CAPSigStateWaitDisconnect(const CL2CAPSignalStateFactory& aFactory); |
344 TL2CAPSigStateWaitDisconnect(const CL2CAPSignalStateFactory& aFactory); |
344 |
345 |
345 // Events from the SAP |
346 // Events from the SAP |
346 void CloseChannelRequest(CL2CapSAPSignalHandler& aSignalHandler) const; |
347 void CloseChannel(CL2CapSAPSignalHandler& aSignalHandler) const; |
347 TInt UpdateChannelConfig(CL2CapSAPSignalHandler& aSignalHandler, const TL2CapConfig& aAPIConfig) const; |
348 TInt UpdateChannelConfig(CL2CapSAPSignalHandler& aSignalHandler, const TL2CapConfig& aAPIConfig) const; |
348 |
349 |
349 // State changes from the Mux |
350 // State changes from the Mux |
350 void DisconnectRequest(CL2CapSAPSignalHandler& aSignalHandler, TUint8 aId) const; |
351 void DisconnectRequest(CL2CapSAPSignalHandler& aSignalHandler, TUint8 aId) const; |
351 void DisconnectResponse(CL2CapSAPSignalHandler& aSignalHandler) const; |
352 void DisconnectResponse(CL2CapSAPSignalHandler& aSignalHandler) const; |
358 void ConfigRequest(CL2CapSAPSignalHandler& aSignalHandler, |
359 void ConfigRequest(CL2CapSAPSignalHandler& aSignalHandler, |
359 HConfigureRequest* aConfigRequest) const; |
360 HConfigureRequest* aConfigRequest) const; |
360 |
361 |
361 void ConfigResponse(CL2CapSAPSignalHandler& /*aSignalHandler*/, |
362 void ConfigResponse(CL2CapSAPSignalHandler& /*aSignalHandler*/, |
362 HConfigureResponse* /*aConfigResponse*/) const; |
363 HConfigureResponse* /*aConfigResponse*/) const; |
363 void ConfigureChannelRequest(CL2CapSAPSignalHandler& /*aSignalHandler*/) const; |
364 void ConfigureChannel(CL2CapSAPSignalHandler& /*aSignalHandler*/) const; |
364 }; |
365 }; |
365 |
366 |
366 #endif |
367 #endif |