mmfenh/enhancedaudioplayerutility/AudioStreaming/AudioClientStreamSource/inc/S60ClientAudioBuffer.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     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: Enhanced Audio Player Utiliy
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCLIENTAUDIOBUFFER_H
       
    21 #define CCLIENTAUDIOBUFFER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 
       
    30 class CClientAudioBuffer : public CBase
       
    31     {
       
    32     public: // Constructors and destructor
       
    33 
       
    34         /**
       
    35         * Two-phased constructor.
       
    36         */
       
    37         IMPORT_C static CClientAudioBuffer* NewL(TInt aBufferSize);
       
    38 
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42         virtual ~CClientAudioBuffer();
       
    43 
       
    44         /**
       
    45         * Get the Pointer to the Buffer associated with the CClientAudioBuffer.
       
    46         * @since Series 60 3.1
       
    47         * @return Pointer to the Buffer Descriptor
       
    48         */
       
    49 		IMPORT_C TPtr8& GetBufferPtr();
       
    50 
       
    51         /**
       
    52         * Gets the Last Buffer Status associated with the Buffer
       
    53         * @since Series 60 3.1
       
    54         * @return return the Last Buffer Status of the Buffer
       
    55         */
       
    56 		IMPORT_C TBool IsLastBuffer();
       
    57 
       
    58         /**
       
    59         * Sets the Last Buffer status associated with the Client Buffer
       
    60         * @since Series 60 3.1
       
    61         * @param aStatus status of the Buffer
       
    62         */
       
    63 		IMPORT_C void SetLastBuffer(TBool aStatus);
       
    64     private:
       
    65 
       
    66         /**
       
    67         * C++ default constructor.
       
    68         */
       
    69         CClientAudioBuffer();
       
    70 
       
    71         /**
       
    72         * By default Symbian 2nd phase constructor is private.
       
    73         */
       
    74         void ConstructL(TInt aBufferSize);
       
    75 
       
    76     private:
       
    77 
       
    78 		HBufC8* iAudioBuffer;
       
    79 		TPtr8 iAudioBufferDes;
       
    80 		TBool iLastBuffer;
       
    81 	};
       
    82 
       
    83 #endif 		// CCLIENTAUDIOBUFFER_H
       
    84 
       
    85 //  End of File