author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Wed, 21 Apr 2010 11:15:19 +0300 | |
branch | RCL_3 |
changeset 11 | 25a739ee40f4 |
parent 7 | 3f74d0d4af4c |
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 |
||
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
4
diff
changeset
|
22 |
#include "abstractvideooutput.h" |
0 | 23 |
#include "mmf_medianode.h" |
24 |
||
25 |
#include <QtGui/QWidget> |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
26 |
#include <phonon/videowidget.h> |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
27 |
#include <phonon/videowidgetinterface.h> |
0 | 28 |
|
29 |
QT_BEGIN_NAMESPACE |
|
30 |
||
31 |
namespace Phonon |
|
32 |
{ |
|
33 |
namespace MMF |
|
34 |
{ |
|
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
4
diff
changeset
|
35 |
#ifndef PHONON_MMF_VIDEO_SURFACES |
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
36 |
class AncestorMoveMonitor; |
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
4
diff
changeset
|
37 |
#endif |
0 | 38 |
|
39 |
class VideoWidget : public MediaNode |
|
40 |
, public Phonon::VideoWidgetInterface |
|
41 |
{ |
|
42 |
Q_OBJECT |
|
43 |
Q_INTERFACES(Phonon::VideoWidgetInterface) |
|
44 |
||
45 |
public: |
|
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
4
diff
changeset
|
46 |
VideoWidget(QWidget* parent); |
0 | 47 |
~VideoWidget(); |
48 |
||
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
4
diff
changeset
|
49 |
#ifndef PHONON_MMF_VIDEO_SURFACES |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
4
diff
changeset
|
50 |
void setAncestorMoveMonitor(AncestorMoveMonitor *ancestorMoveMonitor); |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
4
diff
changeset
|
51 |
#endif |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
4
diff
changeset
|
52 |
|
0 | 53 |
// VideoWidgetInterface |
54 |
virtual Phonon::VideoWidget::AspectRatio aspectRatio() const; |
|
55 |
virtual void setAspectRatio(Phonon::VideoWidget::AspectRatio aspectRatio); |
|
56 |
virtual qreal brightness() const; |
|
57 |
virtual void setBrightness(qreal brightness); |
|
58 |
virtual Phonon::VideoWidget::ScaleMode scaleMode() const; |
|
59 |
virtual void setScaleMode(Phonon::VideoWidget::ScaleMode scaleMode); |
|
60 |
virtual qreal contrast() const; |
|
61 |
virtual void setContrast(qreal constrast); |
|
62 |
virtual qreal hue() const; |
|
63 |
virtual void setHue(qreal hue); |
|
64 |
virtual qreal saturation() const; |
|
65 |
virtual void setSaturation(qreal saturation); |
|
66 |
virtual QWidget *widget(); |
|
67 |
||
68 |
protected: |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
69 |
// MediaNode |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
70 |
void connectMediaObject(MediaObject *mediaObject); |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
71 |
void disconnectMediaObject(MediaObject *mediaObject); |
0 | 72 |
|
73 |
private: |
|
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
4
diff
changeset
|
74 |
QScopedPointer<AbstractVideoOutput> m_videoOutput; |
0 | 75 |
|
76 |
qreal m_brightness; |
|
77 |
qreal m_contrast; |
|
78 |
qreal m_hue; |
|
79 |
qreal m_saturation; |
|
80 |
||
81 |
}; |
|
82 |
} |
|
83 |
} |
|
84 |
||
85 |
QT_END_NAMESPACE |
|
86 |
||
87 |
#endif |