videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybackcontrol.hrh
changeset 35 3738fe97f027
child 28 c48470be1ba7
equal deleted inserted replaced
34:bbb98528c666 35:3738fe97f027
       
     1 /*
       
     2 * Copyright (c) 2008 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:  header file of CMPXVideoPlaybackControl
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  6 %
       
    19 
       
    20 
       
    21 #ifndef MPXVIDEOPLAYBACKCONTROL_HRH_
       
    22 #define MPXVIDEOPLAYBACKCONTROL_HRH_
       
    23 
       
    24 // DATA TYPES
       
    25 const TInt KMPXVideoPlaybackVolumeMax = 10;
       
    26 
       
    27 enum TMPFXVideoPlaybackControlProperties
       
    28 {
       
    29     EMPXShownWhenInitializing = 0x1,
       
    30     EMPXShownWhenBuffering = 0x2,
       
    31     EMPXShownWhenPlaying =  0x4,
       
    32     EMPXShownWhenPaused = 0x8,
       
    33     EMPXShownWhenSeeking = 0x10,
       
    34     EMPXAllProperties = 0xffffffff
       
    35 };
       
    36 
       
    37 enum TMPXVideoPlaybackControls
       
    38 {
       
    39     EMPXStatusPane,
       
    40     EMPXControlBar,
       
    41 
       
    42     // Only for streaming case
       
    43     // Can handle from NotInitilized state
       
    44     //
       
    45     EMPXBufferingAnimation,
       
    46 
       
    47     //
       
    48     // For details view and audio only view
       
    49     //
       
    50     EMPXFileDetailsWidget,
       
    51 
       
    52     //
       
    53     // For details view
       
    54     //
       
    55     EMPXDetailsViewPlaybackWindow,
       
    56 
       
    57     //
       
    58     //  Bitmaps
       
    59     //
       
    60     EMPXBlackBitmap,
       
    61     EMPXIndicatorBitmap,
       
    62     EMPXRealLogoBitmap,
       
    63 
       
    64     EMPXDownloadPausedIcon,
       
    65 
       
    66     EMPXControlsCount  // has to be last
       
    67 };
       
    68 
       
    69 /** Command ID's. */
       
    70 enum TMPXVideoPlaybackControlCommandIds
       
    71 {
       
    72     EMPXControlCmdPluginInitialized,
       
    73     EMPXControlCmdTvOutConnected,
       
    74     EMPXControlCmdTvOutDisconnected,
       
    75     EMPXControlCmdSetAspectRatio,
       
    76     EMPXControlCmdSetVolume,
       
    77     EMPXControlCmdSetDuration,
       
    78     EMPXControlCmdSetPosition,
       
    79     EMPXControlCmdStateChanged,
       
    80     EMPXControlCmdDownloadUpdated,
       
    81     EMPXControlCmdSetDownloadSize,
       
    82     EMPXControlCmdDownloadComplete,
       
    83     EMPXControlCmdSetDownloadPaused,
       
    84     EMPXControlCmdClearDownloadPaused,
       
    85     EMPXControlCmdHandleBackgroundEvent,
       
    86     EMPXControlCmdHandleForegroundEvent,
       
    87     EMPXControlCmdHandleErrors,
       
    88     EMPXControlCmdShowVolumeControls,
       
    89     EMPXControlCmdSoftKeyPressed,
       
    90     EMPXControlCmdFullScreenViewOpened,
       
    91     EMPXControlCmdDetailsViewOpened,
       
    92     EMPXControlCmdAudionOnlyViewOpened
       
    93 };
       
    94 
       
    95 enum TMPXVideoSeekingType
       
    96 {
       
    97     EMpxVideoSeekingForward,
       
    98     EMpxVideoSeekingBackward,
       
    99     EMpxVideoSeekingStop
       
   100 };
       
   101 
       
   102 enum TMPXVideoControlType
       
   103 {
       
   104     EMpxVideoPlaybackContainer,
       
   105     EMpxVideoPlaybackControl
       
   106 };
       
   107 
       
   108 enum TMPXVideoUserInputType
       
   109 {
       
   110     EMpxVideoKeyboard,
       
   111     EMpxVideoTouch,
       
   112     EMpxVideoMediaKeys,
       
   113     EMpxVideoSpecialHWKeys,
       
   114     EMpxVideoNone
       
   115 };
       
   116 
       
   117 #endif /*MPXVIDEOPLAYBACKCONTROL_HRH_*/