phoneapp/phoneuiview/inc/mphonevideoplayer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 16:37:10 +0300
branchRCL_3
changeset 9 91c2fb4b78df
parent 0 5f000ab63145
permissions -rw-r--r--
Revision: 201015 Kit: 201017

/*
* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Abstract video playing interface. 
*
*/

#ifndef M_PHONEVIDEOPLAYER_H
#define M_PHONEVIDEOPLAYER_H

// Forward declarations
class MPhoneVideoPlayerObserver;

/**
 *  Abstract video playing interface.
 *
 *
 *  @lib Phone.exe
 *  @since S60 v3.2
 */
class MPhoneVideoPlayer
    {
public:
    /**  Play modes */
    enum TPlayMode
        {
        EPlayInLoop,
        EPlayOnce,
        EPlayAscending    
        }; 

public:
    /**
    * Plays given video ringing tone.
    *
    * @since S60 S60 v3.2
    * @param aFileName File name.
    * @param aPlayMode Playing mode.
    * @param aVolumeLevel Playing volume, range: 0-10.
    * @param aArbitraryScaling Set ETrue if arbitrary scaling supported.
    * @param aObserver Observer for playback events.
    */
    virtual void PlayVideoRingTone( const TDesC& aFileName,
                                    TPlayMode aPlayMode,
                                    TInt aVolumeLevel,
                                    TBool aArbitraryScaling,
                                    MPhoneVideoPlayerObserver* aObserver ) = 0;
    
    /**
    * Stops ringing.
    *
    * @since S60 S60 v3.2
    */
    virtual void StopVideoRingTone() = 0;
    
    /**
    * Mutes ringing tone playing.
    *
    * @since S60 S60 v3.2
    */    
    virtual void MuteVideoRingTone() = 0;
        
    /**
    * Cancels ringing tone playing.
    *
    * @since S60 S60 v3.2
    */
    virtual void CancelVideoRingTone() = 0;
    };


#endif // M_PHONEVIDEOPLAYER_H