videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/stub/inc/mpxvideoplaybackcontrol.hrh
author hgs
Thu, 01 Apr 2010 23:32:44 +0300
changeset 35 3738fe97f027
child 28 c48470be1ba7
permissions -rw-r--r--
201011

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  header file of CMPXVideoPlaybackControl
*
*/

// Version : %version:  %


#ifndef MPXVIDEOPLAYBACKCONTROL_HRH_
#define MPXVIDEOPLAYBACKCONTROL_HRH_

// DATA TYPES
const TInt KMPXVideoPlaybackVolumeMax = 10;

enum TMPFXVideoPlaybackControlProperties
{
    EMPXShownWhenInitializing = 0x1,
    EMPXShownWhenBuffering = 0x2,
    EMPXShownWhenPlaying =  0x4,
    EMPXShownWhenPaused = 0x8,
    EMPXShownWhenSeeking = 0x10,
    EMPXAllProperties = 0xffffffff
};

enum TMPXVideoPlaybackControls
{
    EMPXStatusPane,
    EMPXControlBar,

    // Only for streaming case
    // Can handle from NotInitilized state
    //
    EMPXBufferingAnimation,

    //
    // For details view and audio only view
    //
    EMPXFileDetailsWidget,

    //
    // For details view
    //
    EMPXDetailsViewPlaybackWindow,

    //
    //  Bitmaps
    //
    EMPXBlackBitmap,
    EMPXIndicatorBitmap,
    EMPXRealLogoBitmap,

    EMPXDownloadPausedIcon,

    EMPXControlsCount  // has to be last
};

/** Command ID's. */
enum TMPXVideoPlaybackControlCommandIds
{
    EMPXControlCmdPluginInitialized,
    EMPXControlCmdTvOutConnected,
    EMPXControlCmdTvOutDisconnected,
    EMPXControlCmdSetAspectRatio,
    EMPXControlCmdSetVolume,
    EMPXControlCmdSetDuration,
    EMPXControlCmdSetPosition,
    EMPXControlCmdStateChanged,
    EMPXControlCmdDownloadUpdated,
    EMPXControlCmdSetDownloadSize,
    EMPXControlCmdDownloadComplete,
    EMPXControlCmdSetDownloadPaused,
    EMPXControlCmdClearDownloadPaused,
    EMPXControlCmdHandleBackgroundEvent,
    EMPXControlCmdHandleForegroundEvent,
    EMPXControlCmdHandleErrors,
    EMPXControlCmdShowVolumeControls,
    EMPXControlCmdSoftKeyPressed,
    EMPXControlCmdFullScreenViewOpened,
    EMPXControlCmdDetailsViewOpened,
    EMPXControlCmdAudionOnlyViewOpened
};

enum TMPXVideoSeekingType
{
    EMpxVideoSeekingForward,
    EMpxVideoSeekingBackward,
    EMpxVideoSeekingStop
};

enum TMPXVideoControlType
{
    EMpxVideoPlaybackContainer,
    EMpxVideoPlaybackControl
};

enum TMPXVideoUserInputType
{
    EMpxVideoKeyboard,
    EMpxVideoTouch,
    EMpxVideoMediaKeys,
    EMpxVideoSpecialHWKeys,
    EMpxVideoNone
};

#endif /*MPXVIDEOPLAYBACKCONTROL_HRH_*/