/usr/share/qt5/doc/qtmultimedia/qmediacontent.html is in qtmultimedia5-doc-html 5.2.1-0ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmediacontent.cpp -->
<title>QMediaContent Class | QtMultimedia 5.2</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.2</li>
<li><a href="qtmultimedia-index.html">Qt Multimedia</a></li>
<li><a href="qtmultimedia-module.html">C++ Classes</a></li>
<li>QMediaContent</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QMediaContent Class</h1>
<!-- $$$QMediaContent-brief -->
<p>The QMediaContent class provides access to the resources relating to a media content. <a href="#details">More...</a></p>
<!-- @@@QMediaContent -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include <QMediaContent></span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += multimedia</tt></td></tr></table><ul>
<li><a href="qmediacontent-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#QMediaContent">QMediaContent</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#QMediaContent-2">QMediaContent</a></b>(const QUrl &<i> url</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#QMediaContent-3">QMediaContent</a></b>(const QNetworkRequest &<i> request</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#QMediaContent-4">QMediaContent</a></b>(const QMediaResource &<i> resource</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#QMediaContent-5">QMediaContent</a></b>(const QMediaResourceList &<i> resources</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#QMediaContent-6">QMediaContent</a></b>(const QMediaContent &<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#QMediaContent-7">QMediaContent</a></b>(QMediaPlaylist *<i> playlist</i>, const QUrl &<i> contentUrl</i> = QUrl(), bool<i> takeOwnership</i> = false)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#dtor.QMediaContent">~QMediaContent</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QNetworkRequest </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#canonicalRequest">canonicalRequest</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMediaResource </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#canonicalResource">canonicalResource</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#canonicalUrl">canonicalUrl</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#isNull">isNull</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMediaPlaylist * </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#playlist">playlist</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMediaResourceList </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#resources">resources</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#operator-not-eq">operator!=</a></b>(const QMediaContent &<i> other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMediaContent & </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#operator-eq">operator=</a></b>(const QMediaContent &<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmediacontent.html#operator-eq-eq">operator==</a></b>(const QMediaContent &<i> other</i>) const</td></tr>
</table>
<a name="details"></a>
<!-- $$$QMediaContent-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QMediaContent class provides access to the resources relating to a media content.</p>
<p>QMediaContent is used within the multimedia framework as the logical handle to media content. A QMediaContent object is composed of one or more <a href="qmediaresource.html">QMediaResource</a>s where each resource provides the URL and format information of a different encoding of the content.</p>
<p>A non-null QMediaContent will always have a primary or canonical reference to the content available through the <a href="qmediacontent.html#canonicalUrl">canonicalUrl</a>() or <a href="qmediacontent.html#canonicalResource">canonicalResource</a>() methods, any additional resources are optional.</p>
<p>Alternatively QMediaContent can represent a playlist and contain a pointer to a valid <a href="qmediaplaylist.html">QMediaPlaylist</a> object. In this case URL is optional and can either be empty or point to the playlist URL.</p>
</div>
<!-- @@@QMediaContent -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QMediaContent[overload1]$$$QMediaContent -->
<h3 class="fn"><a name="QMediaContent"></a>QMediaContent::<span class="name">QMediaContent</span>()</h3>
<p>Constructs a null <a href="qmediacontent.html">QMediaContent</a>.</p>
<!-- @@@QMediaContent -->
<!-- $$$QMediaContent$$$QMediaContentconstQUrl& -->
<h3 class="fn"><a name="QMediaContent-2"></a>QMediaContent::<span class="name">QMediaContent</span>(const <span class="type">QUrl</span> &<i> url</i>)</h3>
<p>Constructs a media content with <i>url</i> providing a reference to the content.</p>
<!-- @@@QMediaContent -->
<!-- $$$QMediaContent$$$QMediaContentconstQNetworkRequest& -->
<h3 class="fn"><a name="QMediaContent-3"></a>QMediaContent::<span class="name">QMediaContent</span>(const <span class="type">QNetworkRequest</span> &<i> request</i>)</h3>
<p>Constructs a media content with <i>request</i> providing a reference to the content.</p>
<p>This constructor can be used to reference media content via network protocols such as HTTP. This may include additional information required to obtain the resource, such as Cookies or HTTP headers.</p>
<!-- @@@QMediaContent -->
<!-- $$$QMediaContent$$$QMediaContentconstQMediaResource& -->
<h3 class="fn"><a name="QMediaContent-4"></a>QMediaContent::<span class="name">QMediaContent</span>(const <span class="type"><a href="qmediaresource.html">QMediaResource</a></span> &<i> resource</i>)</h3>
<p>Constructs a media content with <i>resource</i> providing a reference to the content.</p>
<!-- @@@QMediaContent -->
<!-- $$$QMediaContent$$$QMediaContentconstQMediaResourceList& -->
<h3 class="fn"><a name="QMediaContent-5"></a>QMediaContent::<span class="name">QMediaContent</span>(const <span class="type"><a href="qmediaresource.html#QMediaResourceList-typedef">QMediaResourceList</a></span> &<i> resources</i>)</h3>
<p>Constructs a media content with <i>resources</i> providing a reference to the content.</p>
<!-- @@@QMediaContent -->
<!-- $$$QMediaContent$$$QMediaContentconstQMediaContent& -->
<h3 class="fn"><a name="QMediaContent-6"></a>QMediaContent::<span class="name">QMediaContent</span>(const <span class="type">QMediaContent</span> &<i> other</i>)</h3>
<p>Constructs a copy of the media content <i>other</i>.</p>
<!-- @@@QMediaContent -->
<!-- $$$QMediaContent$$$QMediaContentQMediaPlaylist*constQUrl&bool -->
<h3 class="fn"><a name="QMediaContent-7"></a>QMediaContent::<span class="name">QMediaContent</span>(<span class="type"><a href="qmediaplaylist.html">QMediaPlaylist</a></span> *<i> playlist</i>, const <span class="type">QUrl</span> &<i> contentUrl</i> = QUrl(), <span class="type">bool</span><i> takeOwnership</i> = false)</h3>
<p>Constructs a media content with <i>playlist</i>.</p>
<p><i>contentUrl</i> of a playlist is an optional parameter and can be empty.</p>
<p>Set <i>takeOwnership</i> to true if you want <a href="qmediacontent.html">QMediaContent</a> to take ownership of the playlist. <i>takeOwnership</i> is set to false by default.</p>
<!-- @@@QMediaContent -->
<!-- $$$~QMediaContent[overload1]$$$~QMediaContent -->
<h3 class="fn"><a name="dtor.QMediaContent"></a>QMediaContent::<span class="name">~QMediaContent</span>()</h3>
<p>Destroys the media content object.</p>
<!-- @@@~QMediaContent -->
<!-- $$$canonicalRequest[overload1]$$$canonicalRequest -->
<h3 class="fn"><a name="canonicalRequest"></a><span class="type">QNetworkRequest</span> QMediaContent::<span class="name">canonicalRequest</span>() const</h3>
<p>Returns a QNetworkRequest that represents that canonical resource for this media content.</p>
<!-- @@@canonicalRequest -->
<!-- $$$canonicalResource[overload1]$$$canonicalResource -->
<h3 class="fn"><a name="canonicalResource"></a><span class="type"><a href="qmediaresource.html">QMediaResource</a></span> QMediaContent::<span class="name">canonicalResource</span>() const</h3>
<p>Returns a <a href="qmediaresource.html">QMediaResource</a> that represents that canonical resource for this media content.</p>
<!-- @@@canonicalResource -->
<!-- $$$canonicalUrl[overload1]$$$canonicalUrl -->
<h3 class="fn"><a name="canonicalUrl"></a><span class="type">QUrl</span> QMediaContent::<span class="name">canonicalUrl</span>() const</h3>
<p>Returns a QUrl that represents that canonical resource for this media content.</p>
<!-- @@@canonicalUrl -->
<!-- $$$isNull[overload1]$$$isNull -->
<h3 class="fn"><a name="isNull"></a><span class="type">bool</span> QMediaContent::<span class="name">isNull</span>() const</h3>
<p>Returns true if this media content is null (uninitialized); false otherwise.</p>
<!-- @@@isNull -->
<!-- $$$playlist[overload1]$$$playlist -->
<h3 class="fn"><a name="playlist"></a><span class="type"><a href="qmediaplaylist.html">QMediaPlaylist</a></span> * QMediaContent::<span class="name">playlist</span>() const</h3>
<p>Returns a playlist for this media content or 0 if this <a href="qmediacontent.html">QMediaContent</a> is not a playlist.</p>
<!-- @@@playlist -->
<!-- $$$resources[overload1]$$$resources -->
<h3 class="fn"><a name="resources"></a><span class="type"><a href="qmediaresource.html#QMediaResourceList-typedef">QMediaResourceList</a></span> QMediaContent::<span class="name">resources</span>() const</h3>
<p>Returns a list of alternative resources for this media content. The first item in this list is always the canonical resource.</p>
<!-- @@@resources -->
<!-- $$$operator!=[overload1]$$$operator!=constQMediaContent& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QMediaContent::<span class="name">operator!=</span>(const <span class="type">QMediaContent</span> &<i> other</i>) const</h3>
<p>Returns true if <i>other</i> is not equivalent to this media content; false otherwise.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQMediaContent& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QMediaContent</span> & QMediaContent::<span class="name">operator=</span>(const <span class="type">QMediaContent</span> &<i> other</i>)</h3>
<p>Assigns the value of <i>other</i> to this media content.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQMediaContent& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QMediaContent::<span class="name">operator==</span>(const <span class="type">QMediaContent</span> &<i> other</i>) const</h3>
<p>Returns true if <i>other</i> is equivalent to this media content; false otherwise.</p>
<!-- @@@operator== -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|