videoplayback/hbvideoplaybackview/tsrc/testmpxvideoviewwrapper/stub/inc/mpxvideoplaybackcontrol.hrh
changeset 39 f6d44a0cd476
equal deleted inserted replaced
38:ff53afa8ad05 39:f6d44a0cd476
       
     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:  1 %
       
    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     EMPXIndicatorBitmap,
       
    61     EMPXRealLogoBitmap,
       
    62 
       
    63     EMPXDownloadPausedIcon,
       
    64 
       
    65     EMPXControlsCount  // has to be last
       
    66 };
       
    67 
       
    68 /** Command ID's. */
       
    69 enum TMPXVideoPlaybackControlCommandIds
       
    70 {
       
    71     EMPXControlCmdPluginInitialized,
       
    72     EMPXControlCmdTvOutConnected,
       
    73     EMPXControlCmdTvOutDisconnected,
       
    74     EMPXControlCmdSetAspectRatio,
       
    75     EMPXControlCmdSetVolume,
       
    76     EMPXControlCmdSetDuration,
       
    77     EMPXControlCmdSetPosition,
       
    78     EMPXControlCmdStateChanged,
       
    79     EMPXControlCmdDownloadUpdated,
       
    80     EMPXControlCmdSetDownloadSize,
       
    81     EMPXControlCmdDownloadComplete,
       
    82     EMPXControlCmdSetDownloadPaused,
       
    83     EMPXControlCmdClearDownloadPaused,
       
    84     EMPXControlCmdHandleBackgroundEvent,
       
    85     EMPXControlCmdHandleForegroundEvent,
       
    86     EMPXControlCmdHandleErrors,
       
    87     EMPXControlCmdShowVolumeControls,
       
    88     EMPXControlCmdSoftKeyPressed,
       
    89     EMPXControlCmdFullScreenViewOpened,
       
    90     EMPXControlCmdDetailsViewOpened,
       
    91     EMPXControlCmdAudionOnlyViewOpened,
       
    92     EMPXControlCmdRemoveRNLogo
       
    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_*/