#include "qtcamvideomode.h"
#include "qtcamgraphicsviewfinder.h"
#include "qtcamconfig.h"
-#include "notifications.h"
+#include "declarativeqtcameranotifications.h"
#include "notificationscontainer.h"
#include "sounds.h"
#include <QDeclarativeInfo>
#include "flickerreduction.h"
#include "focus.h"
#include "autofocus.h"
+#include "roi.h"
#include "videomute.h"
#include "videotorch.h"
m_flickerReduction(0),
m_focus(0),
m_autoFocus(0),
+ m_roi(0),
m_videoMute(0),
m_videoTorch(0) {
delete m_flickerReduction;
delete m_focus;
delete m_autoFocus;
+ delete m_roi;
delete m_videoMute;
delete m_videoTorch;
}
return m_cam->config()->videoSuffix();
}
-Notifications *Camera::notifications() const {
+DeclarativeQtCameraNotifications *Camera::notifications() const {
return m_notifications->notifications();
}
-void Camera::setNotifications(Notifications *notifications) {
+void Camera::setNotifications(DeclarativeQtCameraNotifications *notifications) {
if (m_notifications->setNotifications(notifications)) {
if (Sounds *s = dynamic_cast<Sounds *>(notifications)) {
m_autoFocus = new AutoFocus(dev, this);
emit autoFocusChanged();
+ delete m_roi;
+ m_roi = new Roi(dev, this);
+ emit roiChanged();
+
delete m_videoMute;
m_videoMute = new VideoMute(dev, this);
emit videoMuteChanged();
return m_autoFocus;
}
+Roi *Camera::roi() const {
+ return m_roi;
+}
+
VideoMute *Camera::videoMute() const {
return m_videoMute;
}