bdfbc11959c58134db68bf802c3e8a29f09e4c9f
[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
30 #define SCANNER_TYPE_V4L2                     "v4l2"
31 #define SCANNER_TYPE_ENUM                     "enum"
32
33 #define RENDERER_TYPE_MEEGO                   "meego"
34 #define RENDERER_TYPE_GENERIC                 "generic"
35
36 class QtCamConfigPrivate;
37
38 class QtCamConfig : public QObject {
39   Q_OBJECT
40
41 public:
42   QtCamConfig(QObject *parent = 0);
43   QtCamConfig(const QString& configPath, QObject *parent = 0);
44
45   virtual ~QtCamConfig();
46
47   QString deviceScannerType() const;
48   QString deviceScannerProperty() const;
49
50   QString videoSource() const;
51   QString viewfinderSink() const;
52   QString viewfinderRenderer() const;
53   QString audioSource() const;
54   QString wrapperVideoSource() const;
55   QString wrapperVideoSourceProperty() const;
56
57   QtCamImageSettings *imageSettings(const QVariant& id);
58   QtCamVideoSettings *videoSettings(const QVariant& id);
59
60   QString imageEncodingProfileName() const;
61   QString imageEncodingProfilePath() const;
62
63   QString videoEncodingProfileName() const;
64   QString videoEncodingProfilePath() const;
65
66   QString imageSuffix() const;
67   QString videoSuffix() const;
68
69   QString audioCaptureCaps() const;
70
71   QString imageCaptureStartedSound() const;
72   QString imageCaptureEndedSound() const;
73   QString videoRecordingStartedSound() const;
74   QString videoRecordingEndedSound() const;
75   QString autoFocusAcquiredSound() const;
76
77 private:
78   QtCamConfigPrivate *d_ptr;
79 };
80
81 #endif /* QT_CAM_CONFIG_H */