localconnectivityservice/dun/utils/src/DunUpstream.cpp
changeset 32 51f207bebb06
parent 0 c3e98f10fcf4
child 38 3dcb815346df
equal deleted inserted replaced
31:3b92f7acdc91 32:51f207bebb06
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   497         }
   497         }
   498     FTRACE(FPrint( _L("CDunUpstream::NotifyAtCmdHandlingEnd() complete" )));
   498     FTRACE(FPrint( _L("CDunUpstream::NotifyAtCmdHandlingEnd() complete" )));
   499     }
   499     }
   500 
   500 
   501 // ---------------------------------------------------------------------------
   501 // ---------------------------------------------------------------------------
       
   502 // From class MDunAtCmdStatusReporter
       
   503 // Notifies about editor mode reply
       
   504 // ---------------------------------------------------------------------------
       
   505 //
       
   506 void CDunUpstream::NotifyEditorModeReply( TBool aStart )
       
   507     {
       
   508     FTRACE(FPrint( _L("CDunUpstream::NotifyEditorModeReply()" )));
       
   509     if ( iParseData.iDataMode )
       
   510         {
       
   511         FTRACE(FPrint( _L("CDunUpstream::NotifyEditorModeReply() (not ready) complete" )));
       
   512         return;
       
   513         }
       
   514     // If start of editor mode then just reissue the read request
       
   515     // If continuation then echo and reissue the read request
       
   516     if ( aStart )
       
   517         {
       
   518         IssueRequest();
       
   519         FTRACE(FPrint( _L("CDunUpstream::NotifyEditorModeReply() (start) complete" )));
       
   520         return;
       
   521         }
       
   522     iParseData.iAtCmdHandler->SendEchoCharacter( iBufferPtr, this );
       
   523     FTRACE(FPrint( _L("CDunUpstream::NotifyEditorModeReply() complete" )));
       
   524     }
       
   525 
       
   526 // ---------------------------------------------------------------------------
   502 // From class MDunAtCmdHandler
   527 // From class MDunAtCmdHandler
   503 // Starts URC message handling
   528 // Starts URC message handling
   504 // ---------------------------------------------------------------------------
   529 // ---------------------------------------------------------------------------
   505 //
   530 //
   506 TInt CDunUpstream::StartUrc()
   531 TInt CDunUpstream::StartUrc()
   579     // So here we have to do the block "if ( aStartIndex < 0 )" in function
   604     // So here we have to do the block "if ( aStartIndex < 0 )" in function
   580     // NotifyAtCmdHandlingEnd().
   605     // NotifyAtCmdHandlingEnd().
   581     IssueRequest();
   606     IssueRequest();
   582     FTRACE(FPrint( _L("CDunUpstream::NotifyCommandModeEnd() complete" )));
   607     FTRACE(FPrint( _L("CDunUpstream::NotifyCommandModeEnd() complete" )));
   583     }
   608     }
       
   609 
       
   610 // ---------------------------------------------------------------------------
       
   611 // From class MDunAtCmdEchoer.
       
   612 // Notifies about command mode end
       
   613 // ---------------------------------------------------------------------------
       
   614 //
       
   615 void CDunUpstream::NotifyEchoComplete()
       
   616     {
       
   617     FTRACE(FPrint( _L("CDunUpstream::NotifyEchoComplete()" )));
       
   618     IssueRequest();
       
   619     FTRACE(FPrint( _L("CDunUpstream::NotifyEchoComplete() complete" )));
       
   620     }