videoplayback/videoplaybackview/tsrc/testmpxvideoviewwrapper/stub/inc/mpxvideoplaybackdisplayhandler.h
changeset 55 4bfa887905cf
parent 50 21fe8338c6bf
child 58 d2b028fd1f7d
equal deleted inserted replaced
50:21fe8338c6bf 55:4bfa887905cf
     1 /*
       
     2 * Copyright (c) 2009 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:   Implementation of video playback display handler
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  7 %
       
    19 
       
    20 
       
    21 #ifndef __CMPXVIDEOPLAYBACKDISPLAYHANDLER_H__
       
    22 #define __CMPXVIDEOPLAYBACKDISPLAYHANDLER_H__
       
    23 
       
    24 // INCLUDES
       
    25 
       
    26 #include <mpxmessage2.h>
       
    27 #include <mmfscalingcustomcommandconstants.h>
       
    28 #include <mpxvideoplaybackdefs.h>
       
    29 #include <mediaclientvideodisplay.h>
       
    30 
       
    31 
       
    32 // 
       
    33 //  CLASS DECLARATION
       
    34 //
       
    35 class MMPXPlaybackUtility;
       
    36 class CMPXVideoViewWrapper;
       
    37 class VideoPlaybackViewFileDetails;
       
    38 
       
    39 /*
       
    40  *  CMPXVideoPlaybackDisplayHandler
       
    41  *
       
    42  */
       
    43 class CMPXVideoPlaybackDisplayHandler : public CBase
       
    44 {
       
    45     public:
       
    46 
       
    47         ~CMPXVideoPlaybackDisplayHandler();
       
    48 
       
    49         static CMPXVideoPlaybackDisplayHandler* NewL( MMPXPlaybackUtility* aPlayUtil,
       
    50                                                       CMPXVideoViewWrapper* aViewWrapper );
       
    51 
       
    52         void CreateDisplayWindowL( RWsSession& aWs,
       
    53                                    CWsScreenDevice& aScreenDevice,
       
    54                                    RWindow& aWin,
       
    55                                    TRect aDisplayRect );
       
    56 
       
    57         void RemoveDisplayWindow();
       
    58 
       
    59         void HandleVideoDisplayMessageL( CMPXMessage* aMessage );
       
    60 
       
    61         TInt SetAspectRatioL( TMPXVideoPlaybackCommand aCmd );
       
    62         
       
    63         TInt SetDefaultAspectRatioL( VideoPlaybackViewFileDetails* aFileDetails, 
       
    64                                      TReal32 aDisplayAspectRatio );
       
    65 
       
    66         void UpdateVideoRectL( TRect aRect, TBool transitionEffect );
       
    67 
       
    68     private:
       
    69 
       
    70         CMPXVideoPlaybackDisplayHandler( MMPXPlaybackUtility* aPlayUtil,
       
    71                                          CMPXVideoViewWrapper* aViewWrapper );
       
    72 
       
    73         void ConstructL();
       
    74 
       
    75     public:
       
    76         MMPXPlaybackUtility*                iPlaybackUtility;
       
    77         CMPXVideoViewWrapper*               iViewWrapper;
       
    78         CMediaClientVideoDisplay*           iVideoDisplay;
       
    79 
       
    80         TRect                               iRect;
       
    81         TInt                                iAspectRatio;
       
    82         TInt                                iCommand;
       
    83 };
       
    84 
       
    85 #endif // __CMPXVIDEOPLAYBACKDISPLAYHANDLER_H__