mpx/playbackframework/playbackengine/inc/mpxplaybackcommandbufferobserver.h
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Command buffer bserver
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MMPXPLAYBAKCMDBUFFEROBSERVER_H
       
    20 #define MMPXPLAYBAKCMDBUFFEROBSERVER_H
       
    21 
       
    22 #include <mpxplaybackframeworkdefs.h>
       
    23 
       
    24 
       
    25 enum TMPXPlaybackSkipEvent
       
    26     {
       
    27     EPbsSkipEventEnd,
       
    28     EPbsSkipEventNext,
       
    29     EPbsSkipEventPrevious
       
    30     };
       
    31 
       
    32 /**
       
    33 *  Media key event
       
    34 */
       
    35 NONSHARABLE_CLASS(TMPXPlaybackCmdInfo)
       
    36     {
       
    37 public:
       
    38     TInt iTrackOffset;
       
    39     TMPXPlaybackState iState;
       
    40     TInt iPos;
       
    41     TInt iNavKeyBuffered;
       
    42     };
       
    43 
       
    44 
       
    45 /**
       
    46 *  Media key observer
       
    47 */
       
    48 NONSHARABLE_CLASS(MMPXPlaybackCmdBufferObserver)
       
    49     {
       
    50 public:
       
    51 
       
    52     /**
       
    53     *  Handle command from buffering
       
    54     *
       
    55     *  @param aEvent comand info
       
    56     */
       
    57     virtual void HandleCmdBufferEventL(const TMPXPlaybackCmdInfo& aEvent)=0;
       
    58 
       
    59     /**
       
    60     * Handle command skip event from key buffering
       
    61     *
       
    62     * @param aSkipEvent Skip event
       
    63     */
       
    64     virtual void HandleCmdBufferSkipEventL(const TMPXPlaybackSkipEvent aSkipEvent)=0;
       
    65     };
       
    66 
       
    67 
       
    68 #endif // MMPXPLAYBAKCMDBUFFEROBSERVER_H