Fix namespace compilation.

Change-Id: Id8d71a48df20da16647834e8f9732012f26f928f
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
Toby Tomkins
2012-06-21 13:37:23 +10:00
committed by Qt by Nokia
parent d006d874ba
commit 6d301388e1
11 changed files with 25 additions and 12 deletions

View File

@@ -54,6 +54,8 @@
#include <gst/interfaces/xoverlay.h> #include <gst/interfaces/xoverlay.h>
#include <gst/interfaces/propertyprobe.h> #include <gst/interfaces/propertyprobe.h>
QT_BEGIN_NAMESPACE
class QGstreamerVideoWidget : public QWidget class QGstreamerVideoWidget : public QWidget
{ {
public: public:
@@ -350,3 +352,5 @@ void QGstreamerVideoWidgetControl::setSaturation(int saturation)
emit saturationChanged(saturation); emit saturationChanged(saturation);
} }
} }
QT_END_NAMESPACE

View File

@@ -57,6 +57,8 @@
//#define DEBUG_VIDEO_SURFACE_SINK //#define DEBUG_VIDEO_SURFACE_SINK
QT_BEGIN_NAMESPACE
Q_GLOBAL_STATIC_WITH_ARGS(QMediaPluginLoader, bufferPoolLoader, Q_GLOBAL_STATIC_WITH_ARGS(QMediaPluginLoader, bufferPoolLoader,
(QGstBufferPoolInterface_iid, QLatin1String("video/bufferpool"), Qt::CaseInsensitive)) (QGstBufferPoolInterface_iid, QLatin1String("video/bufferpool"), Qt::CaseInsensitive))
@@ -895,3 +897,4 @@ GstFlowReturn QVideoSurfaceGstSink::render(GstBaseSink *base, GstBuffer *buffer)
return sink->delegate->render(buffer); return sink->delegate->render(buffer);
} }
QT_END_NAMESPACE

View File

@@ -53,7 +53,7 @@
#define DEBUG_AUDIOENGINE #define DEBUG_AUDIOENGINE
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
/*! /*!
\qmlclass AudioEngine QDeclarativeAudioEngine \qmlclass AudioEngine QDeclarativeAudioEngine
@@ -536,6 +536,4 @@ void QDeclarativeAudioEngine::handleLoadingChanged()
The corresponding handler is \c onIsLoadingChanged. The corresponding handler is \c onIsLoadingChanged.
*/ */
QT_END_NAMESPACE QT_END_NAMESPACE

View File

@@ -54,7 +54,7 @@
#define DEBUG_AUDIOENGINE #define DEBUG_AUDIOENGINE
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
QSoundInstance::QSoundInstance(QObject *parent) QSoundInstance::QSoundInstance(QObject *parent)
: QObject(parent) : QObject(parent)

View File

@@ -49,6 +49,8 @@
#include <gst/app/gstappsrc.h> #include <gst/app/gstappsrc.h>
#include <gst/app/gstappbuffer.h> #include <gst/app/gstappbuffer.h>
QT_BEGIN_NAMESPACE
class QGstAppSrc : public QObject class QGstAppSrc : public QObject
{ {
Q_OBJECT Q_OBJECT
@@ -103,4 +105,6 @@ private:
bool m_forceData; bool m_forceData;
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -47,6 +47,8 @@
#include <gst/gst.h> #include <gst/gst.h>
QT_BEGIN_NAMESPACE
class QGstCodecsInfo class QGstCodecsInfo
{ {
public: public:
@@ -69,4 +71,6 @@ private:
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -48,11 +48,8 @@
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QAbstractVideoSurface; class QAbstractVideoSurface;
QT_END_NAMESPACE
class QX11VideoSurface; class QX11VideoSurface;
QT_BEGIN_NAMESPACE
class QGstreamerVideoOverlay : public QVideoWindowControl, public QGstreamerVideoRendererInterface class QGstreamerVideoOverlay : public QVideoWindowControl, public QGstreamerVideoRendererInterface
{ {
Q_OBJECT Q_OBJECT

View File

@@ -50,11 +50,8 @@
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QAbstractVideoSurface; class QAbstractVideoSurface;
QT_END_NAMESPACE
class QX11VideoSurface; class QX11VideoSurface;
QT_BEGIN_NAMESPACE
class QGstreamerVideoWindow : public QVideoWindowControl, class QGstreamerVideoWindow : public QVideoWindowControl,
public QGstreamerVideoRendererInterface, public QGstreamerVideoRendererInterface,
public QGstreamerSyncMessageFilter public QGstreamerSyncMessageFilter

View File

@@ -88,8 +88,12 @@ struct QGstXvImageBuffer {
static GstBufferClass *parent_class; static GstBufferClass *parent_class;
}; };
QT_END_NAMESPACE
Q_DECLARE_METATYPE(XvImage*) Q_DECLARE_METATYPE(XvImage*)
QT_BEGIN_NAMESPACE
class QGstXvImageBufferPool : public QObject, public QGstBufferPoolInterface { class QGstXvImageBufferPool : public QObject, public QGstBufferPoolInterface {
Q_OBJECT Q_OBJECT
Q_INTERFACES(QGstBufferPoolInterface) Q_INTERFACES(QGstBufferPoolInterface)

View File

@@ -68,7 +68,6 @@
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QAbstractVideoSurface; class QAbstractVideoSurface;
QT_END_NAMESPACE
#ifdef HAVE_XVIDEO #ifdef HAVE_XVIDEO
class QGstXvImageBuffer; class QGstXvImageBuffer;
@@ -182,4 +181,6 @@ public:
GstVideoSinkClass parent_class; GstVideoSinkClass parent_class;
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -50,9 +50,10 @@
#include <limits.h> #include <limits.h>
QT_BEGIN_NAMESPACE
class QMediaPlayerResourceSetInterface; class QMediaPlayerResourceSetInterface;
QT_BEGIN_NAMESPACE
class QMediaPlaylist; class QMediaPlaylist;
class QMediaPlaylistNavigator; class QMediaPlaylistNavigator;
class QSocketNotifier; class QSocketNotifier;