]>
cloud.milkyroute.net Git - dolphin.git/blob - src/panels/information/phononwidget.h
196b87f879c6274c1d2f8f2002462f8998839343
1 /* This file is part of the KDE project
2 Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of
7 the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 #ifndef PHONONWIDGET_H
22 #define PHONONWIDGET_H
26 #include <QtCore/QSize>
27 #include <QtGui/QWidget>
29 #include <Phonon/Global>
38 class EmbeddedVideoPlayer
;
42 class PhononWidget
: public QWidget
52 PhononWidget(QWidget
*parent
= 0);
54 void setUrl(const KUrl
&url
);
57 void setMode(Mode mode
);
60 void setVideoSize(const QSize
& size
);
61 QSize
videoSize() const;
64 void playingStarted();
65 void playingStopped();
68 virtual void showEvent(QShowEvent
*event
);
69 virtual void hideEvent(QHideEvent
*event
);
72 void stateChanged(Phonon::State
);
77 void applyVideoSize();
84 QToolButton
*m_playButton
;
85 QToolButton
*m_stopButton
;
87 QVBoxLayout
*m_topLayout
;
88 Phonon::MediaObject
*m_audioMedia
;
89 Phonon::MediaObject
*m_media
;
90 Phonon::SeekSlider
*m_seekSlider
;
91 EmbeddedVideoPlayer
*m_videoPlayer
;
94 #endif // PHONONWIDGET_H