summaryrefslogtreecommitdiffstats
path: root/src/plugins/mediaservices
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-02-19 06:16:44 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-02-19 06:16:44 (GMT)
commitf80b82ed61bece1843c6ae011fb5678ba8210949 (patch)
tree9c7cf3c697d2b046832d7422e2afe95e25d3a052 /src/plugins/mediaservices
parent50fe29b569849d05db1625fa30fbd8618a941c5a (diff)
downloadQt-f80b82ed61bece1843c6ae011fb5678ba8210949.zip
Qt-f80b82ed61bece1843c6ae011fb5678ba8210949.tar.gz
Qt-f80b82ed61bece1843c6ae011fb5678ba8210949.tar.bz2
Change namespace; QtMedia -> QtMultimedia
Diffstat (limited to 'src/plugins/mediaservices')
-rw-r--r--src/plugins/mediaservices/directshow/mediaplayer/directshowmetadatacontrol.cpp98
-rw-r--r--src/plugins/mediaservices/directshow/mediaplayer/directshowmetadatacontrol.h6
-rw-r--r--src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp48
-rw-r--r--src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamermetadataprovider.h6
-rw-r--r--src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.h4
-rw-r--r--src/plugins/mediaservices/qt7/mediaplayer/qt7playermetadata.h8
-rw-r--r--src/plugins/mediaservices/qt7/mediaplayer/qt7playermetadata.mm20
7 files changed, 95 insertions, 95 deletions
diff --git a/src/plugins/mediaservices/directshow/mediaplayer/directshowmetadatacontrol.cpp b/src/plugins/mediaservices/directshow/mediaplayer/directshowmetadatacontrol.cpp
index e95ddcd..56820d2 100644
--- a/src/plugins/mediaservices/directshow/mediaplayer/directshowmetadatacontrol.cpp
+++ b/src/plugins/mediaservices/directshow/mediaplayer/directshowmetadatacontrol.cpp
@@ -57,50 +57,50 @@ namespace
{
struct QWMMetaDataKeyLookup
{
- QtMedia::MetaData key;
+ QtMultimedia::MetaData key;
const wchar_t *token;
};
}
static const QWMMetaDataKeyLookup qt_wmMetaDataKeys[] =
{
- { QtMedia::Title, L"Title" },
- { QtMedia::SubTitle, L"WM/SubTitle" },
- { QtMedia::Author, L"Author" },
- { QtMedia::Comment, L"Comment" },
- { QtMedia::Description, L"Description" },
- { QtMedia::Category, L"WM/Category" },
- { QtMedia::Genre, L"WM/Genre" },
+ { QtMultimedia::Title, L"Title" },
+ { QtMultimedia::SubTitle, L"WM/SubTitle" },
+ { QtMultimedia::Author, L"Author" },
+ { QtMultimedia::Comment, L"Comment" },
+ { QtMultimedia::Description, L"Description" },
+ { QtMultimedia::Category, L"WM/Category" },
+ { QtMultimedia::Genre, L"WM/Genre" },
//{ QtMedia::Date, 0 },
- { QtMedia::Year, L"WM/Year" },
- { QtMedia::UserRating, L"UserRating" },
+ { QtMultimedia::Year, L"WM/Year" },
+ { QtMultimedia::UserRating, L"UserRating" },
//{ QtMedia::MetaDatawords, 0 },
- { QtMedia::Language, L"Language" },
- { QtMedia::Publisher, L"WM/Publisher" },
- { QtMedia::Copyright, L"Copyright" },
- { QtMedia::ParentalRating, L"ParentalRating" },
- { QtMedia::RatingOrganisation, L"RatingOrganisation" },
+ { QtMultimedia::Language, L"Language" },
+ { QtMultimedia::Publisher, L"WM/Publisher" },
+ { QtMultimedia::Copyright, L"Copyright" },
+ { QtMultimedia::ParentalRating, L"ParentalRating" },
+ { QtMultimedia::RatingOrganisation, L"RatingOrganisation" },
// Media
- { QtMedia::Size, L"FileSize" },
- { QtMedia::MediaType, L"MediaType" },
- { QtMedia::Duration, L"Duration" },
+ { QtMultimedia::Size, L"FileSize" },
+ { QtMultimedia::MediaType, L"MediaType" },
+ { QtMultimedia::Duration, L"Duration" },
// Audio
- { QtMedia::AudioBitRate, L"AudioBitRate" },
- { QtMedia::AudioCodec, L"AudioCodec" },
- { QtMedia::ChannelCount, L"ChannelCount" },
- { QtMedia::SampleRate, L"Frequency" },
+ { QtMultimedia::AudioBitRate, L"AudioBitRate" },
+ { QtMultimedia::AudioCodec, L"AudioCodec" },
+ { QtMultimedia::ChannelCount, L"ChannelCount" },
+ { QtMultimedia::SampleRate, L"Frequency" },
// Music
- { QtMedia::AlbumTitle, L"WM/AlbumTitle" },
- { QtMedia::AlbumArtist, L"WM/AlbumArtist" },
- { QtMedia::ContributingArtist, L"Author" },
- { QtMedia::Composer, L"WM/Composer" },
- { QtMedia::Conductor, L"WM/Conductor" },
- { QtMedia::Lyrics, L"WM/Lyrics" },
- { QtMedia::Mood, L"WM/Mood" },
- { QtMedia::TrackNumber, L"WM/TrackNumber" },
+ { QtMultimedia::AlbumTitle, L"WM/AlbumTitle" },
+ { QtMultimedia::AlbumArtist, L"WM/AlbumArtist" },
+ { QtMultimedia::ContributingArtist, L"Author" },
+ { QtMultimedia::Composer, L"WM/Composer" },
+ { QtMultimedia::Conductor, L"WM/Conductor" },
+ { QtMultimedia::Lyrics, L"WM/Lyrics" },
+ { QtMultimedia::Mood, L"WM/Mood" },
+ { QtMultimedia::TrackNumber, L"WM/TrackNumber" },
//{ QtMedia::TrackCount, 0 },
//{ QtMedia::CoverArtUriSmall, 0 },
//{ QtMedia::CoverArtUriLarge, 0 },
@@ -111,22 +111,22 @@ static const QWMMetaDataKeyLookup qt_wmMetaDataKeys[] =
// Video
//{ QtMedia::FrameRate, 0 },
- { QtMedia::VideoBitRate, L"VideoBitRate" },
- { QtMedia::VideoCodec, L"VideoCodec" },
+ { QtMultimedia::VideoBitRate, L"VideoBitRate" },
+ { QtMultimedia::VideoCodec, L"VideoCodec" },
//{ QtMedia::PosterUri, 0 },
// Movie
- { QtMedia::ChapterNumber, L"ChapterNumber" },
- { QtMedia::Director, L"WM/Director" },
- { QtMedia::LeadPerformer, L"LeadPerformer" },
- { QtMedia::Writer, L"WM/Writer" },
+ { QtMultimedia::ChapterNumber, L"ChapterNumber" },
+ { QtMultimedia::Director, L"WM/Director" },
+ { QtMultimedia::LeadPerformer, L"LeadPerformer" },
+ { QtMultimedia::Writer, L"WM/Writer" },
// Photos
- { QtMedia::CameraManufacturer, L"CameraManufacturer" },
- { QtMedia::CameraModel, L"CameraModel" },
- { QtMedia::Event, L"Event" },
- { QtMedia::Subject, L"Subject" }
+ { QtMultimedia::CameraManufacturer, L"CameraManufacturer" },
+ { QtMultimedia::CameraModel, L"CameraModel" },
+ { QtMultimedia::Event, L"Event" },
+ { QtMultimedia::Subject, L"Subject" }
};
static QVariant getValue(IWMHeaderInfo *header, const wchar_t *key)
@@ -257,7 +257,7 @@ bool DirectShowMetaDataControl::isMetaDataAvailable() const
#endif
}
-QVariant DirectShowMetaDataControl::metaData(QtMedia::MetaData key) const
+QVariant DirectShowMetaDataControl::metaData(QtMultimedia::MetaData key) const
{
QVariant value;
@@ -277,19 +277,19 @@ QVariant DirectShowMetaDataControl::metaData(QtMedia::MetaData key) const
BSTR string = 0;
switch (key) {
- case QtMedia::Author:
+ case QtMultimedia::Author:
m_content->get_AuthorName(&string);
break;
- case QtMedia::Title:
+ case QtMultimedia::Title:
m_content->get_Title(&string);
break;
- case QtMedia::ParentalRating:
+ case QtMultimedia::ParentalRating:
m_content->get_Rating(&string);
break;
- case QtMedia::Description:
+ case QtMultimedia::Description:
m_content->get_Description(&string);
break;
- case QtMedia::Copyright:
+ case QtMultimedia::Copyright:
m_content->get_Copyright(&string);
break;
default:
@@ -305,13 +305,13 @@ QVariant DirectShowMetaDataControl::metaData(QtMedia::MetaData key) const
return value;
}
-void DirectShowMetaDataControl::setMetaData(QtMedia::MetaData, const QVariant &)
+void DirectShowMetaDataControl::setMetaData(QtMultimedia::MetaData, const QVariant &)
{
}
-QList<QtMedia::MetaData> DirectShowMetaDataControl::availableMetaData() const
+QList<QtMultimedia::MetaData> DirectShowMetaDataControl::availableMetaData() const
{
- return QList<QtMedia::MetaData>();
+ return QList<QtMultimedia::MetaData>();
}
QVariant DirectShowMetaDataControl::extendedMetaData(const QString &) const
diff --git a/src/plugins/mediaservices/directshow/mediaplayer/directshowmetadatacontrol.h b/src/plugins/mediaservices/directshow/mediaplayer/directshowmetadatacontrol.h
index eb3bbb7..966f9b8 100644
--- a/src/plugins/mediaservices/directshow/mediaplayer/directshowmetadatacontrol.h
+++ b/src/plugins/mediaservices/directshow/mediaplayer/directshowmetadatacontrol.h
@@ -71,9 +71,9 @@ public:
bool isWritable() const;
bool isMetaDataAvailable() const;
- QVariant metaData(QtMedia::MetaData key) const;
- void setMetaData(QtMedia::MetaData key, const QVariant &value);
- QList<QtMedia::MetaData> availableMetaData() const;
+ QVariant metaData(QtMultimedia::MetaData key) const;
+ void setMetaData(QtMultimedia::MetaData key, const QVariant &value);
+ QList<QtMultimedia::MetaData> availableMetaData() const;
QVariant extendedMetaData(const QString &key) const;
void setExtendedMetaData(const QString &key, const QVariant &value);
diff --git a/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp b/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp
index e38f80f..456dcfd 100644
--- a/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp
+++ b/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamermetadataprovider.cpp
@@ -47,51 +47,51 @@
struct QGstreamerMetaDataKeyLookup
{
- QtMedia::MetaData key;
+ QtMultimedia::MetaData key;
const char *token;
};
static const QGstreamerMetaDataKeyLookup qt_gstreamerMetaDataKeys[] =
{
- { QtMedia::Title, GST_TAG_TITLE },
+ { QtMultimedia::Title, GST_TAG_TITLE },
//{ QtMedia::SubTitle, 0 },
//{ QtMedia::Author, 0 },
- { QtMedia::Comment, GST_TAG_COMMENT },
- { QtMedia::Description, GST_TAG_DESCRIPTION },
+ { QtMultimedia::Comment, GST_TAG_COMMENT },
+ { QtMultimedia::Description, GST_TAG_DESCRIPTION },
//{ QtMedia::Category, 0 },
- { QtMedia::Genre, GST_TAG_GENRE },
- { QtMedia::Year, "year" },
+ { QtMultimedia::Genre, GST_TAG_GENRE },
+ { QtMultimedia::Year, "year" },
//{ QtMedia::UserRating, 0 },
- { QtMedia::Language, GST_TAG_LANGUAGE_CODE },
+ { QtMultimedia::Language, GST_TAG_LANGUAGE_CODE },
- { QtMedia::Publisher, GST_TAG_ORGANIZATION },
- { QtMedia::Copyright, GST_TAG_COPYRIGHT },
+ { QtMultimedia::Publisher, GST_TAG_ORGANIZATION },
+ { QtMultimedia::Copyright, GST_TAG_COPYRIGHT },
//{ QtMedia::ParentalRating, 0 },
//{ QtMedia::RatingOrganisation, 0 },
// Media
//{ QtMedia::Size, 0 },
//{ QtMedia::MediaType, 0 },
- { QtMedia::Duration, GST_TAG_DURATION },
+ { QtMultimedia::Duration, GST_TAG_DURATION },
// Audio
- { QtMedia::AudioBitRate, GST_TAG_BITRATE },
- { QtMedia::AudioCodec, GST_TAG_AUDIO_CODEC },
+ { QtMultimedia::AudioBitRate, GST_TAG_BITRATE },
+ { QtMultimedia::AudioCodec, GST_TAG_AUDIO_CODEC },
//{ QtMedia::ChannelCount, 0 },
//{ QtMedia::Frequency, 0 },
// Music
- { QtMedia::AlbumTitle, GST_TAG_ALBUM },
- { QtMedia::AlbumArtist, GST_TAG_ARTIST},
- { QtMedia::ContributingArtist, GST_TAG_PERFORMER },
+ { QtMultimedia::AlbumTitle, GST_TAG_ALBUM },
+ { QtMultimedia::AlbumArtist, GST_TAG_ARTIST},
+ { QtMultimedia::ContributingArtist, GST_TAG_PERFORMER },
#if (GST_VERSION_MAJOR >= 0) && (GST_VERSION_MINOR >= 10) && (GST_VERSION_MICRO >= 19)
{ QtMedia::Composer, GST_TAG_COMPOSER },
#endif
//{ QtMedia::Conductor, 0 },
//{ QtMedia::Lyrics, 0 },
//{ QtMedia::Mood, 0 },
- { QtMedia::TrackNumber, GST_TAG_TRACK_NUMBER },
+ { QtMultimedia::TrackNumber, GST_TAG_TRACK_NUMBER },
//{ QtMedia::CoverArtUrlSmall, 0 },
//{ QtMedia::CoverArtUrlLarge, 0 },
@@ -103,14 +103,14 @@ static const QGstreamerMetaDataKeyLookup qt_gstreamerMetaDataKeys[] =
// Video
//{ QtMedia::VideoFrameRate, 0 },
//{ QtMedia::VideoBitRate, 0 },
- { QtMedia::VideoCodec, GST_TAG_VIDEO_CODEC },
+ { QtMultimedia::VideoCodec, GST_TAG_VIDEO_CODEC },
//{ QtMedia::PosterUrl, 0 },
// Movie
//{ QtMedia::ChapterNumber, 0 },
//{ QtMedia::Director, 0 },
- { QtMedia::LeadPerformer, GST_TAG_PERFORMER },
+ { QtMultimedia::LeadPerformer, GST_TAG_PERFORMER },
//{ QtMedia::Writer, 0 },
// Photos
@@ -140,7 +140,7 @@ bool QGstreamerMetaDataProvider::isWritable() const
return false;
}
-QVariant QGstreamerMetaDataProvider::metaData(QtMedia::MetaData key) const
+QVariant QGstreamerMetaDataProvider::metaData(QtMultimedia::MetaData key) const
{
static const int count = sizeof(qt_gstreamerMetaDataKeys) / sizeof(QGstreamerMetaDataKeyLookup);
@@ -152,15 +152,15 @@ QVariant QGstreamerMetaDataProvider::metaData(QtMedia::MetaData key) const
return QVariant();
}
-void QGstreamerMetaDataProvider::setMetaData(QtMedia::MetaData key, QVariant const &value)
+void QGstreamerMetaDataProvider::setMetaData(QtMultimedia::MetaData key, QVariant const &value)
{
Q_UNUSED(key);
Q_UNUSED(value);
}
-QList<QtMedia::MetaData> QGstreamerMetaDataProvider::availableMetaData() const
+QList<QtMultimedia::MetaData> QGstreamerMetaDataProvider::availableMetaData() const
{
- static QMap<QByteArray, QtMedia::MetaData> keysMap;
+ static QMap<QByteArray, QtMultimedia::MetaData> keysMap;
if (keysMap.isEmpty()) {
const int count = sizeof(qt_gstreamerMetaDataKeys) / sizeof(QGstreamerMetaDataKeyLookup);
for (int i = 0; i < count; ++i) {
@@ -168,9 +168,9 @@ QList<QtMedia::MetaData> QGstreamerMetaDataProvider::availableMetaData() const
}
}
- QList<QtMedia::MetaData> res;
+ QList<QtMultimedia::MetaData> res;
foreach (const QByteArray &key, m_session->tags().keys()) {
- QtMedia::MetaData tag = keysMap.value(key, QtMedia::MetaData(-1));
+ QtMultimedia::MetaData tag = keysMap.value(key, QtMultimedia::MetaData(-1));
if (tag != -1)
res.append(tag);
}
diff --git a/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamermetadataprovider.h b/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamermetadataprovider.h
index cdf82d9..267c2d7 100644
--- a/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamermetadataprovider.h
+++ b/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamermetadataprovider.h
@@ -61,9 +61,9 @@ public:
bool isMetaDataAvailable() const;
bool isWritable() const;
- QVariant metaData(QtMedia::MetaData key) const;
- void setMetaData(QtMedia::MetaData key, const QVariant &value);
- QList<QtMedia::MetaData> availableMetaData() const;
+ QVariant metaData(QtMultimedia::MetaData key) const;
+ void setMetaData(QtMultimedia::MetaData key, const QVariant &value);
+ QList<QtMultimedia::MetaData> availableMetaData() const;
QVariant extendedMetaData(const QString &key) const ;
void setExtendedMetaData(const QString &key, const QVariant &value);
diff --git a/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.h b/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.h
index e277ba9..d650ec7 100644
--- a/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.h
+++ b/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.h
@@ -93,7 +93,7 @@ public:
void setPlaybackRate(qreal rate);
QMap<QByteArray ,QVariant> tags() const { return m_tags; }
- QMap<QtMedia::MetaData,QVariant> streamProperties(int streamNumber) const { return m_streamProperties[streamNumber]; }
+ QMap<QtMultimedia::MetaData,QVariant> streamProperties(int streamNumber) const { return m_streamProperties[streamNumber]; }
// int streamCount() const { return m_streamProperties.count(); }
// QMediaStreamsControl::StreamType streamType(int streamNumber) { return m_streamTypes.value(streamNumber, QMediaStreamsControl::UnknownStream); }
//
@@ -149,7 +149,7 @@ private:
QGstreamerVideoRendererInterface *m_renderer;
QMap<QByteArray, QVariant> m_tags;
- QList< QMap<QtMedia::MetaData,QVariant> > m_streamProperties;
+ QList< QMap<QtMultimedia::MetaData,QVariant> > m_streamProperties;
// QList<QMediaStreamsControl::StreamType> m_streamTypes;
// QMap<QMediaStreamsControl::StreamType, int> m_playbin2StreamOffset;
diff --git a/src/plugins/mediaservices/qt7/mediaplayer/qt7playermetadata.h b/src/plugins/mediaservices/qt7/mediaplayer/qt7playermetadata.h
index 9aa9887..f16807a 100644
--- a/src/plugins/mediaservices/qt7/mediaplayer/qt7playermetadata.h
+++ b/src/plugins/mediaservices/qt7/mediaplayer/qt7playermetadata.h
@@ -61,9 +61,9 @@ public:
bool isMetaDataAvailable() const;
bool isWritable() const;
- QVariant metaData(QtMedia::MetaData key) const;
- void setMetaData(QtMedia::MetaData key, const QVariant &value);
- QList<QtMedia::MetaData> availableMetaData() const;
+ QVariant metaData(QtMultimedia::MetaData key) const;
+ void setMetaData(QtMultimedia::MetaData key, const QVariant &value);
+ QList<QtMultimedia::MetaData> availableMetaData() const;
QVariant extendedMetaData(const QString &key) const ;
void setExtendedMetaData(const QString &key, const QVariant &value);
@@ -74,7 +74,7 @@ private slots:
private:
QT7PlayerSession *m_session;
- QMap<QtMedia::MetaData, QVariant> m_tags;
+ QMap<QtMultimedia::MetaData, QVariant> m_tags;
};
QT_END_NAMESPACE
diff --git a/src/plugins/mediaservices/qt7/mediaplayer/qt7playermetadata.mm b/src/plugins/mediaservices/qt7/mediaplayer/qt7playermetadata.mm
index 96b7a68..a14981a 100644
--- a/src/plugins/mediaservices/qt7/mediaplayer/qt7playermetadata.mm
+++ b/src/plugins/mediaservices/qt7/mediaplayer/qt7playermetadata.mm
@@ -72,18 +72,18 @@ bool QT7PlayerMetaDataControl::isWritable() const
return false;
}
-QVariant QT7PlayerMetaDataControl::metaData(QtMedia::MetaData key) const
+QVariant QT7PlayerMetaDataControl::metaData(QtMultimedia::MetaData key) const
{
return m_tags.value(key);
}
-void QT7PlayerMetaDataControl::setMetaData(QtMedia::MetaData key, QVariant const &value)
+void QT7PlayerMetaDataControl::setMetaData(QtMultimedia::MetaData key, QVariant const &value)
{
Q_UNUSED(key);
Q_UNUSED(value);
}
-QList<QtMedia::MetaData> QT7PlayerMetaDataControl::availableMetaData() const
+QList<QtMultimedia::MetaData> QT7PlayerMetaDataControl::availableMetaData() const
{
return m_tags.keys();
}
@@ -243,13 +243,13 @@ void QT7PlayerMetaDataControl::updateTags()
metaMap.insert(QLatin1String("nam"), QString::fromUtf8([name UTF8String]));
#endif // QUICKTIME_C_API_AVAILABLE
- m_tags.insert(QtMedia::AlbumArtist, metaMap.value(QLatin1String("ART")));
- m_tags.insert(QtMedia::AlbumTitle, metaMap.value(QLatin1String("alb")));
- m_tags.insert(QtMedia::Title, metaMap.value(QLatin1String("nam")));
- m_tags.insert(QtMedia::Date, metaMap.value(QLatin1String("day")));
- m_tags.insert(QtMedia::Genre, metaMap.value(QLatin1String("gnre")));
- m_tags.insert(QtMedia::TrackNumber, metaMap.value(QLatin1String("trk")));
- m_tags.insert(QtMedia::Description, metaMap.value(QLatin1String("des")));
+ m_tags.insert(QtMultimedia::AlbumArtist, metaMap.value(QLatin1String("ART")));
+ m_tags.insert(QtMultimedia::AlbumTitle, metaMap.value(QLatin1String("alb")));
+ m_tags.insert(QtMultimedia::Title, metaMap.value(QLatin1String("nam")));
+ m_tags.insert(QtMultimedia::Date, metaMap.value(QLatin1String("day")));
+ m_tags.insert(QtMultimedia::Genre, metaMap.value(QLatin1String("gnre")));
+ m_tags.insert(QtMultimedia::TrackNumber, metaMap.value(QLatin1String("trk")));
+ m_tags.insert(QtMultimedia::Description, metaMap.value(QLatin1String("des")));
}
if (!wasEmpty || !m_tags.isEmpty())