~timo-jyrinki/qtubuntu-cameraplugin-fake/rebuild_against_qt521

« back to all changes in this revision

Viewing changes to src/fakecameraservice.cpp

  • Committer: Tarmac
  • Author(s): Guenter Schwann
  • Date: 2012-11-08 17:55:25 UTC
  • mfrom: (20.1.2 cameraPlugin-fake-switch)
  • Revision ID: tarmac-20121108175525-2todjwibmjs0wo0f
Support for front/back camera switching.

Approved by Ugo Riboni, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "fakecamerazoomcontrol.h"
25
25
#include "fakeimagecapturecontrol.h"
26
26
#include "fakemediarecordercontrol.h"
 
27
#include "fakevideodeviceselectorcontrol.h"
27
28
#include "fakevideorenderercontrol.h"
28
29
 
29
30
#include <QDebug>
38
39
    m_zoomControl = new FakeCameraZoomControl(this);
39
40
    m_imageCaptureControl = new FakeImageCaptureControl(this);
40
41
    m_recorderControl = new FakeMediaRecorderControl(this);
 
42
    m_deviceSelectControl = new FakeVideoDeviceSelectorControl(this);
41
43
    m_videoOutput = new FakeVideoRendererControl(this);
42
44
}
43
45
 
50
52
    delete m_zoomControl;
51
53
    delete m_imageCaptureControl;
52
54
    delete m_recorderControl;
 
55
    delete m_deviceSelectControl;
53
56
    delete m_videoOutput;
54
57
}
55
58
 
73
76
    if (qstrcmp(name, QMediaRecorderControl_iid) == 0)
74
77
        return m_recorderControl;
75
78
 
 
79
    if (qstrcmp(name, QVideoDeviceSelectorControl_iid) == 0)
 
80
        return m_deviceSelectControl;
 
81
 
76
82
    if (qstrcmp(name, QVideoRendererControl_iid) == 0)
77
83
        return m_videoOutput;
78
84