populate post capture model when page is current and clear it when we leave
[harmattan/cameraplus] / lib / qtcamautofocus.h
index 9255a2b..620e655 100644 (file)
@@ -3,7 +3,7 @@
 /*!
  * This file is part of CameraPlus.
  *
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -24,6 +24,7 @@
 #define QT_CAM_AUTO_FOCUS_H
 
 #include <QObject>
+#include "qtcamscene.h"
 
 class QtCamDevice;
 class QtCamAutoFocusPrivate;
@@ -53,6 +54,8 @@ public:
   bool startAutoFocus();
   bool stopAutoFocus();
 
+  bool canFocus(const QtCamScene::SceneMode& mode);
+
 signals:
   void statusChanged();
   void cafStatusChanged();