diff options
| author | Peter Penz <[email protected]> | 2009-04-12 19:00:59 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-04-12 19:00:59 +0000 |
| commit | e9b697bdf6b8de3a40ac2d4689a9b20a6d7cf550 (patch) | |
| tree | 84770d7cb00dd4fa644be4e4f702042f24bf8383 /src/panels/information/phononwidget.h | |
| parent | cc124237db0e6b8011de934648a728fdc1d6ac92 (diff) | |
The feature freeze is near: Add video support to the Information Panel. Phonon is quite cool BTW :-)
svn path=/trunk/KDE/kdebase/apps/; revision=952882
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 |
