populate post capture model when page is current and clear it when we leave
[harmattan/cameraplus] / lib / qtcamviewfinder.h
index d534a56..223ec08 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_VIEWFINDER_H
 
 #include <gst/gst.h>
+#include <QRectF>
 
 class QtCamDevice;
 
@@ -33,8 +34,10 @@ public:
   virtual ~QtCamViewfinder();
 
   virtual GstElement *sinkElement() = 0;
-  virtual bool setDevice(QtCamDevice *device) = 0;
   virtual void stop() = 0;
+
+  virtual QRectF renderArea() const = 0;
+  virtual QSizeF videoResolution() const = 0;
 };
 
 #endif /* QT_CAM_VIEWFINDER_H */