Changeset View
Changeset View
Standalone View
Standalone View
src/panels/information/phononwidget.h
Show All 20 Lines | |||||
21 | #ifndef PHONONWIDGET_H | 21 | #ifndef PHONONWIDGET_H | ||
22 | #define PHONONWIDGET_H | 22 | #define PHONONWIDGET_H | ||
23 | 23 | | |||
24 | #include <Phonon/Global> | 24 | #include <Phonon/Global> | ||
25 | 25 | | |||
26 | #include <QSize> | 26 | #include <QSize> | ||
27 | #include <QUrl> | 27 | #include <QUrl> | ||
28 | #include <QWidget> | 28 | #include <QWidget> | ||
29 | #include <QTimer> | ||||
29 | 30 | | |||
30 | namespace Phonon | 31 | namespace Phonon | ||
31 | { | 32 | { | ||
32 | class AudioOutput; | 33 | class AudioOutput; | ||
33 | class MediaObject; | 34 | class MediaObject; | ||
34 | class SeekSlider; | 35 | class SeekSlider; | ||
35 | class VideoPlayer; | 36 | class VideoPlayer; | ||
36 | } // namespace Phonon | 37 | } // namespace Phonon | ||
37 | 38 | | |||
38 | class EmbeddedVideoPlayer; | 39 | class EmbeddedVideoPlayer; | ||
39 | class QToolButton; | 40 | class QToolButton; | ||
40 | class QVBoxLayout; | 41 | class QVBoxLayout; | ||
41 | 42 | | |||
42 | class PhononWidget : public QWidget | 43 | class PhononWidget : public QWidget | ||
43 | { | 44 | { | ||
44 | Q_OBJECT | 45 | Q_OBJECT | ||
45 | public: | 46 | public: | ||
46 | explicit PhononWidget(QWidget *parent = nullptr); | 47 | explicit PhononWidget(QWidget *parent = nullptr); | ||
47 | 48 | | |||
48 | void setUrl(const QUrl &url); | 49 | void setUrl(const QUrl &url); | ||
elvisangelaccio: bool arguments in API should be avoided in favor of enums. | |||||
49 | QUrl url() const; | 50 | QUrl url() const; | ||
50 | 51 | | |||
51 | void setVideoSize(const QSize& size); | 52 | void setVideoSize(const QSize& size); | ||
52 | QSize videoSize() const; | 53 | QSize videoSize() const; | ||
53 | 54 | | |||
54 | signals: | 55 | signals: | ||
55 | /** | 56 | /** | ||
56 | * Is emitted whenever the video-state | 57 | * Is emitted whenever the video-state | ||
Show All 25 Lines | 79 | private: | |||
82 | QToolButton *m_playButton; | 83 | QToolButton *m_playButton; | ||
83 | QToolButton *m_stopButton; | 84 | QToolButton *m_stopButton; | ||
84 | 85 | | |||
85 | QVBoxLayout *m_topLayout; | 86 | QVBoxLayout *m_topLayout; | ||
86 | Phonon::MediaObject *m_media; | 87 | Phonon::MediaObject *m_media; | ||
87 | Phonon::SeekSlider *m_seekSlider; | 88 | Phonon::SeekSlider *m_seekSlider; | ||
88 | Phonon::AudioOutput *m_audioOutput; | 89 | Phonon::AudioOutput *m_audioOutput; | ||
89 | EmbeddedVideoPlayer *m_videoPlayer; | 90 | EmbeddedVideoPlayer *m_videoPlayer; | ||
91 | QTimer *m_autoPlayTimer; | ||||
90 | }; | 92 | }; | ||
91 | 93 | | |||
92 | #endif // PHONONWIDGET_H | 94 | #endif // PHONONWIDGET_H |
bool arguments in API should be avoided in favor of enums.