internetradio2.0/streamsourceinc/irstationdataobserver.h
changeset 0 09774dfdd46b
equal deleted inserted replaced
-1:000000000000 0:09774dfdd46b
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  Implementing class will receive meta/audiodata events.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IRSTATIONDATAOBSERVER_H
       
    20 #define IRSTATIONDATAOBSERVER_H
       
    21 
       
    22 class CIRMetaData;
       
    23 
       
    24 /**
       
    25  * Implementation of this interface will receive the Metadata (and someday audio data)
       
    26  * and audio data related events.
       
    27  */
       
    28 class MIRStationDataObserver
       
    29 	{
       
    30 public: 
       
    31     /**
       
    32 	 * TIRAudioEvent.
       
    33 	 */ 
       
    34 	enum TIRAudioEvent
       
    35 		{
       
    36 		EBufferFilled,
       
    37 		EOpenComplete,
       
    38         EBufferPercentage		
       
    39 		};    
       
    40 		
       
    41 public:
       
    42     /**
       
    43      * New metadata is received.
       
    44      *
       
    45      * @param aMetaData Received metadata.
       
    46      */
       
    47     virtual void MetadataReceived( const CIRMetaData& aMetaData ) = 0;
       
    48 
       
    49 	/**
       
    50 	 * Event related to that data has been received on the socket and read into a buffer.
       
    51 	 * This should be replaced by simple method providing the received audio data.	 
       
    52 	 */
       
    53     virtual void AudioDataEvent( const TInt aResponseCode, TInt aValue ) = 0;
       
    54 	};
       
    55 
       
    56 #endif // IRSTATIONDATAOBSERVER_H
       
    57