mmsharing/livecommsui/lcui/tsrc/ipvtengine/inc/musengcamerahandler.h
branchRCL_3
changeset 23 bc78a40cd63c
parent 22 73a1feb507fb
child 24 6c57ef9392d2
equal deleted inserted replaced
22:73a1feb507fb 23:bc78a40cd63c
     1 /*
       
     2 * Copyright (c) 2005 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 MUSHENGCAMERAHANDLER_H
       
    20 #define MUSHENGCAMERAHANDLER_H
       
    21 
       
    22 // USER
       
    23 #include "lccameracontrol.h"
       
    24 #include "lcbrightnesscontrol.h"
       
    25 #include "lczoomcontrol.h"
       
    26 
       
    27 // SYSTEM
       
    28 #include <e32base.h>
       
    29 #include <ecam.h>
       
    30 
       
    31 class CMusEngMceSession;
       
    32 
       
    33 // CLASS
       
    34 
       
    35 class TMusEngCameraHandler :    
       
    36     public MLcCameraControl,
       
    37     public MLcBrightnessControl,
       
    38     public MLcZoomControl
       
    39     {
       
    40         
       
    41     public: // From MLcCameraControl
       
    42         
       
    43         TInt LcCameraCountL();
       
    44 
       
    45         TInt CurrentLcCameraIndex();
       
    46         
       
    47         void ToggleLcCameraL();       
       
    48 
       
    49     public: // From MLcBrightnessControl
       
    50         
       
    51         TInt MinLcBrightnessL();
       
    52 
       
    53         TInt MaxLcBrightnessL();
       
    54 
       
    55         TInt LcBrightnessL();
       
    56 
       
    57         void SetLcBrightnessL( TInt aValue );
       
    58         
       
    59         void IncreaseLcBrightnessL();
       
    60         
       
    61         void DecreaseLcBrightnessL();
       
    62         
       
    63     public: // From MLcZoomControl
       
    64         
       
    65         TInt MinLcZoomL();
       
    66 
       
    67         TInt MaxLcZoomL();
       
    68 
       
    69         TInt LcZoomValueL();
       
    70 
       
    71         void SetLcZoomValueL( TInt aValue );
       
    72         
       
    73         void LcZoomInL();
       
    74         
       
    75         void LcZoomOutL();     
       
    76                        
       
    77     public:
       
    78         
       
    79         TMusEngCameraHandler();
       
    80         
       
    81         TInt ZoomStepSize( TInt64& aTime );
       
    82         
       
    83         void SetSession( CMusEngMceSession* aSession );
       
    84         
       
    85         TBool IsPlayingL();
       
    86         void PlayL();
       
    87         void PauseL();
       
    88 
       
    89 
       
    90     private:
       
    91     
       
    92         enum TCurrentCamera
       
    93             {
       
    94             ECameraNotAvailable = KErrNotFound,
       
    95             EBackCamera = 0, 
       
    96             EFrontCamera = 1
       
    97             };         
       
    98    
       
    99         
       
   100     private: // Data
       
   101         
       
   102         
       
   103         TCameraInfo iCameraInfo;
       
   104 
       
   105         TInt iDefaultBrightness;
       
   106         
       
   107         TInt64 iZoomInTime;
       
   108         
       
   109         TInt64 iZoomOutTime;        
       
   110                       
       
   111         TInt iSmallZoomStep;
       
   112         
       
   113         TInt iBigZoomStep;
       
   114         
       
   115         TCurrentCamera iCurrentCamera;
       
   116         
       
   117         CMusEngMceSession* iMusSession;
       
   118         TBool iPlaying;
       
   119     };
       
   120 
       
   121 #endif
       
   122