#include "qtcamvideomode.h"
#include "qtcamgraphicsviewfinder.h"
#include "qtcamconfig.h"
-#include "declarativeqtcameranotifications.h"
+#include "sounds.h"
#include "notificationscontainer.h"
#include "sounds.h"
#include <QDeclarativeInfo>
m_videoTorch(0),
m_config(new CameraConfig(this)) {
+ m_config->componentComplete();
+
QObject::connect(m_vf, SIGNAL(renderAreaChanged()), this, SIGNAL(renderAreaChanged()));
QObject::connect(m_vf, SIGNAL(videoResolutionChanged()), this, SIGNAL(videoResolutionChanged()));
QObject::connect(m_vf, SIGNAL(renderingEnabledChanged()), this, SIGNAL(renderingEnabledChanged()));
return m_cam->config()->videoSuffix();
}
-DeclarativeQtCameraNotifications *Camera::notifications() const {
- return m_notifications->notifications();
+Sounds *Camera::sounds() const {
+ return m_notifications->sounds();
}
-
-void Camera::setNotifications(DeclarativeQtCameraNotifications *notifications) {
- if (m_notifications->setNotifications(notifications)) {
-
- if (Sounds *s = dynamic_cast<Sounds *>(notifications)) {
- s->setConfig(m_cam->config());
- s->reload();
- }
-
- emit notificationsChanged();
+void Camera::setSounds(Sounds *sounds) {
+ if (m_notifications->setSounds(sounds)) {
+ sounds->reload();
+ emit soundsChanged();
}
}