Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MediaPlayer Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/mediaplayer.h>

Collaboration diagram for MediaPlayer:

Collaboration graph
[legend]
List of all members.

Public Slots

void reloadSkins ()

Public Member Functions

 MediaPlayer (QObject *parent, const char *name)
 ~MediaPlayer ()
 MediaPlayer (PlayListWidget &_playList, MediaPlayerState &_mediaPlayerState, QObject *parent, const char *name)
 ~MediaPlayer ()

Protected Member Functions

void timerEvent (QTimerEvent *e)
void keyReleaseEvent (QKeyEvent *e)
void doBlank ()
void doUnblank ()
void timerEvent (QTimerEvent *e)
void keyReleaseEvent (QKeyEvent *e)

Private Slots

void setPlaying (bool)
void pauseCheck (bool)
void play ()
void next ()
void prev ()
void startIncreasingVolume ()
void startDecreasingVolume ()
void stopChangingVolume ()
void cleanUp ()
void setPlaying (bool)
void pauseCheck (bool)
void play ()
void next ()
void prev ()
void startIncreasingVolume ()
void startDecreasingVolume ()
void stopChangingVolume ()
void cleanUp ()
void blank (bool)

Private Member Functions

AudioWidgetaudioUI () const
VideoWidgetvideoUI () const
XineControlxineControl () const
void recreateAudioAndVideoWidgets () const

Private Attributes

int volumeDirection
const DocLnkcurrentFile
bool isBlanked
bool l
bool r
int fd
int fl
VolumeControlvolControl
MediaPlayerStatemediaPlayerState
PlayListWidgetplayList
XineControlm_xineControl
AudioWidgetm_audioUI
VideoWidgetm_videoUI
XINE::Libxine
QGuardedPtr< SkinLoaderm_skinLoader

Constructor & Destructor Documentation

MediaPlayer::MediaPlayer QObject *  parent,
const char *  name
 

Definition at line 41 of file mediaplayer.cpp.

References cleanUp(), next(), pauseCheck(), prev(), qApp, setPlaying(), startDecreasingVolume(), startIncreasingVolume(), and stopChangingVolume().

MediaPlayer::~MediaPlayer  ) 
 

Definition at line 59 of file mediaplayer.cpp.

MediaPlayer::MediaPlayer PlayListWidget _playList,
MediaPlayerState _mediaPlayerState,
QObject *  parent,
const char *  name
 

Definition at line 22 of file mediaplayer.cpp.

References blank(), cleanUp(), fd, fl, VideoWidget::guiInfo(), AudioWidget::guiInfo(), XINE::Lib::InitializeInThread, m_audioUI, m_skinLoader, m_videoUI, m_xineControl, mediaPlayerState, next(), playList, prev(), qApp, Config::readEntry(), Config::setGroup(), setPlaying(), tr, volControl, and xine.

MediaPlayer::~MediaPlayer  ) 
 


Member Function Documentation

AudioWidget * MediaPlayer::audioUI  )  const [private]
 

Definition at line 340 of file mediaplayer.cpp.

References m_audioUI, and recreateAudioAndVideoWidgets().

Referenced by reloadSkins().

void MediaPlayer::blank bool   )  [private, slot]
 

Definition at line 279 of file mediaplayer.cpp.

References Opie::Core::ODevice::inst().

Referenced by MediaPlayer().

void MediaPlayer::cleanUp  )  [private, slot]
 

void MediaPlayer::cleanUp  )  [private, slot]
 

Definition at line 269 of file mediaplayer.cpp.

Referenced by MediaPlayer().

void MediaPlayer::doBlank  )  [protected]
 

Definition at line 261 of file mediaplayer.cpp.

void MediaPlayer::doUnblank  )  [protected]
 

Definition at line 265 of file mediaplayer.cpp.

void MediaPlayer::keyReleaseEvent QKeyEvent *  e  )  [protected]
 

void MediaPlayer::keyReleaseEvent QKeyEvent *  e  )  [protected]
 

Definition at line 242 of file mediaplayer.cpp.

References Key_F10, Key_F11, Key_F12, Key_F13, and Key_F9.

void MediaPlayer::next  )  [private, slot]
 

void MediaPlayer::next  )  [private, slot]
 

Definition at line 154 of file mediaplayer.cpp.

References PlayListWidget::first(), MediaPlayerState::looping, PlayListWidget::next(), play(), and MediaPlayerState::setList().

Referenced by MediaPlayer().

void MediaPlayer::pauseCheck bool   )  [private, slot]
 

void MediaPlayer::pauseCheck bool   )  [private, slot]
 

Definition at line 64 of file mediaplayer.cpp.

References FALSE, MediaPlayerState::playing, and MediaPlayerState::setPaused().

Referenced by MediaPlayer().

void MediaPlayer::play  )  [private, slot]
 

void MediaPlayer::play  )  [private, slot]
 

Definition at line 71 of file mediaplayer.cpp.

References FALSE, MediaPlayerState::setPlaying(), and TRUE.

Referenced by next(), and prev().

void MediaPlayer::prev  )  [private, slot]
 

void MediaPlayer::prev  )  [private, slot]
 

Definition at line 143 of file mediaplayer.cpp.

References PlayListWidget::last(), MediaPlayerState::looping, play(), PlayListWidget::prev(), and MediaPlayerState::setList().

Referenced by MediaPlayer().

void MediaPlayer::recreateAudioAndVideoWidgets  )  const [private]
 

Definition at line 312 of file mediaplayer.cpp.

References XINE::Lib::InitializeImmediately, m_audioUI, m_skinLoader, m_videoUI, m_xineControl, mediaPlayerState, playList, startDecreasingVolume(), startIncreasingVolume(), stopChangingVolume(), VideoWidget::vidWidget(), and xine.

