author | simon <simon> | 2002-12-02 19:29:34 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 19:29:34 (UTC) |
commit | af73e44e57b1095f92b6f6bcd530c2e4b626a664 (patch) (side-by-side diff) | |
tree | f4178ea80b26bec9955e4c529d3b0c92301b08a8 /noncore/multimedia/opieplayer2/xinecontrol.cpp | |
parent | 24081d2efe5860c9656716b04af00e5ab85d1cd3 (diff) | |
download | opie-af73e44e57b1095f92b6f6bcd530c2e4b626a664.zip opie-af73e44e57b1095f92b6f6bcd530c2e4b626a664.tar.gz opie-af73e44e57b1095f92b6f6bcd530c2e4b626a664.tar.bz2 |
- completed MediaPlayer::DisplayType transition
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 71e08a6..e7d5a7b 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp @@ -87,6 +87,6 @@ void XineControl::play( const QString& fileName ) { - char whichGui; + MediaPlayerState::DisplayType displayType; // qDebug( QString( "libXine->hasVideo() return : %1 ").arg( libXine->hasVideo() ) ); if ( !libXine->hasVideo() ) { - whichGui = 'a'; + displayType = MediaPlayerState::Audio; qDebug("HAS AUDIO"); @@ -95,3 +95,3 @@ void XineControl::play( const QString& fileName ) { } else { - whichGui = 'v'; + displayType = MediaPlayerState::Video; qDebug("HAS VIDEO"); @@ -104,3 +104,3 @@ void XineControl::play( const QString& fileName ) { // which gui (video / audio) - mediaPlayerState->setView( whichGui ); + mediaPlayerState->setDisplayType( displayType ); @@ -111,3 +111,3 @@ void XineControl::play( const QString& fileName ) { QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) - << ( whichGui == 'v' ? QPEApplication::Disable : QPEApplication::DisableSuspend ); + << ( displayType == MediaPlayerState::Video ? QPEApplication::Disable : QPEApplication::DisableSuspend ); } |