116 if ( iDownstream->IsDataInQueue(&iRecvBuffer) ) |
116 if ( iDownstream->IsDataInQueue(&iRecvBuffer) ) |
117 { |
117 { |
118 FTRACE(FPrint( _L("CDunAtCmdPusher::IssueRequest() (in queue!) complete") )); |
118 FTRACE(FPrint( _L("CDunAtCmdPusher::IssueRequest() (in queue!) complete") )); |
119 return KErrGeneral; |
119 return KErrGeneral; |
120 } |
120 } |
121 iStatus = KRequestPending; |
|
122 iAtPushState = EDunStateAtCmdPushing; |
121 iAtPushState = EDunStateAtCmdPushing; |
123 iAtCmdExt->HandleCommand( iStatus, |
122 iAtCmdExt->HandleCommand( iStatus, |
124 aInput, |
123 aInput, |
125 iRecvBuffer, |
124 iRecvBuffer, |
126 iReplyLeftPckg, |
125 iReplyLeftPckg, |
132 |
131 |
133 // --------------------------------------------------------------------------- |
132 // --------------------------------------------------------------------------- |
134 // Stops AT command handling |
133 // Stops AT command handling |
135 // --------------------------------------------------------------------------- |
134 // --------------------------------------------------------------------------- |
136 // |
135 // |
137 TInt CDunAtCmdPusher::Stop() |
136 void CDunAtCmdPusher::Stop() |
138 { |
137 { |
139 FTRACE(FPrint( _L("CDunAtCmdPusher::Stop()") )); |
138 FTRACE(FPrint( _L("CDunAtCmdPusher::Stop()") )); |
140 SetEndOfCmdLine(); |
139 SetEndOfCmdLine(); |
141 if ( iAtPushState != EDunStateAtCmdPushing ) |
|
142 { |
|
143 FTRACE(FPrint( _L("CDunAtCmdHandler::Stop() (not ready) complete" ))); |
|
144 return KErrNotReady; |
|
145 } |
|
146 // As the EDunStateAtCmdHandling can be set even when the actual request |
|
147 // has completed (when replying with NotifyDataPushComplete() and setting |
|
148 // idle eventually), cancel the actual operation in DoCancel() |
|
149 Cancel(); |
140 Cancel(); |
150 iAtPushState = EDunStateIdle; |
141 iAtPushState = EDunStateIdle; |
151 FTRACE(FPrint( _L("CDunAtCmdPusher::Stop() complete") )); |
142 FTRACE(FPrint( _L("CDunAtCmdPusher::Stop() complete") )); |
152 return KErrNone; |
|
153 } |
143 } |
154 |
144 |
155 // --------------------------------------------------------------------------- |
145 // --------------------------------------------------------------------------- |
156 // Manages request to abort command handling |
146 // Manages request to abort command handling |
157 // --------------------------------------------------------------------------- |
147 // --------------------------------------------------------------------------- |