phoneuis/BubbleManager/Inc/BMVideoPlaybackObserver.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 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:  Video playback observer interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_BUBBLEVIDEOPLAYBACKOBSERVER_H
       
    20 #define M_BUBBLEVIDEOPLAYBACKOBSERVER_H
       
    21 
       
    22 
       
    23 /**
       
    24  *  Video playback observer interface
       
    25  *
       
    26  *
       
    27  *  @lib BubbleManager
       
    28  *  @since S60 v3.2
       
    29  */
       
    30 class MBubbleVideoPlaybackObserver
       
    31     {
       
    32 public:
       
    33 
       
    34     /**  Playback events */
       
    35     enum TBubbleVideoPlaybackEvent
       
    36         {
       
    37         EPlayerInitComplete,
       
    38         EPlaying,
       
    39         EPlayingComplete    
       
    40         };
       
    41 
       
    42     /**  Playback error types */        
       
    43     enum TBubbleVideoPlaybackError
       
    44         {
       
    45         EPlayerInitFailure,
       
    46         EPlaybackFailure    
       
    47         };        
       
    48 
       
    49     /**
       
    50      * HandleBubbleVideoPlaybackEvent
       
    51      *
       
    52      * @since S60 v3.2
       
    53      * @param aEvent Playback event.
       
    54      */
       
    55     virtual void HandleBubbleVideoPlaybackEvent( 
       
    56         TBubbleVideoPlaybackEvent aEvent ) = 0;        
       
    57 
       
    58     /**
       
    59      * HandleBubbleVideoPlaybackError
       
    60      *
       
    61      * @since S60 v3.2
       
    62      * @param aErrorType Playback error type.
       
    63      * @param aErrorCode System wide error code.
       
    64      */            
       
    65     virtual void HandleBubbleVideoPlaybackError(
       
    66         TBubbleVideoPlaybackError aErrorType, TInt aErrorCode ) = 0;
       
    67     };
       
    68 
       
    69 #endif // M_BUBBLEVIDEOPLAYBACKOBSERVER_H