camerauis/cameraxui/cxengine/inc/cxeenginesymbian.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 53 61bc0f252b2b
child 57 2c87b2808fd7
equal deleted inserted replaced
53:61bc0f252b2b 54:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2009-2010 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 #ifndef CXEENGINESYMBIAN_H
       
    18 #define CXEENGINESYMBIAN_H
       
    19 
       
    20 #include <QObject>
       
    21 #include "cxeengine.h"
       
    22 #include "cxefilenamegenerator.h"
       
    23 
       
    24 class CxeCameraDevice;
       
    25 class CxeCameraDeviceControl;
       
    26 class CxeViewfinderControl;
       
    27 class CxeSnapshotControl;
       
    28 class CxeStillCaptureControl;
       
    29 class CxeVideoCaptureControl;
       
    30 class CxeSettingsControlSymbian;
       
    31 class CxeAutoFocusControl;
       
    32 class CxeFeatureManager;
       
    33 class CxeAutoFocusControl;
       
    34 class CxeSettings;
       
    35 class CxeFeatureManager;
       
    36 class CxeSensorEventHandler;
       
    37 class CxeFilenameGenerator;
       
    38 class CxeQualityPresets;
       
    39 class CxeFileSaveThread;
       
    40 class CxeDiskMonitor;
       
    41 class CxeMemoryMonitor;
       
    42 class CxeGeoTaggingTrail;
       
    43 
       
    44 
       
    45 class CxeEngineSymbian : public CxeEngine
       
    46 {
       
    47     Q_OBJECT
       
    48 public:
       
    49     CxeEngineSymbian();
       
    50     virtual ~CxeEngineSymbian();
       
    51 
       
    52     CxeCameraDeviceControl &cameraDeviceControl();
       
    53     CxeViewfinderControl &viewfinderControl();
       
    54     CxeSnapshotControl &snapshotControl();
       
    55     CxeStillCaptureControl &stillCaptureControl();
       
    56     CxeVideoCaptureControl &videoCaptureControl();
       
    57     CxeAutoFocusControl &autoFocusControl();
       
    58     CxeZoomControl &zoomControl();
       
    59     CxeSettings &settings();
       
    60     CxeSensorEventHandler &sensorEventHandler();
       
    61     CxeFeatureManager &featureManager();
       
    62     CxeMemoryMonitor &memoryMonitor();
       
    63     CxeGeoTaggingTrail &geoTaggingTrail();
       
    64     Cxe::CameraMode mode() const;
       
    65     void setMode(Cxe::CameraMode mode);
       
    66     void initMode(Cxe::CameraMode cameraMode);
       
    67     bool isEngineReady();
       
    68 
       
    69     void construct();
       
    70 
       
    71 signals:
       
    72     void reserveStarted();
       
    73 
       
    74 protected:
       
    75     virtual void createControls();
       
    76 
       
    77 private slots:
       
    78     void doInit();
       
    79     void initGeotagging();
       
    80 
       
    81 private:
       
    82     void connectSignals();
       
    83     bool reserveNeeded();
       
    84     bool initNeeded();
       
    85     bool startViewfinderNeeded();
       
    86     void reserve();
       
    87     void saveMode();
       
    88 
       
    89 protected:
       
    90     CxeCameraDeviceControl *mCameraDeviceControl;
       
    91     CxeCameraDevice *mCameraDevice; // not own
       
    92     CxeViewfinderControl *mViewfinderControl;
       
    93     CxeSnapshotControl *mSnapshotControl;
       
    94     CxeStillCaptureControl *mStillCaptureControl;
       
    95     CxeVideoCaptureControl *mVideoCaptureControl;
       
    96     CxeSettingsControlSymbian *mSettingsControl;
       
    97     CxeAutoFocusControl *mAutoFocusControl;
       
    98     CxeZoomControl *mZoomControl;
       
    99     CxeSettings *mSettings;
       
   100     CxeFeatureManager *mFeatureManager;
       
   101     CxeFilenameGenerator *mFilenameGenerator;
       
   102     CxeSensorEventHandler* mSensorEventHandler;
       
   103     CxeQualityPresets *mQualityPresets;
       
   104     CxeFileSaveThread *mFileSaveThread;
       
   105     CxeDiskMonitor *mDiskMonitor;
       
   106     CxeMemoryMonitor *mMemoryMonitor;
       
   107     CxeGeoTaggingTrail *mGeoTaggingTrail;
       
   108 };
       
   109 
       
   110 
       
   111 #endif  // CXEENGINESYMBIAN_H
       
   112 
       
   113