equal
deleted
inserted
replaced
54 virtual void seek(qint64 milliseconds); |
54 virtual void seek(qint64 milliseconds); |
55 virtual bool isSeekable() const; |
55 virtual bool isSeekable() const; |
56 virtual MediaSource source() const; |
56 virtual MediaSource source() const; |
57 virtual void setFileSource(const Phonon::MediaSource&, RFile&); |
57 virtual void setFileSource(const Phonon::MediaSource&, RFile&); |
58 virtual void setNextSource(const MediaSource &source); |
58 virtual void setNextSource(const MediaSource &source); |
59 |
|
60 // VolumeObserver |
|
61 virtual void volumeChanged(qreal volume); |
59 virtual void volumeChanged(qreal volume); |
62 |
60 |
63 protected: |
61 protected: |
64 // AbstractPlayer |
62 // AbstractPlayer |
65 virtual void doSetTickInterval(qint32 interval); |
63 virtual void doSetTickInterval(qint32 interval); |
69 virtual void doStop() = 0; |
67 virtual void doStop() = 0; |
70 virtual void doSeek(qint64 pos) = 0; |
68 virtual void doSeek(qint64 pos) = 0; |
71 virtual int setDeviceVolume(int mmfVolume) = 0; |
69 virtual int setDeviceVolume(int mmfVolume) = 0; |
72 virtual int openFile(RFile& file) = 0; |
70 virtual int openFile(RFile& file) = 0; |
73 virtual void close() = 0; |
71 virtual void close() = 0; |
|
72 virtual void changeState(PrivateState newState); |
74 |
73 |
75 /** |
74 void updateMetaData(); |
76 * Changes state and emits stateChanged() |
75 virtual int numberOfMetaDataEntries() const = 0; |
77 */ |
76 virtual QPair<QString, QString> metaDataEntry(int index) const = 0; |
78 virtual void changeState(PrivateState newState); |
|
79 |
77 |
80 protected: |
78 protected: |
81 bool tickTimerRunning() const; |
79 bool tickTimerRunning() const; |
82 void startTickTimer(); |
80 void startTickTimer(); |
83 void stopTickTimer(); |
81 void stopTickTimer(); |
107 int m_mmfMaxVolume; |
105 int m_mmfMaxVolume; |
108 |
106 |
109 MediaSource m_source; |
107 MediaSource m_source; |
110 MediaSource m_nextSource; |
108 MediaSource m_nextSource; |
111 |
109 |
|
110 QMultiMap<QString, QString> m_metaData; |
|
111 |
112 }; |
112 }; |
113 } |
113 } |
114 } |
114 } |
115 |
115 |
116 QT_END_NAMESPACE |
116 QT_END_NAMESPACE |