Convert TextSwitch to a platform specific component and rename it to CameraTextSwitch
[harmattan/cameraplus] / lib / qtcamgraphicsviewfinder.h
index e9db5b8..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,7 +37,6 @@ public:
   virtual ~QtCamGraphicsViewfinder();
 
   virtual GstElement *sinkElement();
-  virtual bool setDevice(QtCamDevice *device);
   virtual void stop();
 
   virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
@@ -46,9 +45,13 @@ public:
   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);