diff -r 000000000000 -r bf1d17376201 srsf/devasr/src/devasrutil.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/srsf/devasr/src/devasrutil.h Thu Dec 17 08:46:30 2009 +0200 @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2004 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: This file contains definitions of utility classes used internally +* by DevASR. +* +*/ + + +#ifndef CDEVASRUTIL_H +#define CDEVASRUTIL_H + +// INCLUDES +#include + +// CLASS DECLARATION + +/** +* Class to encapsulate a queue item. +* +* @lib DevASR.lib +* @since 2.0 +*/ +class CQueItem : public CBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CQueItem* NewL( TUint8* aBuf, TInt aLength ); + + /** + * Destructor. + */ + virtual ~CQueItem(); + + private: + + /** + * C++ default constructor. + */ + CQueItem(); + + /** + * Construct a queue item object and initialize it with. + * + * @param "TUint8* aBufBuffer" Containing utterance data, this class + * gains owenership. + * @param "TInt aLength" Length of buffer + * @param "TInt aMaxLength" Maximum length of buffer + */ + void ConstructL( TUint8* aBuf, TInt aLength ); + + public: // Data + + // Next item + TSglQueLink* iLink; + + // Descriptor of data + TPtrC8 iDataBlock; + + // Final block of data indicator + TBool iFinalBlock; + + // Direct pointer to data buffer + TUint8* iBuf; + }; + +#endif // CDEVASRAPI_H + +// End of File