/*!
* 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(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);
~Settings();
QString creatorName() const;
void setCreatorName(const QString& name);
- int postCaptureTimeout() const;
- void setPostCaptureTimeout(int timeout);
-
bool useGps() const;
void setUseGps(bool enable);
bool isVideoTorchOn() const;
void setVideoTorchOn(bool on);
+ bool isToolBarShown() const;
+ void setToolBarShown(bool shown);
+
+ bool isVideoMuted() const;
+ void setVideoMuted(bool muted);
+
+ 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);
+
signals:
void modeChanged();
void creatorNameChanged();
- void postCaptureTimeoutChanged();
void useGpsChanged();
void useGeotagsChanged();
void imageSceneModeChanged();
void videoResolutionChanged();
void soundEnabledChanged();
void videoTorchOnChanged();
+ void toolBarShownChanged();
+ void videoMutedChanged();
+ void gridEnabledChanged();
+ void faceDetectionEnabledChanged();
+ void zoomAsShutterChanged();
+ void deviceChanged();
private:
QSettings *m_settings;