Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 7d3b1f7..893ac41 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -1,3 +1,37 @@ | |||
1 | /* | ||
2 | This file is part of the Opie Project | ||
3 | |||
4 | Copyright (c) 2002 Max Reiss <harlekin@handhelds.org> | ||
5 | Copyright (c) 2002 L. Potter <ljp@llornkcor.com> | ||
6 | Copyright (c) 2002 Holger Freyther <zecke@handhelds.org> | ||
7 | =. | ||
8 | .=l. | ||
9 | .>+-= | ||
10 | _;:, .> :=|. This program is free software; you can | ||
11 | .> <`_, > . <= redistribute it and/or modify it under | ||
12 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | ||
13 | .="- .-=="i, .._ License as published by the Free Software | ||
14 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
15 | ._= =} : or (at your option) any later version. | ||
16 | .%`+i> _;_. | ||
17 | .i_,=:_. -<s. This program is distributed in the hope that | ||
18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
19 | : .. .:, . . . without even the implied warranty of | ||
20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
22 | ..}^=.= = ; Library General Public License for more | ||
23 | ++= -. .` .: details. | ||
24 | : = ...= . :.=- | ||
25 | -. .:....=;==+<; You should have received a copy of the GNU | ||
26 | -_. . . )=. = Library General Public License along with | ||
27 | -- :-=` this library; see the file COPYING.LIB. | ||
28 | If not, write to the Free Software Foundation, | ||
29 | Inc., 59 Temple Place - Suite 330, | ||
30 | Boston, MA 02111-1307, USA. | ||
31 | |||
32 | */ | ||
33 | |||
34 | |||
1 | #include <qtimer.h> | 35 | #include <qtimer.h> |
2 | #include "xinecontrol.h" | 36 | #include "xinecontrol.h" |
3 | #include "mediaplayerstate.h" | 37 | #include "mediaplayerstate.h" |
@@ -13,6 +47,8 @@ XineControl::XineControl( QObject *parent, const char *name ) | |||
13 | connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) ); | 47 | connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) ); |
14 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); | 48 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); |
15 | connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); | 49 | connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); |
50 | connect( mediaPlayerState, SIGNAL( positionChanged( long ) ), this, SLOT( seekTo( long ) ) ); | ||
51 | |||
16 | } | 52 | } |
17 | 53 | ||
18 | XineControl::~XineControl() { | 54 | XineControl::~XineControl() { |
@@ -30,6 +66,12 @@ void XineControl::play( const QString& fileName ) { | |||
30 | return; | 66 | return; |
31 | } | 67 | } |
32 | 68 | ||
69 | if (whichGui == 'a') { | ||
70 | libXine->setShowVideo( false ); | ||
71 | } else { | ||
72 | libXine->setShowVideo( true ); | ||
73 | } | ||
74 | |||
33 | // determine if slider is shown | 75 | // determine if slider is shown |
34 | // mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); | 76 | // mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); |
35 | mediaPlayerState->setIsStreaming( libXine->isSeekable() ); | 77 | mediaPlayerState->setIsStreaming( libXine->isSeekable() ); |
@@ -72,5 +114,9 @@ int XineControl::position() { | |||
72 | } | 114 | } |
73 | 115 | ||
74 | void XineControl::setFullscreen( bool isSet ) { | 116 | void XineControl::setFullscreen( bool isSet ) { |
75 | libXine-> showVideoFullScreen( isSet); | 117 | libXine->showVideoFullScreen( isSet); |
118 | } | ||
119 | |||
120 | void XineControl::seekTo( long second ) { | ||
121 | // libXine-> | ||
76 | } | 122 | } |