A number of documentation fixes.
authorMichael Goddard <michael.goddard@nokia.com>
Wed, 6 Jun 2012 02:28:34 +0000 (12:28 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 7 Jun 2012 05:05:57 +0000 (07:05 +0200)
* Remove references to private QMediaServiceProvider class and point
  new backend writers to irc/mailing lists
* Wrong or missing parameter names
* Fix a few links
* Correct a few property data types
* Various other things to keep qdoc happier

Change-Id: I5c8800d65c00f0783541afef35990bd3918acab7
Reviewed-by: Angus Cummings <angus.cummings@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
doc/src/multimediabackend.qdoc
src/imports/multimedia/qdeclarativeaudio.cpp
src/imports/multimedia/qdeclarativecameracapture.cpp
src/imports/multimedia/qdeclarativecameraimageprocessing.cpp
src/multimedia/audio/qaudiooutput.cpp
src/multimedia/controls/qmediarecordercontrol.cpp
src/multimedia/playback/qmediaplayer.cpp
src/multimedia/qmediaservice.cpp
src/multimedia/recording/qmediaencodersettings.cpp
src/multimediawidgets/qvideowidget.cpp

index fffa12176a32ec85eae5b2a5e3f34887b3d73f95..2c359d02e91dc3d32ce8970b08a334ad65281a2f 100644 (file)
@@ -53,13 +53,14 @@ this by implementing certain control and service classes, as detailed below.
 For the developer who wishes to extend the functionality of the Qt Multimedia
 classes there are several classes of particular importance. The classes
 providing default functionality are QMediaService, QMediaServiceProvider and
-QMediaControl.
+QMediaControl.  Some of these classes are not in the public API since they
+are very seldom useful to application developers.
 
-to extend the Multimedia API you would use the following three classes or
+To extend the Multimedia API you would use the following three classes or
 classes derived from them.
 
     \list
-    \li \l QMediaServiceProvider is used by the top level client class to
+    \li QMediaServiceProvider is used by the top level client class to
     request a service. The top level class knowing what kind of service it needs.
 
     \li \l QMediaService provides a service and when asked by the top level
@@ -89,6 +90,11 @@ for the interface.
 
 \section2 Adding a Media Service Provider
 
+In general, adding a new media service provider is outside the scope of this documentation.
+For best results, consult the existing provider source code, and seek assistance on the relevant
+mailing lists and IRC channels.
+
+\omit
 The base class for creating new service providers is \l{QMediaServiceProvider}.
 The user must implement the \l{QMediaServiceProvider::requestService()}{requestService()}
 function
@@ -123,6 +129,8 @@ Other methods that may be overloaded
 
 The choice of what needs to be done depends on what the developer wishes to do with the service.
 
+\endomit
+
 \section2 Classes for service implementers.
 
 \annotatedlist multimedia_control
index 347a49f99fade9869b0eec9809ba868b3ca939f3..9e09e270ed1e608592411f643dfc2b8945a96b98 100644 (file)
@@ -1105,7 +1105,7 @@ void QDeclarativeAudio::_q_statusChanged()
 ///////////// MediaPlayer Docs /////////////
 
 /*!
-    \qmlclass MediaPlayer
+    \qmlclass MediaPlayer QDeclarativeAudio
     \brief The MediaPlayer type allows you to add media playback to a scene.
 
     \inqmlmodule QtMultimedia 5
index 8c575c9c0e6d012ad50fac28fc5f2b99cf028dad..56987f7122b7ffa4746e0500cf4800a0c817c9d3 100644 (file)
@@ -131,7 +131,7 @@ QDeclarativeCameraCapture::~QDeclarativeCameraCapture()
     Indicates camera is ready to capture photo.
 
    It's permissible to call capture() while the camera is active
-   regardless of isReadyForCapture property value.
+   regardless of the \e ready property value.
    If camera is not ready to capture image immediately,
    the capture request is queued with all the related camera settings
    to be executed as soon as possible.
index 385da404ae8bfbec53455762ed1f5c9a6aed9c85..ff329982e5be386c257968926609dfa525efdf56 100644 (file)
@@ -152,7 +152,7 @@ void QDeclarativeCameraImageProcessing::setManualWhiteBalance(qreal colorTemp) c
 }
 
 /*!
-    \qmlproperty int QtMultimedia5::CameraImageProcessing::contrast
+    \qmlproperty qreal QtMultimedia5::CameraImageProcessing::contrast
 
     Image contrast adjustment.
     Valid contrast adjustment values range between -1.0 and 1.0, with a default of 0.
@@ -171,7 +171,7 @@ void QDeclarativeCameraImageProcessing::setContrast(qreal value)
 }
 
 /*!
-    \qmlproperty int QtMultimedia5::CameraImageProcessing::saturation
+    \qmlproperty qreal QtMultimedia5::CameraImageProcessing::saturation
 
     Image saturation adjustment.
     Valid saturation adjustment values range between -1.0 and 1.0, the default is 0.
@@ -190,7 +190,7 @@ void QDeclarativeCameraImageProcessing::setSaturation(qreal value)
 }
 
 /*!
-    \qmlproperty int QtMultimedia5::CameraImageProcessing::sharpeningLevel
+    \qmlproperty qreal QtMultimedia5::CameraImageProcessing::sharpeningLevel
 
     Adjustment of sharpening level applied to image.
 
@@ -211,7 +211,7 @@ void QDeclarativeCameraImageProcessing::setSharpeningLevel(qreal value)
 }
 
 /*!
-    \qmlproperty int QtMultimedia5::CameraImageProcessing::denoisingLevel
+    \qmlproperty qreal QtMultimedia5::CameraImageProcessing::denoisingLevel
 
     Adjustment of denoising applied to image.
 
index 685667ee54b8eabfbce7b09ae50908c6ea100e92..4150e8c233d33b8bf3b2d85b7333f6f467729b77 100644 (file)
@@ -379,7 +379,7 @@ QString QAudioOutput::category() const
 }
 
 /*!
-    Sets the audio category of this audio stream.
+    Sets the audio category of this audio stream to \a category.
 
     Some platforms can group audio streams into categories
     and manage their volumes independently, or display them
index f7a486cfbbe2358e28dd4e0f3cbd6e71f73cfac4..60414db60de12a003e33d74bb0c5849d0d500b35 100644 (file)
@@ -54,14 +54,14 @@ QT_BEGIN_NAMESPACE
     \brief The QMediaRecorderControl class provides access to the recording
     functionality of a QMediaService.
 
+    Generally you will use the QMediaRecorder class in application code - this
+    class is mostly used when implementing a new QMediaService or if there is
+    access to specific low level functionality not otherwise present in QMediaRecorder.
+
     If a QMediaService can record media it will implement QMediaRecorderControl.
     This control provides a means to set the \l {outputLocation()}{output location},
-    and \l {record()}{start}, \l {pause()}{pause} and \l {stop()}{stop}
-    recording.  It also provides feedback on the \l {duration()}{duration}
-    of the recording.
-
-    The functionality provided by this control is exposed to application
-    code through the QMediaRecorder class.
+    and record, pause and stop recording via the \l setState() method.  It also
+    provides feedback on the \l {duration()}{duration} of the recording.
 
     The interface name of QMediaRecorderControl is \c org.qt-project.qt.mediarecordercontrol/5.0 as
     defined in QMediaRecorderControl_iid.
index 3b1b06b3bd4d55b546442d6be47ca0cedd6e346e..067893ef1ef89732316a64f1dbc4fc30cc86bfa2 100644 (file)
@@ -83,7 +83,7 @@ QT_BEGIN_NAMESPACE
     functions for things like:
 
     \list
-    \li Accessing the currently playing media's metadata (\l {QMediaObject::metaData()} and \l predefined \l {QtMultimedia::MetaData}{meta-data keys})
+    \li Accessing the currently playing media's metadata (\l {QMediaObject::metaData()} and \l {QtMultimedia::MetaData}{predefined meta-data keys})
     \li Checking to see if the media playback service is currently available (\l {QMediaObject::availabilityError()})
     \endlist
 
index 8ab2cb8a58e55a0ac5e41d48fc0e1b638929c529..3488d082b0b86e5e5588488bb24299b0d4ff2aa3 100644 (file)
@@ -76,9 +76,11 @@ QT_BEGIN_NAMESPACE
     Media objects can use services loaded dynamically from plug-ins or
     implemented statically within an applications.  Plug-in based services
     should also implement the QMediaServiceProviderPlugin interface.  Static
-    services should implement the QMediaServiceProvider interface.
+    services should implement the QMediaServiceProvider interface.  In general,
+    implementing a QMediaService is outside of the scope of this documentation
+    and support on the relevant mailing lists or IRC channels should be sought.
 
-    \sa QMediaObject, QMediaControl, QMediaServiceProvider, QMediaServiceProviderPlugin
+    \sa QMediaObject, QMediaControl
 */
 
 /*!
index edb72b511aa556deba22f5a83bc51e168896930d..fa79e51336bad9233b6c891335107238672a777f 100644 (file)
@@ -342,7 +342,7 @@ QVariantMap QAudioEncoderSettings::encodingOptions() const
 }
 
 /*!
-    Set the encoding \a option \a value.
+    Set the encoding \a option to \a value.
 
     The supported set and meaning of encoding options are
     system and selected codec specific.
@@ -359,12 +359,12 @@ void QAudioEncoderSettings::setEncodingOption(const QString &option, const QVari
 }
 
 /*!
-    Replace all the \a encoding options.
+    Replace all the encoding options with \a options.
 
     The supported set and meaning of encoding options are
     system and selected codec specific.
 
-    \sa encodingOption(), setEncodingOptions()
+    \sa encodingOption(), setEncodingOption()
 */
 void QAudioEncoderSettings::setEncodingOptions(const QVariantMap &options)
 {
@@ -687,12 +687,12 @@ void QVideoEncoderSettings::setEncodingOption(const QString &option, const QVari
 }
 
 /*!
-    Replace all the \a encoding options.
+    Replace all the encoding options with \a options.
 
     The supported set and meaning of encoding options are
     system and selected codec specific.
 
-    \sa encodingOption(), setEncodingOptions()
+    \sa encodingOption(), setEncodingOption()
 */
 void QVideoEncoderSettings::setEncodingOptions(const QVariantMap &options)
 {
@@ -932,12 +932,12 @@ void QImageEncoderSettings::setEncodingOption(const QString &option, const QVari
 }
 
 /*!
-    Replace all the \a encoding options.
+    Replace all the encoding options with \a options.
 
     The supported set and meaning of encoding options are
     system and selected codec specific.
 
-    \sa encodingOption(), setEncodingOptions()
+    \sa encodingOption(), setEncodingOption()
 */
 void QImageEncoderSettings::setEncodingOptions(const QVariantMap &options)
 {
index 6a557b39f6780d215f95ee47e0044e9b431bb2a6..e798d63cf12de78b294fbc6e79d218eea49dbc0d 100644 (file)
@@ -739,7 +739,7 @@ void QVideoWidget::setFullScreen(bool fullScreen)
 
     Signals that the \a fullScreen mode of a video widget has changed.
 
-    \sa fullScreen
+    \sa fullScreen()
 */
 
 /*!
@@ -771,7 +771,7 @@ void QVideoWidget::setBrightness(int brightness)
 
     Signals that a video widgets's \a brightness adjustment has changed.
 
-    \sa brightness
+    \sa brightness()
 */
 
 /*!
@@ -804,7 +804,7 @@ void QVideoWidget::setContrast(int contrast)
 
     Signals that a video widgets's \a contrast adjustment has changed.
 
-    \sa contrast
+    \sa contrast()
 */
 
 /*!
@@ -836,7 +836,7 @@ void QVideoWidget::setHue(int hue)
 
     Signals that a video widgets's \a hue has changed.
 
-    \sa hue
+    \sa hue()
 */
 
 /*!
@@ -869,7 +869,7 @@ void QVideoWidget::setSaturation(int saturation)
 
     Signals that a video widgets's \a saturation has changed.
 
-    \sa saturation
+    \sa saturation()
 */
 
 /*!
@@ -889,6 +889,7 @@ QSize QVideoWidget::sizeHint() const
 }
 
 /*!
+  \reimp
   Current event \a event.
   Returns the value of the baseclass QWidget::event(QEvent *event) function.
 */
@@ -922,6 +923,7 @@ bool QVideoWidget::event(QEvent *event)
 }
 
 /*!
+  \reimp
   Handles the show \a event.
  */
 void QVideoWidget::showEvent(QShowEvent *event)
@@ -945,7 +947,7 @@ void QVideoWidget::showEvent(QShowEvent *event)
 }
 
 /*!
-
+  \reimp
   Handles the hide \a event.
 */
 void QVideoWidget::hideEvent(QHideEvent *event)
@@ -959,6 +961,7 @@ void QVideoWidget::hideEvent(QHideEvent *event)
 }
 
 /*!
+  \reimp
   Handles the resize \a event.
  */
 void QVideoWidget::resizeEvent(QResizeEvent *event)
@@ -972,6 +975,7 @@ void QVideoWidget::resizeEvent(QResizeEvent *event)
 }
 
 /*!
+  \reimp
   Handles the move \a event.
  */
 void QVideoWidget::moveEvent(QMoveEvent *event)
@@ -983,6 +987,7 @@ void QVideoWidget::moveEvent(QMoveEvent *event)
 }
 
 /*!
+  \reimp
   Handles the paint \a event.
  */
 void QVideoWidget::paintEvent(QPaintEvent *event)