Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/cameraengine_8h_source.html
changeset 6 43e37759235e
equal deleted inserted replaced
5:f345bda72bc4 6:43e37759235e
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       
     2 <html xmlns="http://www.w3.org/1999/xhtml">
       
     3 <head>
       
     4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
       
     5 <title>TB9.2 Example Applications: examples/ForumNokia/CameraExample/camerawrapper/epoc32/include/cameraengine.h Source File</title>
       
     6 <link href="tabs.css" rel="stylesheet" type="text/css"/>
       
     7 <link href="doxygen.css" rel="stylesheet" type="text/css"/>
       
     8 </head>
       
     9 <body>
       
    10 <!-- Generated by Doxygen 1.6.2 -->
       
    11 <h1>examples/ForumNokia/CameraExample/camerawrapper/epoc32/include/cameraengine.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
       
    12 <a name="l00002"></a>00002 <span class="comment">* ============================================================================</span>
       
    13 <a name="l00003"></a>00003 <span class="comment">*  Name        : cameraengine.h</span>
       
    14 <a name="l00004"></a>00004 <span class="comment">*  Part of     : CameraWrapper</span>
       
    15 <a name="l00005"></a>00005 <span class="comment">*  Description : Camera engine class declaration</span>
       
    16 <a name="l00006"></a>00006 <span class="comment">*  Version     : %version: 1 %</span>
       
    17 <a name="l00007"></a>00007 <span class="comment">*</span>
       
    18 <a name="l00008"></a>00008 <span class="comment">*  Copyright (c) 2009 Nokia Corporation.</span>
       
    19 <a name="l00009"></a>00009 <span class="comment">*  This material, including documentation and any related</span>
       
    20 <a name="l00010"></a>00010 <span class="comment">*  computer programs, is protected by copyright controlled by</span>
       
    21 <a name="l00011"></a>00011 <span class="comment">*  Nokia Corporation.</span>
       
    22 <a name="l00012"></a>00012 <span class="comment">* ==============================================================================</span>
       
    23 <a name="l00013"></a>00013 <span class="comment">*/</span>
       
    24 <a name="l00014"></a>00014 
       
    25 <a name="l00015"></a>00015 <span class="preprocessor">#ifndef CCAMERAENGINE_H</span>
       
    26 <a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define CCAMERAENGINE_H</span>
       
    27 <a name="l00017"></a>00017 <span class="preprocessor"></span>
       
    28 <a name="l00018"></a>00018 <span class="comment">// INCLUDES</span>
       
    29 <a name="l00019"></a>00019 <span class="preprocessor">#include &lt;e32base.h&gt;</span>
       
    30 <a name="l00020"></a>00020 <span class="preprocessor">#include &lt;ecam.h&gt;</span>
       
    31 <a name="l00021"></a>00021 
       
    32 <a name="l00022"></a>00022 <span class="comment">// FORWARD DECLARATIONS</span>
       
    33 <a name="l00023"></a>00023 <span class="keyword">class </span>CCameraEnginePrivate;
       
    34 <a name="l00024"></a>00024 <span class="keyword">class </span><a class="code" href="class_m_camera_engine_observer.html">MCameraEngineObserver</a>;
       
    35 <a name="l00025"></a>00025 <span class="keyword">class </span>CCameraAdvancedSettings;
       
    36 <a name="l00026"></a>00026 
       
    37 <a name="l00027"></a>00027 NONSHARABLE_CLASS( CCameraEngine ) : public CBase
       
    38 <a name="l00028"></a>00028   {
       
    39 <a name="l00029"></a>00029 <span class="keyword">public</span>:
       
    40 <a name="l00030"></a>00030 
       
    41 <a name="l00031"></a>00031   <span class="keyword">enum</span> TCameraEngineState
       
    42 <a name="l00032"></a>00032       {
       
    43 <a name="l00033"></a>00033       EEngineNotReady,
       
    44 <a name="l00034"></a>00034       EEngineIdle,
       
    45 <a name="l00035"></a>00035       EEngineViewFinding,
       
    46 <a name="l00036"></a>00036       EEngineCapturing,
       
    47 <a name="l00037"></a>00037       EEngineFocusing
       
    48 <a name="l00038"></a>00038       };
       
    49 <a name="l00039"></a>00039 
       
    50 <a name="l00040"></a>00040   IMPORT_C <span class="keyword">static</span> CCameraEngine* NewL( TInt aCameraHandle, 
       
    51 <a name="l00041"></a>00041                                        TInt aPriority, 
       
    52 <a name="l00042"></a>00042                                        <a class="code" href="class_m_camera_engine_observer.html">MCameraEngineObserver</a>* aObserver );
       
    53 <a name="l00043"></a>00043     IMPORT_C ~CCameraEngine();
       
    54 <a name="l00044"></a>00044   
       
    55 <a name="l00045"></a>00045 <span class="keyword">public</span>:
       
    56 <a name="l00046"></a>00046 
       
    57 <a name="l00051"></a>00051   IMPORT_C TCameraEngineState State() <span class="keyword">const</span>;
       
    58 <a name="l00052"></a>00052 
       
    59 <a name="l00057"></a>00057   IMPORT_C TBool IsCameraReady() <span class="keyword">const</span>;
       
    60 <a name="l00058"></a>00058 
       
    61 <a name="l00062"></a>00062   IMPORT_C TBool IsAutoFocusSupported() <span class="keyword">const</span>;
       
    62 <a name="l00063"></a>00063   
       
    63 <a name="l00071"></a>00071   IMPORT_C <span class="keywordtype">void</span> CaptureL();
       
    64 <a name="l00072"></a>00072   
       
    65 <a name="l00078"></a>00078   IMPORT_C <span class="keywordtype">void</span> ReserveAndPowerOn();
       
    66 <a name="l00079"></a>00079 
       
    67 <a name="l00084"></a>00084   IMPORT_C <span class="keywordtype">void</span> ReleaseAndPowerOff();
       
    68 <a name="l00085"></a>00085 
       
    69 <a name="l00094"></a>00094   IMPORT_C <span class="keywordtype">void</span> PrepareL( TSize&amp; aCaptureSize,               
       
    70 <a name="l00095"></a>00095       CCamera::TFormat aFormat = CCamera::EFormatExif );
       
    71 <a name="l00096"></a>00096       
       
    72 <a name="l00106"></a>00106   IMPORT_C <span class="keywordtype">void</span> StartViewFinderL( TSize&amp; aSize );
       
    73 <a name="l00107"></a>00107 
       
    74 <a name="l00111"></a>00111   IMPORT_C <span class="keywordtype">void</span> StopViewFinder();
       
    75 <a name="l00112"></a>00112   
       
    76 <a name="l00118"></a>00118   IMPORT_C <span class="keywordtype">void</span> ReleaseViewFinderBuffer();
       
    77 <a name="l00119"></a>00119   
       
    78 <a name="l00126"></a>00126   IMPORT_C <span class="keywordtype">void</span> ReleaseImageBuffer();
       
    79 <a name="l00127"></a>00127   
       
    80 <a name="l00134"></a>00134   IMPORT_C <span class="keywordtype">void</span> StartFocusL();
       
    81 <a name="l00135"></a>00135   
       
    82 <a name="l00139"></a>00139   IMPORT_C <span class="keywordtype">void</span> FocusCancel();
       
    83 <a name="l00140"></a>00140 
       
    84 <a name="l00146"></a>00146   IMPORT_C <span class="keywordtype">void</span> SupportedFocusRanges( TInt&amp; aSupportedRanges ) <span class="keyword">const</span>;
       
    85 <a name="l00147"></a>00147   
       
    86 <a name="l00153"></a>00153   IMPORT_C <span class="keywordtype">void</span> SetFocusRange( TInt aFocusRange );
       
    87 <a name="l00154"></a>00154   
       
    88 <a name="l00161"></a>00161   IMPORT_C CCamera* Camera();
       
    89 <a name="l00162"></a>00162   
       
    90 <a name="l00170"></a>00170   IMPORT_C CCamera::CCameraAdvancedSettings* AdvancedSettings();
       
    91 <a name="l00171"></a>00171   
       
    92 <a name="l00175"></a>00175   IMPORT_C <span class="keyword">static</span> TInt CamerasAvailable();
       
    93 <a name="l00176"></a>00176   
       
    94 <a name="l00180"></a>00180   IMPORT_C TInt MaxDigitalZoom();
       
    95 <a name="l00181"></a>00181   
       
    96 <a name="l00185"></a>00185   IMPORT_C TInt DigitalZoom();
       
    97 <a name="l00186"></a>00186   
       
    98 <a name="l00192"></a>00192   IMPORT_C TInt AdjustDigitalZoom( TBool aTele );
       
    99 <a name="l00193"></a>00193   
       
   100 <a name="l00198"></a>00198   IMPORT_C TInt SupportedExposureModes();
       
   101 <a name="l00199"></a>00199   
       
   102 <a name="l00204"></a>00204   IMPORT_C TInt Exposure();
       
   103 <a name="l00205"></a>00205   
       
   104 <a name="l00212"></a>00212   IMPORT_C TInt SetExposure( TInt aExposure );
       
   105 <a name="l00213"></a>00213 
       
   106 <a name="l00218"></a>00218   IMPORT_C TInt SupportedFlashModes();
       
   107 <a name="l00219"></a>00219   
       
   108 <a name="l00224"></a>00224   IMPORT_C TInt Flash();
       
   109 <a name="l00225"></a>00225 
       
   110 <a name="l00232"></a>00232   IMPORT_C TInt SetFlash( TInt aFlash );
       
   111 <a name="l00233"></a>00233 
       
   112 <a name="l00234"></a>00234 <span class="keyword">protected</span>:
       
   113 <a name="l00235"></a>00235     CCameraEngine();
       
   114 <a name="l00236"></a>00236 
       
   115 <a name="l00237"></a>00237 <span class="keyword">private</span>:
       
   116 <a name="l00238"></a>00238     CCameraEnginePrivate* iPimpl;
       
   117 <a name="l00239"></a>00239   };
       
   118 <a name="l00240"></a>00240 
       
   119 <a name="l00241"></a>00241 <span class="preprocessor">#endif //CCAMERAENGINE_H</span>
       
   120 </pre></div></div>
       
   121 <hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
       
   122 <a href="http://www.doxygen.org/index.html">
       
   123 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
       
   124 </body>
       
   125 </html>