1 #include "qtcamimagesettings.h"
3 class QtCamImageSettingsPrivate {
14 QtCamImageSettings::QtCamImageSettings(const QString& id, const QString& name,
15 const QSize& capture, const QSize& preview,
16 const QSize& viewfinder,
17 int fps, int nightFps) :
18 d_ptr(new QtCamImageSettingsPrivate) {
22 d_ptr->capture = capture;
23 d_ptr->preview = preview;
24 d_ptr->viewfinder = viewfinder;
26 d_ptr->nightFps = nightFps;
29 QtCamImageSettings::QtCamImageSettings(const QtCamImageSettings& other) :
30 d_ptr(new QtCamImageSettingsPrivate) {
32 d_ptr->id = other.d_ptr->id;
33 d_ptr->name = other.d_ptr->name;
34 d_ptr->capture = other.d_ptr->capture;
35 d_ptr->preview = other.d_ptr->preview;
36 d_ptr->viewfinder = other.d_ptr->viewfinder;
37 d_ptr->fps = other.d_ptr->fps;
38 d_ptr->nightFps = other.d_ptr->nightFps;
41 QtCamImageSettings::~QtCamImageSettings() {
45 QtCamImageSettings& QtCamImageSettings::operator=(const QtCamImageSettings&
47 d_ptr->id = other.d_ptr->id;
48 d_ptr->name = other.d_ptr->name;
49 d_ptr->capture = other.d_ptr->capture;
50 d_ptr->preview = other.d_ptr->preview;
51 d_ptr->viewfinder = other.d_ptr->viewfinder;
52 d_ptr->fps = other.d_ptr->fps;
53 d_ptr->nightFps = other.d_ptr->nightFps;
58 QString QtCamImageSettings::id() const {
62 QString QtCamImageSettings::name() const {
66 QSize QtCamImageSettings::captureResolution() const {
67 return d_ptr->capture;
70 QSize QtCamImageSettings::viewfinderResolution() const {
71 return d_ptr->viewfinder;
74 QSize QtCamImageSettings::previewResolution() const {
75 return d_ptr->preview;
78 int QtCamImageSettings::frameRate() const {
82 int QtCamImageSettings::nightFrameRate() const {
83 return d_ptr->nightFps;