mmfenh/enhancedaudioplayerutility/AudioPlayer/inc/MS60AudioPlayerObserver.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:  This file contains definitions of the queue item class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MS60AUDIOPLAYEROBSERVER_H__
       
    20 #define __MS60AUDIOPLAYEROBSERVER_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 
       
    26 enum TPlayerState
       
    27 	{
       
    28 	EPlayerIdle,
       
    29 	EPlayerPlaying,
       
    30 	EPlayerPaused,
       
    31 	EPlayerStopped,
       
    32 	EPlayerFastForwarding,
       
    33 	EPlayerRewinding
       
    34 	};
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  This is the S60 Audio Player observer class.
       
    40 *  @since 3.1
       
    41 */
       
    42 class MS60AudioPlayerObserver
       
    43 	{
       
    44 	public:
       
    45         /**
       
    46         * Callback for the App that AddSource is complete
       
    47         * @since Series 60 3.1
       
    48         * @param aError One of the Standard Error Codes
       
    49         */
       
    50 		virtual void AddSourceComplete(TInt aError) = 0;
       
    51 
       
    52         /**
       
    53         * Callback for the App that the Player State Changed
       
    54         * @since Series 60 3.1
       
    55         * @param aState Resulting State after the change
       
    56         * @param aError One of the Standard Error Codes
       
    57         */
       
    58 		virtual void StateChanged(TPlayerState aState, TInt aError) = 0;
       
    59 
       
    60         /**
       
    61         * Used to Indiacate the FastForward Support change
       
    62         * @since Series 60 3.1
       
    63         */
       
    64 		virtual void FastForwardSupportChanged() = 0;
       
    65 
       
    66         /**
       
    67         * Used to Indiacate the Rewind Support change
       
    68         * @since Series 60 3.1
       
    69         */
       
    70 		virtual void RewindSupportChanged() = 0;
       
    71 
       
    72         /**
       
    73         * Callback for the App that the Duration changed
       
    74         * @since Series 60 3.1
       
    75         * @param aDuration The New Duration After the Change
       
    76         */
       
    77 		virtual void DurationChanged(const TTimeIntervalMicroSeconds& aDuration) = 0;
       
    78 	};
       
    79 
       
    80 #endif // __MS60AUDIOPLAYEROBSERVER_H__
       
    81 
       
    82 //  End of File