Warning: That file was not part of the compilation database. It may have many parsing errors.
1 | /* This file is part of the KDE project |
---|---|
2 | Copyright (C) 2007 Matthias Kretz <kretz@kde.org> |
3 | |
4 | Permission to use, copy, modify, and distribute this software |
5 | and its documentation for any purpose and without fee is hereby |
6 | granted, provided that the above copyright notice appear in all |
7 | copies and that both that the copyright notice and this |
8 | permission notice and warranty disclaimer appear in supporting |
9 | documentation, and that the name of the author not be used in |
10 | advertising or publicity pertaining to distribution of the |
11 | software without specific, written prior permission. |
12 | |
13 | The author disclaim all warranties with regard to this |
14 | software, including all implied warranties of merchantability |
15 | and fitness. In no event shall the author be liable for any |
16 | special, indirect or consequential damages or any damages |
17 | whatsoever resulting from loss of use, data or profits, whether |
18 | in an action of contract, negligence or other tortious action, |
19 | arising out of or in connection with the use or performance of |
20 | this software. |
21 | |
22 | */ |
23 | |
24 | #ifndef EXAMPLES_VIDEOPLAYBACK_H |
25 | #define EXAMPLES_VIDEOPLAYBACK_H |
26 | |
27 | #include <QtGui/QWidget> |
28 | |
29 | class KUrl; |
30 | |
31 | namespace Phonon |
32 | { |
33 | class VideoWidget; |
34 | class VideoPath; |
35 | class AudioOutput; |
36 | class AudioPath; |
37 | class MediaObject; |
38 | class MediaControls; |
39 | } // namespace Phonon |
40 | |
41 | using namespace Phonon; |
42 | |
43 | class MediaPlayer : public QWidget |
44 | { |
45 | Q_OBJECT |
46 | public: |
47 | MediaPlayer(QWidget *parent); |
48 | void setUrl(const KUrl &url); |
49 | |
50 | private Q_SLOTS: |
51 | void hasVideoChanged(bool hasVideo); |
52 | |
53 | private: |
54 | VideoWidget *m_vwidget; |
55 | VideoPath *m_vpath; |
56 | AudioOutput *m_aoutput; |
57 | AudioPath *m_apath; |
58 | MediaObject *m_media; |
59 | MediaControls *m_controls; |
60 | }; |
61 | |
62 | #endif // EXAMPLES_VIDEOPLAYBACK_H |
63 |
Warning: That file was not part of the compilation database. It may have many parsing errors.