qtmobility/src/multimedia/qmediacontent.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    43 #define QMEDIACONTENT_H
    43 #define QMEDIACONTENT_H
    44 
    44 
    45 #include <QtCore/qmetatype.h>
    45 #include <QtCore/qmetatype.h>
    46 #include <QtCore/qshareddata.h>
    46 #include <QtCore/qshareddata.h>
    47 
    47 
    48 #include <qmediaresource.h>
    48 #include "qmediaresource.h"
    49 
    49 
    50 #include <qmobilityglobal.h>
    50 #include <qmobilityglobal.h>
    51 
    51 
    52 
    52 
    53 QTM_BEGIN_NAMESPACE
    53 QTM_BEGIN_NAMESPACE
    56 class Q_MEDIA_EXPORT QMediaContent
    56 class Q_MEDIA_EXPORT QMediaContent
    57 {
    57 {
    58 public:
    58 public:
    59     QMediaContent();
    59     QMediaContent();
    60     QMediaContent(const QUrl &contentUrl);
    60     QMediaContent(const QUrl &contentUrl);
       
    61     QMediaContent(const QNetworkRequest &contentRequest);
    61     QMediaContent(const QMediaResource &contentResource);
    62     QMediaContent(const QMediaResource &contentResource);
    62     QMediaContent(const QMediaResourceList &resources);
    63     QMediaContent(const QMediaResourceList &resources);
    63     QMediaContent(const QMediaContent &other);
    64     QMediaContent(const QMediaContent &other);
    64     ~QMediaContent();
    65     ~QMediaContent();
    65 
    66 
    69     bool operator!=(const QMediaContent &other) const;
    70     bool operator!=(const QMediaContent &other) const;
    70 
    71 
    71     bool isNull() const;
    72     bool isNull() const;
    72 
    73 
    73     QUrl canonicalUrl() const;
    74     QUrl canonicalUrl() const;
       
    75     QNetworkRequest canonicalRequest() const;
    74     QMediaResource canonicalResource() const;
    76     QMediaResource canonicalResource() const;
    75 
    77 
    76     QMediaResourceList resources() const;
    78     QMediaResourceList resources() const;
    77 
    79 
    78 private:
    80 private: