summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-08-05 16:58:54 (UTC)
committer harlekin <harlekin>2002-08-05 16:58:54 (UTC)
commit6577ed5401ef1374b57a58dd459e91c10899e097 (patch) (side-by-side diff)
treebe02c6759e10490af57918f9b2475a552a571da1
parentaf5168ac637f2f5b871cc73a69151dd3d829fec0 (diff)
downloadopie-6577ed5401ef1374b57a58dd459e91c10899e097.zip
opie-6577ed5401ef1374b57a58dd459e91c10899e097.tar.gz
opie-6577ed5401ef1374b57a58dd459e91c10899e097.tar.bz2
doc updates
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp32
1 files changed, 26 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp
index d08ff04..cf7dcb2 100644
--- a/noncore/multimedia/opieplayer2/xinecontrol.cpp
+++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp
@@ -44,5 +44,5 @@ XineControl::XineControl( QObject *parent, const char *name )
libXine = new XINE::Lib(videoUI->vidWidget() );
- connect ( videoUI, SIGNAL( videoResized ( const QSize & )), this, SLOT( videoResized ( const QSize & )));
+ connect ( videoUI, SIGNAL( videoResized ( const QSize & )), this, SLOT( videoResized ( const QSize & )));
connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) );
connect( this, SIGNAL( positionChanged( long ) ), mediaPlayerState, SLOT( updatePosition( long ) ) );
@@ -50,5 +50,4 @@ XineControl::XineControl( QObject *parent, const char *name )
connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) );
connect( mediaPlayerState, SIGNAL( positionChanged( long ) ), this, SLOT( seekTo( long ) ) );
-
}
@@ -94,8 +93,16 @@ void XineControl::stop( bool isSet ) {
}
+/**
+ * Pause playback
+ * @isSet
+ */
void XineControl::pause( bool isSet) {
libXine->pause();
}
+
+/**
+ * get current time in playback
+ */
long XineControl::currentTime() {
// todo: jede sekunde überprüfen
@@ -105,4 +112,7 @@ long XineControl::currentTime() {
}
+/**
+ * Set the length of the media file
+ */
void XineControl::length() {
m_length = libXine->length();
@@ -110,4 +120,9 @@ void XineControl::length() {
}
+
+/**
+ * Reports the position the xine backend is at right now
+ * @return long the postion in seconds
+ */
long XineControl::position() {
m_position = ( currentTime() );
@@ -122,16 +137,21 @@ long XineControl::position() {
}
+/**
+ * Set videoplayback to fullscreen
+ * @param isSet
+ */
void XineControl::setFullscreen( bool isSet ) {
libXine->showVideoFullScreen( isSet);
}
+/**
+ * Seek to a position in the track
+ * @param second the second to jump to
+ */
void XineControl::seekTo( long second ) {
- qDebug("seek triggered!!");
libXine->play( m_fileName , 0, (int)second );
}
-
-void XineControl::videoResized ( const QSize &s )
-{
+void XineControl::videoResized ( const QSize &s ) {
libXine-> resize ( s );
}