camerauis/cameraxui/cxengine/src/cxeenginesymbian.cpp
changeset 36 b12f3922a74f
parent 29 699651f2666f
child 37 64817133cd1d
equal deleted inserted replaced
32:5c1e3c6aa4ef 36:b12f3922a74f
   117         mSettingsModel = new CxeSettingsModelImp(settingsStore);
   117         mSettingsModel = new CxeSettingsModelImp(settingsStore);
   118         // assert if settings model fails to intialize
   118         // assert if settings model fails to intialize
   119         CX_DEBUG_ASSERT(mSettingsModel);
   119         CX_DEBUG_ASSERT(mSettingsModel);
   120 
   120 
   121         mSettings = new CxeSettingsImp(*mSettingsModel);
   121         mSettings = new CxeSettingsImp(*mSettingsModel);
   122         
   122 
   123         //! @todo a temporary hack to change the startup sequence to avoid GOOM problems
   123         //! @todo a temporary hack to change the startup sequence to avoid GOOM problems
   124         static_cast<CxeSettingsImp*>(mSettings)->loadSettings(mode());
   124         static_cast<CxeSettingsImp*>(mSettings)->loadSettings(mode());
   125         
   125 
   126         
   126 
   127         // Connect P&S key updates to settings signal.
   127         // Connect P&S key updates to settings signal.
   128         connect(settingsStore, SIGNAL(settingValueChanged(long int, unsigned long int, QVariant)),
   128         connect(settingsStore, SIGNAL(settingValueChanged(long int, unsigned long int, QVariant)),
   129                 mSettings, SIGNAL(settingValueChanged(long int, unsigned long int, QVariant)));
   129                 mSettings, SIGNAL(settingValueChanged(long int, unsigned long int, QVariant)));
   130 
   130 
   131         mFeatureManager = new CxeFeatureManagerImp(*mSettingsModel);
   131         mFeatureManager = new CxeFeatureManagerImp(*mSettingsModel);
   148         mViewfinderControl = new CxeViewfinderControlSymbian(*mCameraDevice,
   148         mViewfinderControl = new CxeViewfinderControlSymbian(*mCameraDevice,
   149             *mCameraDeviceControl);
   149             *mCameraDeviceControl);
   150 
   150 
   151         mSnapshotControl = new CxeSnapshotControl(*mCameraDevice);
   151         mSnapshotControl = new CxeSnapshotControl(*mCameraDevice);
   152 
   152 
   153         mAutoFocusControl = new CxeAutoFocusControlSymbian(*mCameraDevice);
   153         mAutoFocusControl = new CxeAutoFocusControlSymbian(*mCameraDevice, 
       
   154 		                            *mSettings);
   154 
   155 
   155         mFileSaveThread = CxeFileSaveThreadFactory::createFileSaveThread();
   156         mFileSaveThread = CxeFileSaveThreadFactory::createFileSaveThread();
   156 
   157 
   157         mStillCaptureControl = new CxeStillCaptureControlSymbian(
   158         mStillCaptureControl = new CxeStillCaptureControlSymbian(
   158             *mCameraDevice, *mViewfinderControl, *mSnapshotControl, *mCameraDeviceControl,
   159             *mCameraDevice, *mViewfinderControl, *mSnapshotControl, *mCameraDeviceControl,
   201             SLOT(handleCameraEvent(int,int)));
   202             SLOT(handleCameraEvent(int,int)));
   202 
   203 
   203     connect(mCameraDeviceControl,
   204     connect(mCameraDeviceControl,
   204             SIGNAL(cameraEvent(int,int)),
   205             SIGNAL(cameraEvent(int,int)),
   205             mAutoFocusControl,
   206             mAutoFocusControl,
       
   207             SLOT(handleCameraEvent(int,int)));
       
   208 
       
   209     connect(mCameraDeviceControl,
       
   210             SIGNAL(cameraEvent(int,int)),
       
   211             mStillCaptureControl,
   206             SLOT(handleCameraEvent(int,int)));
   212             SLOT(handleCameraEvent(int,int)));
   207 
   213 
   208     // Connect signal for device ready events
   214     // Connect signal for device ready events
   209     connect(mCameraDeviceControl,
   215     connect(mCameraDeviceControl,
   210             SIGNAL(deviceReady()),
   216             SIGNAL(deviceReady()),