localconnectivityservice/dun/atext/inc/DunAtCmdPusher.h
changeset 32 51f207bebb06
parent 0 c3e98f10fcf4
child 38 3dcb815346df
equal deleted inserted replaced
31:3b92f7acdc91 32:51f207bebb06
     1 /*
     1 /*
     2 * Copyright (c) 2008 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".
    61      * @since S60 5.0
    61      * @since S60 5.0
    62      * @return ETrue if next command exists, EFalse otherwise
    62      * @return ETrue if next command exists, EFalse otherwise
    63      */
    63      */
    64     virtual TBool NotifyNextCommandPeekRequest() = 0;
    64     virtual TBool NotifyNextCommandPeekRequest() = 0;
    65 
    65 
       
    66     /**
       
    67      * Notifies about editor mode reply
       
    68      *
       
    69      * @since TB9.2
       
    70      * @return Symbian error code on error, KErrNone otherwise
       
    71      */
       
    72     virtual TInt NotifyEditorModeReply() = 0;
       
    73 
    66     };
    74     };
    67 
    75 
    68 /**
    76 /**
    69  *  Class for AT command URC handler
    77  *  Class for AT command URC handler
    70  *
    78  *
   118 
   126 
   119     /**
   127     /**
   120      * Starts AT command handling
   128      * Starts AT command handling
   121      *
   129      *
   122      * @since S60 5.0
   130      * @since S60 5.0
   123      * @param aCommand AT command to handle
   131      * @param aCommand AT command or editor mode input to handle
   124      * @return Symbian error code on error, KErrNone otherwise
   132      * @param aNormalMode ETrue if request issue for normal mode
   125      */
   133      * @return Symbian error code on error, KErrNone otherwise
   126     TInt IssueRequest( TDesC8& aCommand );
   134      */
       
   135     TInt IssueRequest( TDesC8& aCommand, TBool aNormalMode=ETrue );
   127 
   136 
   128     /**
   137     /**
   129      * Stops AT command handling
   138      * Stops AT command handling
   130      *
   139      *
   131      * @since S60 5.0
   140      * @since S60 5.0
   148      * @since S60 5.0
   157      * @since S60 5.0
   149      * @param aPushLast ETrue to push last reply, EFalse otherwise
   158      * @param aPushLast ETrue to push last reply, EFalse otherwise
   150      * @return None
   159      * @return None
   151      */
   160      */
   152     void SetEndOfCmdLine();
   161     void SetEndOfCmdLine();
       
   162 
       
   163     /**
       
   164      * Gets the editor mode status
       
   165      *
       
   166      * @since TB9.2
       
   167      * @return ETrue if in editor mode, EFalse otherwise
       
   168      */
       
   169     TBool EditorMode();
   153 
   170 
   154 private:
   171 private:
   155 
   172 
   156     CDunAtCmdPusher( RATExt* aAtCmdExt,
   173     CDunAtCmdPusher( RATExt* aAtCmdExt,
   157                      MDunAtCmdPusher* aCallback,
   174                      MDunAtCmdPusher* aCallback,
   195      * @return None
   212      * @return None
   196      */
   213      */
   197     void SendReplyData( TBool aRecvBuffer=ETrue );
   214     void SendReplyData( TBool aRecvBuffer=ETrue );
   198 
   215 
   199     /**
   216     /**
       
   217      * Manages change in reply type to EReplyTypeOther
       
   218      *
       
   219      * @since TB9.2
       
   220      * @return None
       
   221      */
       
   222     void ManageReplyTypeChangeToOther();
       
   223 
       
   224     /**
       
   225      * Manages change in reply type to EReplyTypeOk
       
   226      *
       
   227      * @since TB9.2
       
   228      * @return None
       
   229      */
       
   230     void ManageReplyTypeChangeToOk();
       
   231 
       
   232     /**
       
   233      * Manages change in reply type to EReplyTypeError
       
   234      *
       
   235      * @since TB9.2
       
   236      * @return None
       
   237      */
       
   238     void ManageReplyTypeChangeToError();
       
   239 
       
   240     /**
       
   241      * Manages change in reply type to EReplyTypeEditor
       
   242      *
       
   243      * @since TB9.2
       
   244      * @return None
       
   245      */
       
   246     void ManageReplyTypeChangeToEditor();
       
   247 
       
   248     /**
   200      * Manages change in reply type
   249      * Manages change in reply type
   201      *
   250      *
   202      * @since S60 5.0
   251      * @since S60 5.0
   203      * @return None
   252      * @return None
   204      */
   253      */
   311     /**
   360     /**
   312      * Flag indicating if stop needed after the next reply
   361      * Flag indicating if stop needed after the next reply
   313      */
   362      */
   314     TBool iStop;
   363     TBool iStop;
   315 
   364 
       
   365     /**
       
   366      * Flag indicating if in editor mode
       
   367      */
       
   368     TBool iEditorMode;
       
   369 
   316     };
   370     };
   317 
   371 
   318 #endif  // C_CDUNATCMDPUSHER_H
   372 #endif  // C_CDUNATCMDPUSHER_H