mmfenh/enhancedaudioplayerutility/S60AudioSource/inc/S60AudioSource.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Base class definition of the S60 Audio Source
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CS60AUDIOSOURCE_H__
       
    19 #define __CS60AUDIOSOURCE_H__
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 #include <mmf/common/mmfcontroller.h>
       
    24 
       
    25 // CLASS DEFINITIONS
       
    26 
       
    27 /**
       
    28 *  This base class defines the common S60 audio source.
       
    29 *
       
    30 *  @lib S60AudioPlayer.lib
       
    31 *  @since 3.1
       
    32 */
       
    33 class CS60AudioBaseSource: public CBase
       
    34 	{
       
    35 	public: // Constructors and destructor
       
    36 
       
    37 		/**
       
    38         *	Destructor
       
    39         */
       
    40 		IMPORT_C virtual ~CS60AudioBaseSource();
       
    41 
       
    42     public: // New functions
       
    43 
       
    44 		/**
       
    45         * Gets the Size of the Source
       
    46         * @return The Size of the Source
       
    47         * @since 3.1
       
    48         */
       
    49 		virtual TUint GetSize() = 0;
       
    50 
       
    51 		/**
       
    52         * Gets the Mimetype of the Source
       
    53         * @param aMimeType mimetype of the Source.
       
    54         * @since 3.1
       
    55         */
       
    56 		virtual void GetMimeType(TDes8& aMimeType) = 0;
       
    57 
       
    58 		/**
       
    59         * Gets the Position in the Source
       
    60         * @return The Position in the Source
       
    61         * @since 3.1
       
    62         */
       
    63 		virtual TInt64 GetPosition() = 0;
       
    64 
       
    65 		/**
       
    66         * Sets the Position in the Source
       
    67         * @param aPosition position to be set in the Source.
       
    68         * @return One of the Standard Return Error Codes
       
    69         * @since 3.1
       
    70         */
       
    71 		virtual TInt SetPosition(TInt64 aPosition) = 0;
       
    72 
       
    73 	protected:
       
    74 
       
    75 		RMMFController iController;
       
    76 		TUid iControllerUid;
       
    77 		TMMFMessageDestination iSourceHandle;
       
    78 
       
    79 	protected:    // Friend classes
       
    80 
       
    81 		friend class CS60AudioPlayer;
       
    82 
       
    83 
       
    84 	};
       
    85 
       
    86 #endif // __CS60AUDIOSOURCE_H__
       
    87 
       
    88 //  End of File