Changeset 846 for trunk/src/3rdparty/phonon/mmf/abstractmediaplayer.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/3rdparty/phonon/mmf/abstractmediaplayer.h
r769 r846 24 24 #include <e32std.h> 25 25 #include "abstractplayer.h" 26 #ifdef PHONON_MMF_PROGRESSIVE_DOWNLOAD 27 # include "download.h" 28 #endif 26 29 27 30 class RFile; … … 48 51 49 52 public: 50 virtual void open(const Phonon::MediaSource&, RFile&); 53 virtual void open(); 54 virtual void close(); 51 55 52 56 // MediaObjectInterface … … 56 60 virtual void seek(qint64 milliseconds); 57 61 virtual bool isSeekable() const; 62 virtual qint64 currentTime() const; 58 63 virtual void volumeChanged(qreal volume); 59 64 … … 69 74 virtual void doSeek(qint64 pos) = 0; 70 75 virtual int setDeviceVolume(int mmfVolume) = 0; 76 virtual int openFile(const QString &fileName) = 0; 71 77 virtual int openFile(RFile& file) = 0; 72 virtual int openUrl(const QString& url) = 0; 78 virtual int openUrl(const QString& url, int iap) = 0; 79 virtual int openDescriptor(const TDesC8 &des) = 0; 73 80 virtual int bufferStatus() const = 0; 74 virtual void close() = 0;81 virtual void doClose() = 0; 75 82 76 83 void updateMetaData(); 84 virtual qint64 getCurrentTime() const = 0; 77 85 virtual int numberOfMetaDataEntries() const = 0; 78 86 virtual QPair<QString, QString> metaDataEntry(int index) const = 0; … … 87 95 static qint64 toMilliSeconds(const TTimeIntervalMicroSeconds &); 88 96 97 bool isProgressiveDownload() const; 98 bool progressiveDownloadStalled() const; 99 89 100 private: 90 101 void startPositionTimer(); … … 97 108 void resetMarksIfRewound(); 98 109 void startPlayback(); 110 void setProgressiveDownloadStalled(); 99 111 100 112 enum Pending { … … 109 121 void positionTick(); 110 122 void bufferStatusTick(); 123 #ifdef PHONON_MMF_PROGRESSIVE_DOWNLOAD 124 void downloadLengthChanged(qint64); 125 void downloadStateChanged(Download::State); 126 #endif 111 127 112 128 private: … … 116 132 117 133 QScopedPointer<QTimer> m_positionTimer; 134 qint64 m_position; 118 135 119 136 QScopedPointer<QTimer> m_bufferStatusTimer; … … 124 141 bool m_prefinishMarkSent; 125 142 bool m_aboutToFinishSent; 143 144 // Used for playback of resource files 145 TPtrC8 m_buffer; 146 147 #ifdef PHONON_MMF_PROGRESSIVE_DOWNLOAD 148 Download *m_download; 149 bool m_downloadStalled; 150 #endif 126 151 127 152 QMultiMap<QString, QString> m_metaData;
Note:
See TracChangeset
for help on using the changeset viewer.