- Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: Ied06887225df341064c12bcc14c259ae74116f2e Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
143 lines
4.4 KiB
C++
143 lines
4.4 KiB
C++
/****************************************************************************
|
|
**
|
|
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
|
|
** Contact: http://www.qt-project.org/legal
|
|
**
|
|
** This file is part of the Qt Toolkit.
|
|
**
|
|
** $QT_BEGIN_LICENSE:LGPL21$
|
|
** Commercial License Usage
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
** accordance with the commercial license agreement provided with the
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
** a written agreement between you and Digia. For licensing terms and
|
|
** conditions see http://qt.digia.com/licensing. For further information
|
|
** use the contact form at http://qt.digia.com/contact-us.
|
|
**
|
|
** GNU Lesser General Public License Usage
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
** General Public License version 2.1 or version 3 as published by the Free
|
|
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
|
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
|
** following information to ensure the GNU Lesser General Public License
|
|
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
**
|
|
** In addition, as a special exception, Digia gives you certain additional
|
|
** rights. These rights are described in the Digia Qt LGPL Exception
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
**
|
|
** $QT_END_LICENSE$
|
|
**
|
|
****************************************************************************/
|
|
|
|
#include "qmediacontrol_p.h"
|
|
#include <qmetadatareadercontrol.h>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
/*!
|
|
\class QMetaDataReaderControl
|
|
\inmodule QtMultimedia
|
|
|
|
|
|
\ingroup multimedia_control
|
|
|
|
|
|
\brief The QMetaDataReaderControl class provides read access to the
|
|
meta-data of a QMediaService's media.
|
|
|
|
If a QMediaService can provide read or write access to the meta-data of
|
|
its current media it will implement QMetaDataReaderControl. This control
|
|
provides functions for both retrieving and setting meta-data values.
|
|
Meta-data may be addressed by the keys defined in the
|
|
QMediaMetaData namespace.
|
|
|
|
The functionality provided by this control is exposed to application
|
|
code by the meta-data members of QMediaObject, and so meta-data access
|
|
is potentially available in any of the media object classes. Any media
|
|
service may implement QMetaDataReaderControl.
|
|
|
|
The interface name of QMetaDataReaderControl is
|
|
\c org.qt-project.qt.metadatareadercontrol/5.0 as defined in
|
|
QMetaDataReaderControl_iid.
|
|
|
|
\sa QMediaService::requestControl(), QMediaObject
|
|
*/
|
|
|
|
/*!
|
|
\macro QMetaDataReaderControl_iid
|
|
|
|
\c org.qt-project.qt.metadatareadercontrol/5.0
|
|
|
|
Defines the interface name of the QMetaDataReaderControl class.
|
|
|
|
\relates QMetaDataReaderControl
|
|
*/
|
|
|
|
/*!
|
|
Construct a QMetaDataReaderControl with \a parent. This class is meant as a base class
|
|
for service specific meta data providers so this constructor is protected.
|
|
*/
|
|
|
|
QMetaDataReaderControl::QMetaDataReaderControl(QObject *parent):
|
|
QMediaControl(*new QMediaControlPrivate, parent)
|
|
{
|
|
}
|
|
|
|
/*!
|
|
Destroy the meta-data object.
|
|
*/
|
|
|
|
QMetaDataReaderControl::~QMetaDataReaderControl()
|
|
{
|
|
}
|
|
|
|
/*!
|
|
\fn bool QMetaDataReaderControl::isMetaDataAvailable() const
|
|
|
|
Identifies if meta-data is available from a media service.
|
|
|
|
Returns true if the meta-data is available and false otherwise.
|
|
*/
|
|
|
|
/*!
|
|
\fn QVariant QMetaDataReaderControl::metaData(const QString &key) const
|
|
|
|
Returns the meta-data for the given \a key.
|
|
*/
|
|
|
|
/*!
|
|
\fn QMetaDataReaderControl::availableMetaData() const
|
|
|
|
Returns a list of keys there is meta-data available for.
|
|
*/
|
|
|
|
/*!
|
|
\fn void QMetaDataReaderControl::metaDataChanged()
|
|
|
|
Signal the changes of meta-data.
|
|
|
|
If multiple meta-data elements are changed,
|
|
metaDataChanged(const QString &key, const QVariant &value) signal is emitted
|
|
for each of them with metaDataChanged() changed emitted once.
|
|
*/
|
|
|
|
/*!
|
|
\fn void QMetaDataReaderControl::metaDataChanged(const QString &key, const QVariant &value)
|
|
|
|
Signal the changes of one meta-data element \a value with the given \a key.
|
|
*/
|
|
|
|
/*!
|
|
\fn void QMetaDataReaderControl::metaDataAvailableChanged(bool available)
|
|
|
|
Signal the availability of meta-data has changed, \a available will
|
|
be true if the multimedia object has meta-data.
|
|
*/
|
|
|
|
#include "moc_qmetadatareadercontrol.cpp"
|
|
QT_END_NAMESPACE
|
|
|