mmsharing/livecommsui/lcui/tsrc/dummymusengineplugin/inc/musengcamerahandler.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33: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 
       
    32 // CLASS
       
    33 
       
    34 class TMusEngCameraHandler :    
       
    35     public MLcCameraControl,
       
    36     public MLcBrightnessControl,
       
    37     public MLcZoomControl
       
    38     {
       
    39         
       
    40     public: // From MLcCameraControl
       
    41         
       
    42         TInt LcCameraCountL();
       
    43 
       
    44         TInt CurrentLcCameraIndex();
       
    45         
       
    46         void ToggleLcCameraL();       
       
    47 
       
    48     public: // From MLcBrightnessControl
       
    49         
       
    50         TInt MinLcBrightnessL();
       
    51 
       
    52         TInt MaxLcBrightnessL();
       
    53 
       
    54         TInt LcBrightnessL();
       
    55 
       
    56         void SetLcBrightnessL( TInt aValue );
       
    57         
       
    58         void IncreaseLcBrightnessL();
       
    59         
       
    60         void DecreaseLcBrightnessL();
       
    61         
       
    62     public: // From MLcZoomControl
       
    63         
       
    64         TInt MinLcZoomL();
       
    65 
       
    66         TInt MaxLcZoomL();
       
    67 
       
    68         TInt LcZoomValueL();
       
    69 
       
    70         void SetLcZoomValueL( TInt aValue );
       
    71         
       
    72         void LcZoomInL();
       
    73         
       
    74         void LcZoomOutL();     
       
    75                        
       
    76     public:
       
    77         
       
    78         TMusEngCameraHandler();
       
    79         
       
    80         TInt ZoomStepSize( TInt64& aTime );
       
    81 
       
    82     private:
       
    83     
       
    84         enum TCurrentCamera
       
    85             {
       
    86             ECameraNotAvailable = KErrNotFound,
       
    87             EBackCamera = 0, 
       
    88             EFrontCamera = 1
       
    89             };         
       
    90    
       
    91         
       
    92     private: // Data
       
    93         
       
    94         
       
    95         TCameraInfo iCameraInfo;
       
    96 
       
    97         TInt iDefaultBrightness;
       
    98         
       
    99         TInt64 iZoomInTime;
       
   100         
       
   101         TInt64 iZoomOutTime;        
       
   102                       
       
   103         TInt iSmallZoomStep;
       
   104         
       
   105         TInt iBigZoomStep;
       
   106         
       
   107         TCurrentCamera iCurrentCamera;
       
   108     };
       
   109 
       
   110 #endif
       
   111