42 #ifndef QMEDIARESOURCE_H |
42 #ifndef QMEDIARESOURCE_H |
43 #define QMEDIARESOURCE_H |
43 #define QMEDIARESOURCE_H |
44 |
44 |
45 #include <QtCore/qmap.h> |
45 #include <QtCore/qmap.h> |
46 #include <QtCore/qmetatype.h> |
46 #include <QtCore/qmetatype.h> |
|
47 #include <QtNetwork/qnetworkrequest.h> |
47 |
48 |
48 #include <qmobilityglobal.h> |
49 #include <qmobilityglobal.h> |
49 |
50 |
50 QTM_BEGIN_NAMESPACE |
51 QTM_BEGIN_NAMESPACE |
51 |
52 |
52 class Q_MEDIA_EXPORT QMediaResource |
53 class Q_MEDIA_EXPORT QMediaResource |
53 { |
54 { |
54 public: |
55 public: |
55 QMediaResource(); |
56 QMediaResource(); |
56 QMediaResource(const QUrl &url, const QString &mimeType = QString()); |
57 QMediaResource(const QUrl &url, const QString &mimeType = QString()); |
|
58 QMediaResource(const QNetworkRequest &request, const QString &mimeType = QString()); |
57 QMediaResource(const QMediaResource &other); |
59 QMediaResource(const QMediaResource &other); |
58 QMediaResource &operator =(const QMediaResource &other); |
60 QMediaResource &operator =(const QMediaResource &other); |
59 ~QMediaResource(); |
61 ~QMediaResource(); |
60 |
62 |
61 bool isNull() const; |
63 bool isNull() const; |
62 |
64 |
63 bool operator ==(const QMediaResource &other) const; |
65 bool operator ==(const QMediaResource &other) const; |
64 bool operator !=(const QMediaResource &other) const; |
66 bool operator !=(const QMediaResource &other) const; |
65 |
67 |
66 QUrl url() const; |
68 QUrl url() const; |
|
69 QNetworkRequest request() const; |
67 QString mimeType() const; |
70 QString mimeType() const; |
68 |
71 |
69 QString language() const; |
72 QString language() const; |
70 void setLanguage(const QString &language); |
73 void setLanguage(const QString &language); |
71 |
74 |