Referenced by audioUI(), videoUI(), and xineControl().

void MediaPlayer::reloadSkins  )  [slot]
 

Definition at line 361 of file mediaplayer.cpp.

References audioUI(), and videoUI().

void MediaPlayer::setPlaying bool   )  [private, slot]
 

void MediaPlayer::setPlaying bool   )  [private, slot]
 

Definition at line 77 of file mediaplayer.cpp.

References MediaPlayerState::curDecoder(), PlayListWidget::current(), currentFile, QFile::exists(), FALSE, AppLnk::file(), LoopControl::hasVideo(), LoopControl::init(), QString::isEmpty(), AppLnk::name(), MediaPlayerState::newDecoder(), NULL, MediaPlayerState::paused, LoopControl::play(), MediaPlayerState::setPaused(), MediaPlayerState::setPlaying(), AudioWidget::setTickerText(), MediaPlayerState::setView(), QString::sprintf(), LoopControl::stop(), LoopControl::totalPlaytime(), tr, and TRUE.

Referenced by MediaPlayer().

void MediaPlayer::startDecreasingVolume  )  [private, slot]
 

void MediaPlayer::startDecreasingVolume  )  [private, slot]
 

Definition at line 165 of file mediaplayer.cpp.

References AudioDevice::decreaseVolume(), and volumeDirection.

Referenced by MediaPlayer(), and recreateAudioAndVideoWidgets().

void MediaPlayer::startIncreasingVolume  )  [private, slot]
 

void MediaPlayer::startIncreasingVolume  )  [private, slot]
 

Definition at line 172 of file mediaplayer.cpp.

References AudioDevice::increaseVolume(), and volumeDirection.

Referenced by MediaPlayer(), and recreateAudioAndVideoWidgets().

void MediaPlayer::stopChangingVolume  )  [private, slot]
 

void MediaPlayer::stopChangingVolume  )  [private, slot]
 

Definition at line 183 of file mediaplayer.cpp.

References drawnOnScreenDisplay, FALSE, onScreenDisplayVolume, and yoff.

Referenced by MediaPlayer(), and recreateAudioAndVideoWidgets().

void MediaPlayer::timerEvent QTimerEvent *  e  )  [protected]
 

void MediaPlayer::timerEvent QTimerEvent *  e  )  [protected]
 

Definition at line 195 of file mediaplayer.cpp.

References AudioDevice::decreaseVolume(), drawnOnScreenDisplay, f, FALSE, AudioDevice::getVolume(), i, AudioDevice::increaseVolume(), l, onScreenDisplayVolume, p, r, tr, TRUE, v, volumeDirection, and yoff.

VideoWidget * MediaPlayer::videoUI  )  const [private]
 

Definition at line 347 of file mediaplayer.cpp.

References m_videoUI, and recreateAudioAndVideoWidgets().

Referenced by reloadSkins().

XineControl * MediaPlayer::xineControl  )  const [private]
 

Definition at line 354 of file mediaplayer.cpp.

References m_xineControl, and recreateAudioAndVideoWidgets().


Member Data Documentation

const DocLnk* MediaPlayer::currentFile [private]
 

Definition at line 56 of file mediaplayer.h.

Referenced by setPlaying().

int MediaPlayer::fd [private]
 

Definition at line 84 of file mediaplayer.h.

Referenced by MediaPlayer().

int MediaPlayer::fl [private]
 

Definition at line 84 of file mediaplayer.h.

Referenced by MediaPlayer().

bool MediaPlayer::isBlanked [private]
 

Definition at line 83 of file mediaplayer.h.

bool MediaPlayer::l [private]
 

Definition at line 83 of file mediaplayer.h.

Referenced by timerEvent().

AudioWidget* MediaPlayer::m_audioUI [mutable, private]
 

Definition at line 93 of file mediaplayer.h.

Referenced by audioUI(), MediaPlayer(), and recreateAudioAndVideoWidgets().

QGuardedPtr<SkinLoader> MediaPlayer::m_skinLoader [private]
 

Definition at line 97 of file mediaplayer.h.

Referenced by MediaPlayer(), and recreateAudioAndVideoWidgets().

VideoWidget* MediaPlayer::m_videoUI [mutable, private]
 

Definition at line 94 of file mediaplayer.h.

Referenced by MediaPlayer(), recreateAudioAndVideoWidgets(), and videoUI().

XineControl* MediaPlayer::m_xineControl [mutable, private]
 

Definition at line 92 of file mediaplayer.h.

Referenced by MediaPlayer(), recreateAudioAndVideoWidgets(), and xineControl().

MediaPlayerState& MediaPlayer::mediaPlayerState [private]
 

Definition at line 87 of file mediaplayer.h.

Referenced by MediaPlayer(), and recreateAudioAndVideoWidgets().

PlayListWidget& MediaPlayer::playList [private]
 

Definition at line 88 of file mediaplayer.h.

Referenced by MediaPlayer(), and recreateAudioAndVideoWidgets().

bool MediaPlayer::r [private]
 

Definition at line 83 of file mediaplayer.h.

Referenced by timerEvent().

VolumeControl* MediaPlayer::volControl [private]
 

Definition at line 86 of file mediaplayer.h.

Referenced by MediaPlayer().

int MediaPlayer::volumeDirection [private]
 

Definition at line 85 of file mediaplayer.h.

Referenced by startDecreasingVolume(), startIncreasingVolume(), and timerEvent().

XINE::Lib* MediaPlayer::xine [mutable, private]
 

Definition at line 95 of file mediaplayer.h.

Referenced by MediaPlayer(), and recreateAudioAndVideoWidgets().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:39:48 2005 for OPIE by  doxygen 1.4.2