MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QVideoWidgetControl Class Reference

The QVideoWidgetControl class provides a media control which implements a video widget. More...

 #include <QVideoWidgetControl>

Inherits: QMediaControl.

This class was introduced in Qt Mobility 1.0.

Public Functions

virtual ~QVideoWidgetControl ()
virtual Qt::AspectRatioMode aspectRatioMode () const = 0
virtual int brightness () const = 0
virtual int contrast () const = 0
virtual int hue () const = 0
virtual bool isFullScreen () const = 0
virtual int saturation () const = 0
virtual void setAspectRatioMode ( Qt::AspectRatioMode mode ) = 0
virtual void setBrightness ( int brightness ) = 0
virtual void setContrast ( int contrast ) = 0
virtual void setFullScreen ( bool fullScreen ) = 0
virtual void setHue ( int hue ) = 0
virtual void setSaturation ( int saturation ) = 0
virtual QWidget * videoWidget () = 0
  • 29 public functions inherited from QObject

Signals

void brightnessChanged ( int brightness )
void contrastChanged ( int contrast )
void fullScreenChanged ( bool fullScreen )
void hueChanged ( int hue )
void saturationChanged ( int saturation )

Protected Functions

QVideoWidgetControl ( QObject * parent = 0 )
  • 7 protected functions inherited from QObject

Macros

QVideoWidgetControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QVideoWidgetControl class provides a media control which implements a video widget.

The videoWidget() property of QVideoWidgetControl provides a pointer to a video widget implemented by the control's media service. This widget is owned by the media service and so care should be taken not to delete it.

 QVideoWidgetControl *widgetControl = mediaService->requestControl<QVideoWidgetControl *>();
 layout->addWidget(widgetControl->videoWidget());

QVideoWidgetControl is one of number of possible video output controls.

The interface name of QVideoWidgetControl is com.nokia.Qt.QVideoWidgetControl/1.0 as defined in QVideoWidgetControl_iid.

See also QMediaService::requestControl() and QVideoWidget.

Member Function Documentation

QVideoWidgetControl::QVideoWidgetControl ( QObject * parent = 0 ) [protected]

Constructs a new video widget control with the given parent.

QVideoWidgetControl::~QVideoWidgetControl () [virtual]

Destroys a video widget control.

Qt::AspectRatioMode QVideoWidgetControl::aspectRatioMode () const [pure virtual]

Returns how video is scaled to fit the widget with respect to its aspect ratio.

This function was introduced in Qt Mobility 1.0.

See also setAspectRatioMode().

int QVideoWidgetControl::brightness () const [pure virtual]

Returns the brightness adjustment applied to a video.

Valid brightness values range between -100 and 100, the default is 0.

This function was introduced in Qt Mobility 1.0.

See also setBrightness().

void QVideoWidgetControl::brightnessChanged ( int brightness ) [signal]

Signals that a video widget's brightness adjustment has changed.

This function was introduced in Qt Mobility 1.0.

int QVideoWidgetControl::contrast () const [pure virtual]

Returns the contrast adjustment applied to a video.

Valid contrast values range between -100 and 100, the default is 0.

This function was introduced in Qt Mobility 1.0.

See also setContrast().

void QVideoWidgetControl::contrastChanged ( int contrast ) [signal]

Signals that a video widget's contrast adjustment has changed.

This function was introduced in Qt Mobility 1.0.

void QVideoWidgetControl::fullScreenChanged ( bool fullScreen ) [signal]

Signals that the fullScreen state of a video widget has changed.

This function was introduced in Qt Mobility 1.0.

int QVideoWidgetControl::hue () const [pure virtual]

Returns the hue adjustment applied to a video widget.

Value hue values range between -100 and 100, the default is 0.

This function was introduced in Qt Mobility 1.0.

See also setHue().

void QVideoWidgetControl::hueChanged ( int hue ) [signal]

Signals that a video widget's hue adjustment has changed.

This function was introduced in Qt Mobility 1.0.

bool QVideoWidgetControl::isFullScreen () const [pure virtual]

Returns true if the video is shown using the complete screen.

This function was introduced in Qt Mobility 1.0.

int QVideoWidgetControl::saturation () const [pure virtual]

Returns the saturation adjustment applied to a video widget.

Value saturation values range between -100 and 100, the default is 0.

This function was introduced in Qt Mobility 1.0.

See also setSaturation().

void QVideoWidgetControl::saturationChanged ( int saturation ) [signal]

Signals that a video widget's saturation adjustment has changed.

This function was introduced in Qt Mobility 1.0.

void QVideoWidgetControl::setAspectRatioMode ( Qt::AspectRatioMode mode ) [pure virtual]

Sets the aspect ratio mode which determines how video is scaled to the fit the widget with respect to its aspect ratio.

This function was introduced in Qt Mobility 1.0.

See also aspectRatioMode().

void QVideoWidgetControl::setBrightness ( int brightness ) [pure virtual]

Sets a brightness adjustment for a video.

Valid brightness values range between -100 and 100, the default is 0.

This function was introduced in Qt Mobility 1.0.

See also brightness().

void QVideoWidgetControl::setContrast ( int contrast ) [pure virtual]

Sets the contrast adjustment for a video widget to contrast.

Valid contrast values range between -100 and 100, the default is 0.

This function was introduced in Qt Mobility 1.0.

See also contrast().

void QVideoWidgetControl::setFullScreen ( bool fullScreen ) [pure virtual]

Sets whether a video widget is in fullScreen mode.

This function was introduced in Qt Mobility 1.0.

See also isFullScreen().

void QVideoWidgetControl::setHue ( int hue ) [pure virtual]

Sets a hue adjustment for a video widget.

Valid hue values range between -100 and 100, the default is 0.

This function was introduced in Qt Mobility 1.0.

See also hue().

void QVideoWidgetControl::setSaturation ( int saturation ) [pure virtual]

Sets a saturation adjustment for a video widget.

Valid saturation values range between -100 and 100, the default is 0.

This function was introduced in Qt Mobility 1.0.

See also saturation().

QWidget * QVideoWidgetControl::videoWidget () [pure virtual]

Returns the QWidget.

This function was introduced in Qt Mobility 1.0.

Macro Documentation

QVideoWidgetControl_iid

com.nokia.Qt.QVideoWidgetControl/1.0

Defines the interface name of the QVideoWidgetControl class.