1// qmediaresource.sip generated by MetaSIP
2//
3// This file is part of the QtMultimedia Python extension module.
4//
5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
6//
7// This file is part of PyQt5.
8//
9// This file may be used under the terms of the GNU General Public License
10// version 3.0 as published by the Free Software Foundation and appearing in
11// the file LICENSE included in the packaging of this file.  Please review the
12// following information to ensure the GNU General Public License version 3.0
13// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14//
15// If you do not wish to use this file under the terms of the GPL version 3.0
16// then you may purchase a commercial license.  For more information contact
17// info@riverbankcomputing.com.
18//
19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
22
23class QMediaResource
24{
25%TypeHeaderCode
26#include <qmediaresource.h>
27%End
28
29public:
30    QMediaResource();
31    QMediaResource(const QUrl &url, const QString &mimeType = QString());
32    QMediaResource(const QNetworkRequest &request, const QString &mimeType = QString());
33    QMediaResource(const QMediaResource &other);
34    ~QMediaResource();
35    bool isNull() const;
36    bool operator==(const QMediaResource &other) const;
37    bool operator!=(const QMediaResource &other) const;
38    QUrl url() const;
39    QNetworkRequest request() const;
40    QString mimeType() const;
41    QString language() const;
42    void setLanguage(const QString &language);
43    QString audioCodec() const;
44    void setAudioCodec(const QString &codec);
45    QString videoCodec() const;
46    void setVideoCodec(const QString &codec);
47    qint64 dataSize() const;
48    void setDataSize(const qint64 size);
49    int audioBitRate() const;
50    void setAudioBitRate(int rate);
51    int sampleRate() const;
52    void setSampleRate(int frequency);
53    int channelCount() const;
54    void setChannelCount(int channels);
55    int videoBitRate() const;
56    void setVideoBitRate(int rate);
57    QSize resolution() const;
58    void setResolution(const QSize &resolution);
59    void setResolution(int width, int height);
60};
61
62typedef QList<QMediaResource> QMediaResourceList;
63