Added ROI an face detection
[harmattan/cameraplus] / lib / qtcamconfig.h
1 // -*- c++ -*-
2
3 /*!
4  * This file is part of CameraPlus.
5  *
6  * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21  */
22
23 #ifndef QT_CAM_CONFIG_H
24 #define QT_CAM_CONFIG_H
25
26 #include <QObject>
27 #include "qtcamimagesettings.h"
28 #include "qtcamvideosettings.h"
29 #include <QStringList>
30
31 #define SCANNER_TYPE_V4L2                     "v4l2"
32 #define SCANNER_TYPE_ENUM                     "enum"
33
34 #define RENDERER_TYPE_MEEGO                   "meego"
35 #define RENDERER_TYPE_GENERIC                 "generic"
36
37 #ifndef DATA_DIR
38 #define DATA_DIR                              "/usr/share/qtcamera/config/"
39 #endif /* DATA_DIR */
40
41 class QtCamConfigPrivate;
42
43 class QtCamConfig : public QObject {
44   Q_OBJECT
45
46 public:
47   QtCamConfig(QObject *parent = 0);
48   QtCamConfig(const QString& configPath, QObject *parent = 0);
49
50   virtual ~QtCamConfig();
51
52   QString deviceScannerType() const;
53   QString deviceScannerProperty() const;
54
55   QString videoSource() const;
56
57   QString viewfinderSink() const;
58   QString viewfinderRenderer() const;
59   bool viewfinderUseFence() const;
60
61   QString audioSource() const;
62   QString wrapperVideoSource() const;
63   QString wrapperVideoSourceProperty() const;
64
65   QtCamImageSettings *imageSettings(const QVariant& id);
66   QtCamVideoSettings *videoSettings(const QVariant& id);
67
68   QString imageEncodingProfileName() const;
69   QString imageEncodingProfilePath() const;
70
71   QString videoEncodingProfileName() const;
72   QString videoEncodingProfilePath() const;
73
74   QString imageSuffix() const;
75   QString videoSuffix() const;
76
77   QString audioCaptureCaps() const;
78
79   QString imageCaptureStartedSound() const;
80   QString imageCaptureEndedSound() const;
81   QString videoRecordingStartedSound() const;
82   QString videoRecordingEndedSound() const;
83   QString autoFocusAcquiredSound() const;
84
85   QStringList viewfinderFilters() const;
86
87   QString roiElement() const;
88   QString roiMessageName() const;
89   QString roiEnableProperty() const;
90   QString roiMessage() const;
91
92 private:
93   QtCamConfigPrivate *d_ptr;
94 };
95
96 #endif /* QT_CAM_CONFIG_H */