srsf/devasr/src/devasrutil.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2004 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:  This file contains definitions of utility classes used internally
       
    15 *               by DevASR.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CDEVASRUTIL_H
       
    21 #define CDEVASRUTIL_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Class to encapsulate a queue item.
       
    30 *
       
    31 *  @lib DevASR.lib
       
    32 *  @since 2.0
       
    33 */
       
    34 class CQueItem : public CBase
       
    35     {
       
    36     public: // Constructors and destructor
       
    37 
       
    38         /**
       
    39         * Two-phased constructor.
       
    40         */
       
    41         static CQueItem* NewL( TUint8* aBuf, TInt aLength );
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~CQueItem();
       
    47 
       
    48     private:
       
    49 
       
    50         /**
       
    51         * C++ default constructor.
       
    52         */
       
    53         CQueItem();
       
    54 
       
    55         /**
       
    56         * Construct a queue item object and initialize it with.
       
    57         *
       
    58         * @param "TUint8* aBufBuffer" Containing utterance data, this class 
       
    59         *        gains owenership.
       
    60         * @param "TInt aLength" Length of buffer
       
    61         * @param "TInt aMaxLength" Maximum length of buffer
       
    62         */
       
    63         void ConstructL( TUint8* aBuf, TInt aLength );
       
    64 
       
    65     public: // Data
       
    66 
       
    67 		// Next item
       
    68         TSglQueLink* iLink;
       
    69 
       
    70         // Descriptor of data
       
    71 		TPtrC8 iDataBlock;
       
    72 
       
    73 		// Final block of data indicator
       
    74 		TBool iFinalBlock;
       
    75 
       
    76         // Direct pointer to data buffer
       
    77         TUint8* iBuf;
       
    78     };
       
    79 
       
    80 #endif // CDEVASRAPI_H
       
    81 
       
    82 // End of File