populate post capture model when page is current and clear it when we leave
[harmattan/cameraplus] / lib / qtcamdevice.h
index 0fd92b7..5a73842 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
@@ -35,6 +35,7 @@ class QtCamMode;
 class QtCamGStreamerMessageListener;
 class QtCamMetaData;
 class QtCamCapability;
+class QtCamNotifications;
 
 class QtCamDevice : public QObject {
   Q_OBJECT
@@ -44,8 +45,10 @@ public:
   ~QtCamDevice();
 
   bool setViewfinder(QtCamViewfinder *viewfinder);
+  QtCamViewfinder *viewfinder() const;
+
   bool start();
-  bool stop();
+  bool stop(bool force);
   bool isRunning();
   bool isIdle();
 
@@ -60,6 +63,8 @@ public:
   QtCamConfig *config() const;
   QtCamGStreamerMessageListener *listener() const;
 
+  QtCamNotifications *notifications() const;
+
 signals:
   void error(const QString& message, int code, const QString& debug);
   void started();
@@ -75,10 +80,13 @@ private:
   Q_PRIVATE_SLOT(d_ptr, void _d_stopped())
   Q_PRIVATE_SLOT(d_ptr, void _d_stopping())
 
-  friend class QtCamMetaData;
+  friend class QtCamMetaDataPrivate;
   friend class QtCamCapability;
   friend class QtCamVideoTorch;
-  friend class QtCamMute;
+  friend class QtCamVideoMute;
+  friend class QtCamAutoFocusPrivate;
+  friend class QtCamRoiPrivate;
+  friend class QtCamNotifications;
 
   QtCamDevicePrivate *d_ptr;
 };