bluetoothengine/btmac/inc/btmonocmdhandler/btmcprotdatabuf.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 13:01:44 +0300
changeset 33 837dcc42fd6a
parent 0 f63038272f30
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/


#ifndef BTMCPROTDATABUF_H
#define BTMCPROTDATABUF_H

#include "atcodec.h"

NONSHARABLE_CLASS(TBtmcProtDataBuf)
    {
    public:

	    void Reset();

        /**
        * Extracts the first AT command in buffer.
        * @param aText decriptor where the command will be stored.
        * @return Error code.
        */
	    TInt NextCommand(TDes8& aData);

        /**
        * Appends the given command to buffer.
        * @param aText Text to be appended.
        * @return Error code.
        */
        TInt Append(const TDesC8& aData);

    private:

	    TBuf8<KDefaultCmdBufLength> iBuf;
    };


#endif // BTMCPROTDATABUF_H

// End of File