Added methods to obtain image and video suffixes from QtCamConfig
[harmattan/cameraplus] / lib / qtcamconfig.h
1 // -*- c++ -*-
2
3 #ifndef QT_CAM_CONFIG_H
4 #define QT_CAM_CONFIG_H
5
6 #include <QObject>
7 #include "qtcamimagesettings.h"
8 #include "qtcamvideosettings.h"
9
10 #define SCANNER_TYPE_V4L2                     "v4l2"
11 #define SCANNER_TYPE_ENUM                     "enum"
12
13 // TODO: kill those
14 //#define RENDERER_TYPE_GL_SINK                 "glsink"
15 //#define RENDERER_TYPE_X_OVERLAY               "xoverlay"
16 #define RENDERER_TYPE_MEEGO                   "meego"
17 #define RENDERER_TYPE_GENERIC                 "generic"
18 class QtCamConfigPrivate;
19
20 class QtCamConfig : public QObject {
21   Q_OBJECT
22
23 public:
24   QtCamConfig(QObject *parent = 0);
25   QtCamConfig(const QString& configPath, QObject *parent = 0);
26
27   virtual ~QtCamConfig();
28
29   QString deviceScannerType() const;
30   QString deviceScannerProperty() const;
31
32   QString videoSource() const;
33   QString viewfinderSink() const;
34   QString viewfinderRenderer() const;
35   QString audioSource() const;
36   QString wrapperVideoSource() const;
37   QString wrapperVideoSourceProperty() const;
38
39   QtCamImageSettings defaultImageSettings();
40   QList<QtCamImageSettings> imageSettings();
41
42   QtCamVideoSettings defaultVideoSettings();
43   QList<QtCamVideoSettings> videoSettings();
44
45   QString imageEncodingProfileName() const;
46   QString imageEncodingProfilePath() const;
47
48   QString videoEncodingProfileName() const;
49   QString videoEncodingProfilePath() const;
50
51   QString imageSuffix() const;
52   QString videoSuffix() const;
53
54   QString audioCaptureCaps() const;
55
56 private:
57   QtCamConfigPrivate *d_ptr;
58 };
59
60 #endif /* QT_CAM_CONFIG_H */