• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Plasma

Plasma::VideoWidget

Plasma::VideoWidget Class Reference

a Video playing widget via Phonon, it encloses the Phonon::MediaObject and Phonon::AudioOutput too More...

#include <Plasma/Widgets/VideoWidget>

Inheritance diagram for Plasma::VideoWidget:
QGraphicsProxyWidget

List of all members.

Public Types

enum  Control {
  NoControls = 0, Play = 1, Pause = 2, Stop = 4,
  PlayPause = 8, Previous = 16, Next = 32, Progress = 64,
  Volume = 128, OpenFile = 128, DefaultControls = PlayPause|Progress|Volume|OpenFile
}

Public Slots

void pause ()
void play ()
void seek (qint64 time)
void stop ()

Signals

void aboutToFinish ()
void nextRequested ()
void previousRequested ()
void tick (qint64 time)

Public Member Functions

Q_INVOKABLE Phonon::AudioOutput * audioOutput () const
bool controlsVisible () const
qint64 currentTime () const
Q_INVOKABLE Phonon::MediaObject * mediaObject () const
Phonon::VideoWidget * nativeWidget () const
qint64 remainingTime () const
void setControlsVisible (bool visible)
void setStyleSheet (const QString &stylesheet)
void setUrl (const QString &url)
void setUsedControls (const Controls controls)
QString styleSheet ()
qint64 totalTime () const
QString url () const
Controls usedControls () const
 VideoWidget (QGraphicsWidget *parent=0)
 ~VideoWidget ()

Protected Member Functions

void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
void hoverMoveEvent (QGraphicsSceneHoverEvent *event)
void resizeEvent (QGraphicsSceneResizeEvent *event)

Properties

bool controlsVisible
qint64 currentTime
qint64 remainingTime
QString styleSheet
qint64 totalTime
QString url
Controls usedControls

Detailed Description

a Video playing widget via Phonon, it encloses the Phonon::MediaObject and Phonon::AudioOutput too

Provides a video player widget

Since:
KDE4.3

Definition at line 48 of file videowidget.h.


Member Enumeration Documentation

enum Plasma::VideoWidget::Control
Enumerator:
NoControls 
Play 
Pause 
Stop 
PlayPause 
Previous 
Next 
Progress 
Volume 
OpenFile 
DefaultControls 

Definition at line 62 of file videowidget.h.


Constructor & Destructor Documentation

Plasma::VideoWidget::VideoWidget ( QGraphicsWidget *  parent = 0  )  [explicit]

Definition at line 238 of file videowidget.cpp.

Plasma::VideoWidget::~VideoWidget (  ) 

Definition at line 259 of file videowidget.cpp.


Member Function Documentation

void Plasma::VideoWidget::aboutToFinish (  )  [signal]

Emitted an instant before the playback is finished.

Phonon::AudioOutput * Plasma::VideoWidget::audioOutput (  )  const
Returns:
the Phonon::AudioOutput being used
See also:
Phonon::AudioOutput

Definition at line 269 of file videowidget.cpp.

bool Plasma::VideoWidget::controlsVisible (  )  const
Returns:
true if the controls widget is being shown right now
qint64 Plasma::VideoWidget::currentTime (  )  const
Returns:
the current time of the current media file
void Plasma::VideoWidget::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event  )  [protected]

Definition at line 550 of file videowidget.cpp.

void Plasma::VideoWidget::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event  )  [protected]

Definition at line 561 of file videowidget.cpp.

void Plasma::VideoWidget::hoverMoveEvent ( QGraphicsSceneHoverEvent *  event  )  [protected]

Definition at line 570 of file videowidget.cpp.

Phonon::MediaObject * Plasma::VideoWidget::mediaObject (  )  const
Returns:
the Phonon::MediaObject being used
See also:
Phonon::MediaObject

Definition at line 264 of file videowidget.cpp.

Phonon::VideoWidget * Plasma::VideoWidget::nativeWidget (  )  const
Returns:
the native widget wrapped by this VideoWidget

Definition at line 515 of file videowidget.cpp.

void Plasma::VideoWidget::nextRequested (  )  [signal]

The user pressed the "next" button.

Since:
4.3
void Plasma::VideoWidget::pause (  )  [slot]

Pause the current file.

Definition at line 462 of file videowidget.cpp.

void Plasma::VideoWidget::play (  )  [slot]

Play the current file.

Definition at line 457 of file videowidget.cpp.

void Plasma::VideoWidget::previousRequested (  )  [signal]

The user pressed the "previous" button.

Since:
4.3
qint64 Plasma::VideoWidget::remainingTime (  )  const
Returns:
the time remaining to the current media file
void Plasma::VideoWidget::resizeEvent ( QGraphicsSceneResizeEvent *  event  )  [protected]

Definition at line 521 of file videowidget.cpp.

void Plasma::VideoWidget::seek ( qint64  time  )  [slot]

Jump at a given millisecond in the current file.

  • time where we want to jump

Definition at line 472 of file videowidget.cpp.

void Plasma::VideoWidget::setControlsVisible ( bool  visible  ) 

Show/hide the main controls widget, if any of them is used.

  • visible if we want to show or hide the main controls
    See also:
    setUsedControls()

Definition at line 492 of file videowidget.cpp.

void Plasma::VideoWidget::setStyleSheet ( const QString &  stylesheet  ) 

Sets the stylesheet used to control the visual display of this VideoWidget.

  • stylesheet a CSS string

Definition at line 505 of file videowidget.cpp.

void Plasma::VideoWidget::setUrl ( const QString &  url  ) 

Load a certain url that can be a local file or a remote one.

  • path resource to play

Definition at line 274 of file videowidget.cpp.

void Plasma::VideoWidget::setUsedControls ( const Controls  controls  ) 

Set what control widgets to use.

  • controls bitwise OR combination of Controls flags
    See also:
    Controls

Definition at line 284 of file videowidget.cpp.

void Plasma::VideoWidget::stop (  )  [slot]

Stop the current file.

Definition at line 467 of file videowidget.cpp.

QString Plasma::VideoWidget::styleSheet (  ) 
Returns:
the stylesheet currently used with this widget
void Plasma::VideoWidget::tick ( qint64  time  )  [signal]

Emitted regularly when the playing is progressing.

  • time where we are
qint64 Plasma::VideoWidget::totalTime (  )  const
Returns:
the total playing time of the current media file
QString Plasma::VideoWidget::url (  )  const
Returns:
the url (local or remote) we are playing
Controls Plasma::VideoWidget::usedControls (  )  const
Returns:
the video controls that are used and shown
See also:
Controls

Property Documentation

bool Plasma::VideoWidget::controlsVisible [read, write]

Definition at line 57 of file videowidget.h.

qint64 Plasma::VideoWidget::currentTime [read]

Definition at line 53 of file videowidget.h.

qint64 Plasma::VideoWidget::remainingTime [read]

Definition at line 55 of file videowidget.h.

QString Plasma::VideoWidget::styleSheet [read, write]

Definition at line 58 of file videowidget.h.

qint64 Plasma::VideoWidget::totalTime [read]

Definition at line 54 of file videowidget.h.

QString Plasma::VideoWidget::url [read, write]

Definition at line 52 of file videowidget.h.

VideoWidget::Controls Plasma::VideoWidget::usedControls [read, write]

Definition at line 56 of file videowidget.h.


The documentation for this class was generated from the following files:
  • videowidget.h
  • videowidget.cpp

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal