summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit/qmultimedia_common/mockcameraservice.h
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire@kdab.com>2012-04-12 11:14:04 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-25 04:02:15 +0200
commit7c84225cc877ef76143e1f476d0179bfb0594f02 (patch)
tree9ba3d564049c0526cb25504c7e0867cc10a19008 /tests/auto/unit/qmultimedia_common/mockcameraservice.h
parenta775af111bde7810ebd18ad9f02ff096a3f74cb6 (diff)
Move QVideoWindowControl out of widgets.
There is no widget dependency in it, and this enables the QML Video element to support video overlays later. Change-Id: I7ebcde350f9595a9f7c319663ff745930535a8a7 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'tests/auto/unit/qmultimedia_common/mockcameraservice.h')
-rw-r--r--tests/auto/unit/qmultimedia_common/mockcameraservice.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/auto/unit/qmultimedia_common/mockcameraservice.h b/tests/auto/unit/qmultimedia_common/mockcameraservice.h
index 93b7fcc4a..2ee01a3ec 100644
--- a/tests/auto/unit/qmultimedia_common/mockcameraservice.h
+++ b/tests/auto/unit/qmultimedia_common/mockcameraservice.h
@@ -56,10 +56,7 @@
#include "../qmultimedia_common/mockcameracontrol.h"
#include "../qmultimedia_common/mockvideosurface.h"
#include "../qmultimedia_common/mockvideorenderercontrol.h"
-
-#if defined(QT_MULTIMEDIA_MOCK_WIDGETS)
#include "../qmultimedia_common/mockvideowindowcontrol.h"
-#endif
class MockSimpleCameraService : public QMediaService
{
@@ -107,9 +104,7 @@ public:
mockImageProcessingControl = new MockImageProcessingControl(this);
mockImageEncoderControl = new MockImageEncoderControl(this);
rendererControl = new MockVideoRendererControl(this);
-#if defined(QT_MULTIMEDIA_MOCK_WIDGETS)
windowControl = new MockVideoWindowControl(this);
-#endif
rendererRef = 0;
windowRef = 0;
}
@@ -159,14 +154,12 @@ public:
return rendererControl;
}
}
-#if defined(QT_MULTIMEDIA_MOCK_WIDGETS)
if (qstrcmp(iid, QVideoWindowControl_iid) == 0) {
if (windowRef == 0) {
windowRef += 1;
return windowControl;
}
}
-#endif
return 0;
}
@@ -174,10 +167,8 @@ public:
{
if (control == rendererControl)
rendererRef -= 1;
-#if defined(QT_MULTIMEDIA_MOCK_WIDGETS)
if (control == windowControl)
windowRef -= 1;
-#endif
}
MockCameraControl *mockControl;
@@ -192,9 +183,7 @@ public:
MockImageProcessingControl *mockImageProcessingControl;
MockImageEncoderControl *mockImageEncoderControl;
MockVideoRendererControl *rendererControl;
-#if defined(QT_MULTIMEDIA_MOCK_WIDGETS)
MockVideoWindowControl *windowControl;
-#endif
int rendererRef;
int windowRef;
};