author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 02 Feb 2010 00:43:10 +0200 | |
changeset 3 | 41300fa6a67c |
parent 0 | 1918ee327afb |
child 4 | 3b1da2848fc7 |
permissions | -rw-r--r-- |
0 | 1 |
/* This file is part of the KDE project. |
2 |
||
3 |
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 |
||
5 |
This library is free software: you can redistribute it and/or modify |
|
6 |
it under the terms of the GNU Lesser General Public License as published by |
|
7 |
the Free Software Foundation, either version 2.1 or 3 of the License. |
|
8 |
||
9 |
This library 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 Lesser General Public License for more details. |
|
13 |
||
14 |
You should have received a copy of the GNU Lesser General Public License |
|
15 |
along with this library. If not, see <http://www.gnu.org/licenses/>. |
|
16 |
||
17 |
*/ |
|
18 |
||
19 |
#ifndef PHONON_MMF_VIDEOWIDGET_H |
|
20 |
#define PHONON_MMF_VIDEOWIDGET_H |
|
21 |
||
22 |
#include "mmf_medianode.h" |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
23 |
#include "videooutput.h" |
0 | 24 |
|
25 |
#include <QtGui/QWidget> |
|
26 |
#include <Phonon/VideoWidget> |
|
27 |
#include <Phonon/VideoWidgetInterface> |
|
28 |
||
29 |
QT_BEGIN_NAMESPACE |
|
30 |
||
31 |
namespace Phonon |
|
32 |
{ |
|
33 |
namespace MMF |
|
34 |
{ |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
35 |
class AncestorMoveMonitor; |
0 | 36 |
class VideoOutput; |
37 |
||
38 |
class VideoWidget : public MediaNode |
|
39 |
, public Phonon::VideoWidgetInterface |
|
40 |
{ |
|
41 |
Q_OBJECT |
|
42 |
Q_INTERFACES(Phonon::VideoWidgetInterface) |
|
43 |
||
44 |
public: |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
45 |
VideoWidget(AncestorMoveMonitor* ancestorMoveMonitor, QWidget* parent); |
0 | 46 |
~VideoWidget(); |
47 |
||
48 |
// VideoWidgetInterface |
|
49 |
virtual Phonon::VideoWidget::AspectRatio aspectRatio() const; |
|
50 |
virtual void setAspectRatio(Phonon::VideoWidget::AspectRatio aspectRatio); |
|
51 |
virtual qreal brightness() const; |
|
52 |
virtual void setBrightness(qreal brightness); |
|
53 |
virtual Phonon::VideoWidget::ScaleMode scaleMode() const; |
|
54 |
virtual void setScaleMode(Phonon::VideoWidget::ScaleMode scaleMode); |
|
55 |
virtual qreal contrast() const; |
|
56 |
virtual void setContrast(qreal constrast); |
|
57 |
virtual qreal hue() const; |
|
58 |
virtual void setHue(qreal hue); |
|
59 |
virtual qreal saturation() const; |
|
60 |
virtual void setSaturation(qreal saturation); |
|
61 |
virtual QWidget *widget(); |
|
62 |
||
63 |
protected: |
|
64 |
virtual bool activateOnMediaObject(MediaObject *mo); |
|
65 |
||
66 |
private: |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
67 |
QScopedPointer<VideoOutput> m_videoOutput; |
0 | 68 |
|
69 |
qreal m_brightness; |
|
70 |
qreal m_contrast; |
|
71 |
qreal m_hue; |
|
72 |
qreal m_saturation; |
|
73 |
||
74 |
}; |
|
75 |
} |
|
76 |
} |
|
77 |
||
78 |
QT_END_NAMESPACE |
|
79 |
||
80 |
#endif |