diff options
Diffstat (limited to 'src/panels/information/phononwidget.h')
| -rw-r--r-- | src/panels/information/phononwidget.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/src/panels/information/phononwidget.h b/src/panels/information/phononwidget.h index 00c6574bf..81fb1e8f0 100644 --- a/src/panels/information/phononwidget.h +++ b/src/panels/information/phononwidget.h @@ -31,6 +31,7 @@ namespace Phonon { class MediaObject; class SeekSlider; + class VideoPlayer; } // namespace Phonon class QToolButton; @@ -39,8 +40,27 @@ class PhononWidget : public QWidget { Q_OBJECT public: + enum Mode + { + Audio, + Video + }; + PhononWidget(QWidget *parent = 0); + void setUrl(const KUrl &url); + KUrl url() const; + + void setMode(Mode mode); + Mode mode() const; + + signals: + void playingStarted(); + void playingStopped(); + + protected: + virtual void showEvent(QShowEvent *event); + virtual void hideEvent(QHideEvent *event); private slots: void stateChanged(Phonon::State); @@ -48,14 +68,13 @@ class PhononWidget : public QWidget void stop(); private: - void requestMedia(); - - private: + Mode m_mode; KUrl m_url; QToolButton *m_playButton; QToolButton *m_stopButton; Phonon::MediaObject *m_media; Phonon::SeekSlider *m_seekSlider; + Phonon::VideoPlayer *m_videoPlayer; }; #endif // PHONONWIDGET_H |
