phoneapp/phoneringingtoneplayer/inc/mphonevideoplayerobserver.h
changeset 78 baacf668fe89
parent 76 cfea66083b62
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPHONEVIDEOPLAYEROBSERVER_H
       
    19 #define MPHONEVIDEOPLAYEROBSERVER_H
       
    20 
       
    21 // Class declaration
       
    22 
       
    23 /**
       
    24 *  Video player observer interface.
       
    25 *
       
    26 *  @lib Phone.app
       
    27 *  @since Series 60 3.1
       
    28 */
       
    29 class MPhoneVideoPlayerObserver  
       
    30     {
       
    31     public:
       
    32         
       
    33         // Enumerates different failure events.
       
    34         //
       
    35         enum TPhoneVideoPlayerErrorEvent
       
    36             {
       
    37             EVideoPlayerInitializingFailure, // Failure during initialization
       
    38             EVideoPlayerPlayingFailure // Failure during playback
       
    39             };
       
    40         
       
    41         /**
       
    42         * This function is called for video player errors.
       
    43         * @param aEvent The error event happend in initializing or playing.
       
    44         * @param aError The error code return by MMF video player. 
       
    45         */
       
    46         virtual void HandleVideoPlayerError( 
       
    47             TPhoneVideoPlayerErrorEvent aEvent,
       
    48             TInt aError ) = 0;
       
    49 
       
    50         /**
       
    51         * This function is called when video player initialization complete
       
    52         */
       
    53         virtual void HandleVideoPlayerInitComplete() = 0;
       
    54 
       
    55         /**
       
    56         * This function is called after the playing completes successfully
       
    57         */
       
    58         virtual void HandleVideoPlayerPlayingComplete() = 0;
       
    59     };
       
    60 
       
    61 #endif      // MPHONEVIDEOPLAYEROBSERVER_H   
       
    62             
       
    63 // End of File