/*!
* This file is part of CameraPlus.
*
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Q_PROPERTY(int mode READ mode WRITE setMode NOTIFY modeChanged);
Q_PROPERTY(QString creatorName READ creatorName WRITE setCreatorName NOTIFY creatorNameChanged);
- Q_PROPERTY(int postCaptureTimeout READ postCaptureTimeout WRITE setPostCaptureTimeout NOTIFY postCaptureTimeoutChanged);
Q_PROPERTY(bool useGps READ useGps WRITE setUseGps NOTIFY useGpsChanged);
Q_PROPERTY(bool useGeotags READ useGeotags WRITE setUseGeotags NOTIFY useGeotagsChanged);
Q_PROPERTY(int imageSceneMode READ imageSceneMode WRITE setImageSceneMode NOTIFY imageSceneModeChanged);
Q_PROPERTY(int imageFlashMode READ imageFlashMode WRITE setImageFlashMode NOTIFY imageFlashModeChanged);
Q_PROPERTY(int imageIso READ imageIso WRITE setImageIso NOTIFY imageIsoChanged);
- Q_PROPERTY(QString imageAspectRatio READ imageAspectRatio WRITE setImageAspectRatio NOTIFY imageAspectRatioChanged);
- Q_PROPERTY(QString imageResolution READ imageResolution WRITE setImageResolution NOTIFY imageResolutionChanged);
-
- Q_PROPERTY(QString videoAspectRatio READ videoAspectRatio WRITE setVideoAspectRatio NOTIFY videoAspectRatioChanged);
- Q_PROPERTY(QString videoResolution READ videoResolution WRITE setVideoResolution NOTIFY videoResolutionChanged);
+ Q_PROPERTY(QString primaryImageAspectRatio READ primaryImageAspectRatio WRITE setPrimaryImageAspectRatio NOTIFY primaryImageAspectRatioChanged);
+ Q_PROPERTY(QString primaryImageResolution READ primaryImageResolution WRITE setPrimaryImageResolution NOTIFY primaryImageResolutionChanged);
+ Q_PROPERTY(QString primaryVideoAspectRatio READ primaryVideoAspectRatio WRITE setPrimaryVideoAspectRatio NOTIFY primaryVideoAspectRatioChanged);
+ Q_PROPERTY(QString primaryVideoResolution READ primaryVideoResolution WRITE setPrimaryVideoResolution NOTIFY primaryVideoResolutionChanged);
+ Q_PROPERTY(QString secondaryImageAspectRatio READ secondaryImageAspectRatio WRITE setSecondaryImageAspectRatio NOTIFY secondaryImageAspectRatioChanged);
+ Q_PROPERTY(QString secondaryImageResolution READ secondaryImageResolution WRITE setSecondaryImageResolution NOTIFY secondaryImageResolutionChanged);
+ Q_PROPERTY(QString secondaryVideoAspectRatio READ secondaryVideoAspectRatio WRITE setSecondaryVideoAspectRatio NOTIFY secondaryVideoAspectRatioChanged);
+ Q_PROPERTY(QString secondaryVideoResolution READ secondaryVideoResolution WRITE setSecondaryVideoResolution NOTIFY secondaryVideoResolutionChanged);
Q_PROPERTY(bool soundEnabled READ isSoundEnabled WRITE setSoundEnabled NOTIFY soundEnabledChanged);
+ Q_PROPERTY(bool videoTorchOn READ isVideoTorchOn WRITE setVideoTorchOn NOTIFY videoTorchOnChanged);
+
+ Q_PROPERTY(bool showToolBar READ isToolBarShown WRITE setToolBarShown NOTIFY toolBarShownChanged);
+ Q_PROPERTY(bool videoMuted READ isVideoMuted WRITE setVideoMuted NOTIFY videoMutedChanged);
+
+ Q_PROPERTY(bool gridEnabled READ isGridEnabled WRITE setGridEnabled NOTIFY gridEnabledChanged);
+
+ Q_PROPERTY(bool faceDetectionEnabled READ isFaceDetectionEnabled WRITE setFaceDetectionEnabled NOTIFY faceDetectionEnabledChanged);
+ Q_PROPERTY(bool zoomAsShutter READ isZoomAsShutterEnabled WRITE setZoomAsShutterEnabled NOTIFY zoomAsShutterChanged);
+ Q_PROPERTY(int device READ device WRITE setDevice NOTIFY deviceChanged);
public:
Settings(QObject *parent = 0);
QString creatorName() const;
void setCreatorName(const QString& name);
- int postCaptureTimeout() const;
- void setPostCaptureTimeout(int timeout);
-
bool useGps() const;
void setUseGps(bool enable);
int imageIso() const;
void setImageIso(int iso);
- QString imageAspectRatio() const;
- void setImageAspectRatio(const QString& aspectRatio);
+ bool isSoundEnabled() const;
+ void setSoundEnabled(bool enabled);
- QString imageResolution() const;
- void setImageResolution(const QString& resolution);
+ bool isVideoTorchOn() const;
+ void setVideoTorchOn(bool on);
- QString videoAspectRatio() const;
- void setVideoAspectRatio(const QString& aspectRatio);
+ bool isToolBarShown() const;
+ void setToolBarShown(bool shown);
- QString videoResolution() const;
- void setVideoResolution(const QString& resolution);
+ bool isVideoMuted() const;
+ void setVideoMuted(bool muted);
- bool isSoundEnabled() const;
- void setSoundEnabled(bool enabled);
+ bool isGridEnabled() const;
+ void setGridEnabled(bool enabled);
+
+ bool isFaceDetectionEnabled() const;
+ void setFaceDetectionEnabled(bool enabled);
+
+ bool isZoomAsShutterEnabled();
+ void setZoomAsShutterEnabled(bool enabled);
+
+ int device() const;
+ void setDevice(int device);
+
+ QString primaryImageAspectRatio() const;
+ void setPrimaryImageAspectRatio(const QString& aspectRatio);
+
+ QString primaryImageResolution() const;
+ void setPrimaryImageResolution(const QString& resolution);
+
+ QString primaryVideoAspectRatio() const;
+ void setPrimaryVideoAspectRatio(const QString& aspectRatio);
+
+ QString primaryVideoResolution() const;
+ void setPrimaryVideoResolution(const QString& resolution);
+
+ QString secondaryImageAspectRatio() const;
+ void setSecondaryImageAspectRatio(const QString& aspectRatio);
+
+ QString secondaryImageResolution() const;
+ void setSecondaryImageResolution(const QString& resolution);
+
+ QString secondaryVideoAspectRatio() const;
+ void setSecondaryVideoAspectRatio(const QString& aspectRatio);
+
+ QString secondaryVideoResolution() const;
+ void setSecondaryVideoResolution(const QString& resolution);
signals:
void modeChanged();
void creatorNameChanged();
- void postCaptureTimeoutChanged();
void useGpsChanged();
void useGeotagsChanged();
void imageSceneModeChanged();
void videoEvCompChanged();
void imageFlashModeChanged();
void imageIsoChanged();
- void imageAspectRatioChanged();
- void imageResolutionChanged();
- void videoAspectRatioChanged();
- void videoResolutionChanged();
void soundEnabledChanged();
+ void videoTorchOnChanged();
+ void toolBarShownChanged();
+ void videoMutedChanged();
+ void gridEnabledChanged();
+ void faceDetectionEnabledChanged();
+ void zoomAsShutterChanged();
+ void deviceChanged();
+ void primaryImageAspectRatioChanged();
+ void primaryImageResolutionChanged();
+ void primaryVideoAspectRatioChanged();
+ void primaryVideoResolutionChanged();
+ void secondaryImageAspectRatioChanged();
+ void secondaryImageResolutionChanged();
+ void secondaryVideoAspectRatioChanged();
+ void secondaryVideoResolutionChanged();
private:
QSettings *m_settings;