bluetoothengine/btmac/inc/btmonocmdhandler/btmcprotdatabuf.h
changeset 0 f63038272f30
child 21 53b7818cd282
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTMCPROTDATABUF_H
       
    20 #define BTMCPROTDATABUF_H
       
    21 
       
    22 #include "atcodec.h"
       
    23 
       
    24 NONSHARABLE_CLASS(TBtmcProtDataBuf)
       
    25     {
       
    26     public:
       
    27 
       
    28 	    void Reset();
       
    29 
       
    30         /**
       
    31         * Extracts the first AT command in buffer.
       
    32         * @param aText decriptor where the command will be stored.
       
    33         * @return Error code.
       
    34         */
       
    35 	    TInt NextCommand(TDes8& aData);
       
    36 
       
    37         /**
       
    38         * Appends the given command to buffer.
       
    39         * @param aText Text to be appended.
       
    40         * @return Error code.
       
    41         */
       
    42         TInt Append(const TDesC8& aData);
       
    43 
       
    44     private:
       
    45 
       
    46 	    TBuf8<KMaxATSize> iBuf;
       
    47     };
       
    48 
       
    49 
       
    50 #endif // BTMCPROTDATABUF_H
       
    51 
       
    52 // End of File
       
    53