2
* Copyright (C) 2013 Canonical, Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
#include "aalcameracontrol.h"
18
#include "aalcameraservice.h"
20
#include <hybris/camera/camera_compatibility_layer.h>
22
AalCameraControl::AalCameraControl(AalCameraService *service, QObject *parent)
23
: QCameraControl(parent),
25
m_state(QCamera::UnloadedState),
26
m_status(QCamera::UnloadedStatus),
27
m_captureMode(QCamera::CaptureStillImage)
31
AalCameraControl::~AalCameraControl()
35
QCamera::State AalCameraControl::state() const
40
void AalCameraControl::setState(QCamera::State state)
43
Q_EMIT stateChanged(m_state);
46
QCamera::Status AalCameraControl::status() const
51
QCamera::CaptureModes AalCameraControl::captureMode() const
56
void AalCameraControl::setCaptureMode(QCamera::CaptureModes mode)
59
Q_EMIT captureModeChanged(mode);
62
bool AalCameraControl::isCaptureModeSupported(QCamera::CaptureModes mode) const
67
bool AalCameraControl::canChangeProperty(QCameraControl::PropertyChangeType changeType, QCamera::Status status) const
75
void AalCameraControl::init(CameraControl *control, CameraControlListener *listener)
81
void AalCameraControl::handleError()
85
void AalCameraControl::errorCB(void *context)