1
/***************************************************************************
2
* Copyright (C) 2008 by Joris Guisson and Ivan Vasic *
3
* joris.guisson@gmail.com *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
11
* This program is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
16
* You should have received a copy of the GNU General Public License *
17
* along with this program; if not, write to the *
18
* Free Software Foundation, Inc., *
19
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
20
***************************************************************************/
21
#ifndef KTVIDEOWIDGET_H
22
#define KTVIDEOWIDGET_H
25
#include <Phonon/VideoWidget>
26
#include <Phonon/MediaObject>
27
#include <Phonon/SeekSlider>
28
#include <Phonon/VolumeSlider>
38
* Widget to display a video
39
* @author Joris Guisson
41
class VideoWidget : public QWidget
45
VideoWidget(MediaPlayer* player,QWidget* parent);
46
virtual ~VideoWidget();
48
virtual void mouseMoveEvent(QMouseEvent* event);
51
* Make the widget full screen or not.
54
void setFullScreen(bool on);
60
void setControlsVisible(bool on);
61
void onStateChanged(Phonon::State cur,Phonon::State old);
64
void toggleFullScreen(bool on);
67
void inhibitScreenSaver(bool on);
70
Phonon::VideoWidget* video;
72
Phonon::SeekSlider* slider;
77
Phonon::VolumeSlider* volume;
79
uint screensaver_cookie;
80
int powermanagement_cookie;