Don't reuse file names
[harmattan/cameraplus] / lib / qtcamgraphicsviewfinder.h
index 25edab1..26d7f8c 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
@@ -37,16 +37,21 @@ public:
   virtual ~QtCamGraphicsViewfinder();
 
   virtual GstElement *sinkElement();
-  virtual bool setDevice(QtCamDevice *device);
   virtual void stop();
 
   virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
                     QWidget *widget = 0);
 
   QRectF renderArea() const;
+  QSizeF videoResolution() const;
+
+  bool isRenderingEnabled() const;
+  void setRenderingEnabled(bool enabled);
 
 signals:
   void renderAreaChanged();
+  void videoResolutionChanged();
+  void renderingEnabledChanged();
 
 protected:
   void resizeEvent(QGraphicsSceneResizeEvent *event);