Don't reuse file names
[harmattan/cameraplus] / lib / qtcamimagemode.cpp
index 073bf24..6aae13b 100644 (file)
@@ -64,7 +64,7 @@ QtCamImageMode::~QtCamImageMode() {
 }
 
 bool QtCamImageMode::canCapture() {
-  return QtCamMode::canCapture() && d_ptr->dev->isWrapperReady();
+  return QtCamMode::canCapture() && d_ptr->dev->isReadyForCapture();
 }
 
 void QtCamImageMode::applySettings() {
@@ -143,3 +143,7 @@ void QtCamImageMode::setProfile(GstEncodingProfile *profile) {
 QtCamImageSettings *QtCamImageMode::settings() const {
   return d->settings;
 }
+
+QtCamImageResolution QtCamImageMode::currentResolution() {
+  return d->resolution;
+}