~timo-jyrinki/qtubuntu-camera/rebuild_against_qt521

« back to all changes in this revision

Viewing changes to unittests/stubs/aalcameracontrol_stub.cpp

  • Committer: Tarmac
  • Author(s): Guenter Schwann
  • Date: 2013-07-25 18:19:17 UTC
  • mfrom: (69.2.2 qtcamera-video-zoom)
  • Revision ID: tarmac-20130725181917-jtlo7tiwqavo42x1
Disable zooming in video mode LP: #1191088. Fixes: https://bugs.launchpad.net/bugs/1191088.

Approved by Olivier Tilloy, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2013 Canonical, Ltd.
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 */
 
16
 
 
17
#include "aalcameracontrol.h"
 
18
#include "aalcameraservice.h"
 
19
 
 
20
#include <hybris/camera/camera_compatibility_layer.h>
 
21
 
 
22
AalCameraControl::AalCameraControl(AalCameraService *service, QObject *parent)
 
23
   : QCameraControl(parent),
 
24
    m_service(service),
 
25
    m_state(QCamera::UnloadedState),
 
26
    m_status(QCamera::UnloadedStatus),
 
27
    m_captureMode(QCamera::CaptureStillImage)
 
28
{
 
29
}
 
30
 
 
31
AalCameraControl::~AalCameraControl()
 
32
{
 
33
}
 
34
 
 
35
QCamera::State AalCameraControl::state() const
 
36
{
 
37
    return m_state;
 
38
}
 
39
 
 
40
void AalCameraControl::setState(QCamera::State state)
 
41
{
 
42
    m_state = state;
 
43
    Q_EMIT stateChanged(m_state);
 
44
}
 
45
 
 
46
QCamera::Status AalCameraControl::status() const
 
47
{
 
48
    return m_status;
 
49
}
 
50
 
 
51
QCamera::CaptureModes AalCameraControl::captureMode() const
 
52
{
 
53
    return m_captureMode;
 
54
}
 
55
 
 
56
void AalCameraControl::setCaptureMode(QCamera::CaptureModes mode)
 
57
{
 
58
    m_captureMode = mode;
 
59
    Q_EMIT captureModeChanged(mode);
 
60
}
 
61
 
 
62
bool AalCameraControl::isCaptureModeSupported(QCamera::CaptureModes mode) const
 
63
{
 
64
    return true;
 
65
}
 
66
 
 
67
bool AalCameraControl::canChangeProperty(QCameraControl::PropertyChangeType changeType, QCamera::Status status) const
 
68
{
 
69
    Q_UNUSED(changeType);
 
70
    Q_UNUSED(status);
 
71
 
 
72
    return true;
 
73
}
 
74
 
 
75
void AalCameraControl::init(CameraControl *control, CameraControlListener *listener)
 
76
{
 
77
    Q_UNUSED(control);
 
78
    Q_UNUSED(listener);
 
79
}
 
80
 
 
81
void AalCameraControl::handleError()
 
82
{
 
83
}
 
84
 
 
85
void AalCameraControl::errorCB(void *context)
 
86
{
 
87
    Q_UNUSED(context);
 
88
}