mmsharing/mmshengine/inc/musengvideoplayerbase.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MUSHENGVIDEOPLAYERBASE_H
       
    20 #define MUSHENGVIDEOPLAYERBASE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <lcvideoplayer.h>
       
    25 #include <lcwindow.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CMceSession;
       
    29 class TMusEngCameraHandler;
       
    30 class MMusEngDisplayHandler;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 class CMusEngVideoPlayerBase : 
       
    34     public CBase, public MLcVideoPlayer, public MLcWindow
       
    35     {
       
    36     public: // Constructors and destructor
       
    37         
       
    38         ~CMusEngVideoPlayerBase();
       
    39 
       
    40     public: // New functions
       
    41         
       
    42         void SetMceSession( CMceSession* aMceSession );
       
    43         
       
    44     public: // From MLcVideoPlayer
       
    45     
       
    46         virtual void LcPlayL( TLcVideoPlayerSource aSource=ECameraSource );
       
    47         
       
    48         virtual void LcPauseL();        
       
    49         
       
    50         MLcWindow* LcWindow();
       
    51 
       
    52         virtual MLcCameraControl* LcCameraControl();
       
    53         
       
    54         virtual MLcSourceFileControl* LcSourceFileControl();
       
    55         
       
    56         virtual MLcDestinationFileControl* LcDestinationFileControl();
       
    57         
       
    58         MLcAudioControl* LcAudioControl();
       
    59     
       
    60         virtual MLcZoomControl* LcZoomControl();
       
    61     
       
    62         virtual MLcBrightnessControl* LcBrightnessControl();
       
    63     
       
    64     public: // from MLcWindow
       
    65         
       
    66         void EnableLcWindowL( TBool aEnable );
       
    67         
       
    68         TBool IsLcWindowEnabled();        
       
    69         
       
    70         void SetLcWindowRectL( TRect aRect );
       
    71         
       
    72         TRect LcWindowRect();
       
    73         
       
    74         void SetLcWindowOrientationL( 
       
    75             TLcWindowOrientation aOrientation );
       
    76         
       
    77         TLcWindowOrientation LcWindowOrientationL();    
       
    78         
       
    79     protected: // Constructors
       
    80         
       
    81         CMusEngVideoPlayerBase(
       
    82             MMusEngDisplayHandler& aDisplayHandler,
       
    83             MLcAudioControl& aLcAudioControl );
       
    84         
       
    85     protected: // Data
       
    86         
       
    87         MMusEngDisplayHandler& iDisplayHandler;
       
    88         MLcAudioControl& iLcAudioControl;
       
    89         
       
    90         CMceSession* iMceSession; // Not owned        
       
    91     };
       
    92 
       
    93 #endif // MUSHENGVIDEOPLAYERBASE_H