|
MythTV
0.27pre
|
#include <musicplayer.h>


Public Types | |
| enum | PlayMode { PLAYMODE_TRACKS = 0, PLAYMODE_RADIO } |
| enum | RepeatMode { REPEAT_OFF = 0, REPEAT_TRACK, REPEAT_ALL, MAX_REPEAT_MODES } |
| enum | ShuffleMode { SHUFFLE_OFF = 0, SHUFFLE_RANDOM, SHUFFLE_INTELLIGENT, SHUFFLE_ALBUM, SHUFFLE_ARTIST, MAX_SHUFFLE_MODES } |
| enum | ResumeMode { RESUME_OFF, RESUME_TRACK, RESUME_EXACT, MAX_RESUME_MODES } |
Protected Member Functions | |
| void | customEvent (QEvent *event) |
Private Member Functions | |
| void | loadSettings (void) |
| void | stopDecoder (void) |
| bool | openOutputDevice (void) |
| void | updateLastplay (void) |
| void | updateVolatileMetadata (void) |
| void | sendVolumeChangedEvent (void) |
| void | setupDecoderHandler (void) |
| void | decoderHandlerReady (void) |
Additional Inherited Members | |
Protected Attributes inherited from MythObservable | |
| QMutex * | m_lock |
| QSet< QObject * > | m_listeners |
Definition at line 51 of file musicplayer.h.
Definition at line 59 of file musicplayer.h.
Definition at line 152 of file musicplayer.h.
| SHUFFLE_OFF | |
| SHUFFLE_RANDOM | |
| SHUFFLE_INTELLIGENT | |
| SHUFFLE_ALBUM | |
| SHUFFLE_ARTIST | |
| MAX_SHUFFLE_MODES |
Definition at line 158 of file musicplayer.h.
Definition at line 167 of file musicplayer.h.
| MusicPlayer::MusicPlayer | ( | QObject * | parent, |
| const QString & | dev | ||
| ) |
Definition at line 52 of file musicplayer.cpp.
| MusicPlayer::~MusicPlayer | ( | void | ) |
Definition at line 108 of file musicplayer.cpp.
Definition at line 858 of file musicplayer.cpp.
Referenced by StreamView::Create(), and MusicCommon::CreateCommon().
Definition at line 66 of file musicplayer.h.
Referenced by MusicCommon::changeRating(), MusicCommon::changeSpeed(), MusicCommon::CreateCommon(), MusicCommon::createMainMenu(), MusicCommon::createPlayerMenu(), MusicCommon::customEvent(), MusicCommon::keyPressEvent(), MusicCommon::updateProgressBar(), and MusicCommon::updateTrackInfo().
| void MusicPlayer::playFile | ( | const MusicMetadata & | meta | ) |
Definition at line 251 of file musicplayer.cpp.
Referenced by customEvent(), and ImportMusicDialog::playPressed().
| void MusicPlayer::addListener | ( | QObject * | listener | ) |
Add a listener to the observable.
Adds the given QObject to the list of objects that observe this observable.
| listener | the QObject that will listen to this observable |
Reimplemented from MythObservable.
Definition at line 166 of file musicplayer.cpp.
Referenced by MusicCommon::CreateCommon().
| void MusicPlayer::removeListener | ( | QObject * | listener | ) |
Remove a listener to the observable.
Remove the given QObject from the list of objects that observe this observable.
| listener | the QObject that already listens to this observable |
Reimplemented from MythObservable.
Definition at line 182 of file musicplayer.cpp.
Referenced by MusicCommon::switchView(), MiniPlayer::~MiniPlayer(), and MusicCommon::~MusicCommon().
| void MusicPlayer::addVisual | ( | MainVisual * | visual | ) |
Definition at line 198 of file musicplayer.cpp.
Referenced by MusicCommon::startVisualizer().
| void MusicPlayer::removeVisual | ( | MainVisual * | visual | ) |
Definition at line 212 of file musicplayer.cpp.
Referenced by MusicCommon::stopVisualizer().
|
inline |
Definition at line 76 of file musicplayer.h.
Definition at line 1308 of file musicplayer.cpp.
Referenced by MusicCommon::toggleMute(), and MythMusicVolumeDialog::toggleMute().
Definition at line 1317 of file musicplayer.cpp.
Referenced by isMuted().
Definition at line 80 of file musicplayer.h.
Referenced by sendVolumeChangedEvent(), toMap(), MythMusicVolumeDialog::updateDisplay(), and MusicCommon::updateVolume().
Definition at line 1292 of file musicplayer.cpp.
Referenced by customEvent().
Definition at line 1274 of file musicplayer.cpp.
Referenced by MusicCommon::changeVolume(), and MythMusicVolumeDialog::increaseVolume().
Definition at line 1283 of file musicplayer.cpp.
Referenced by MusicCommon::changeVolume(), and MythMusicVolumeDialog::decreaseVolume().
Definition at line 1301 of file musicplayer.cpp.
Referenced by customEvent(), sendVolumeChangedEvent(), toMap(), and MythMusicVolumeDialog::updateDisplay().
| void MusicPlayer::setSpeed | ( | float | speed | ) |
Definition at line 1223 of file musicplayer.cpp.
Referenced by decSpeed(), and incSpeed().
| void MusicPlayer::incSpeed | ( | ) |
Definition at line 1232 of file musicplayer.cpp.
Referenced by MusicCommon::changeSpeed().
| void MusicPlayer::decSpeed | ( | ) |
Definition at line 1238 of file musicplayer.cpp.
Referenced by MusicCommon::changeSpeed().
|
inline |
Definition at line 90 of file musicplayer.h.
Definition at line 332 of file musicplayer.cpp.
Referenced by customEvent(), next(), nextAuto(), MusicCommon::play(), playFile(), previous(), restorePosition(), and setCurrentTrackPos().
Definition at line 265 of file musicplayer.cpp.
Referenced by activePlaylistChanged(), MusicCommon::CreateCommon(), customEvent(), mythplugin_destroy(), next(), runScan(), setCurrentTrackPos(), MusicCommon::stop(), MusicCommon::stopAll(), StreamView::updateStreamList(), and ~MusicPlayer().
Definition at line 314 of file musicplayer.cpp.
Referenced by customEvent(), MusicCommon::pause(), and stop().
Definition at line 422 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), MusicCommon::next(), nextAuto(), and ImportMusicDialog::~ImportMusicDialog().
Definition at line 459 of file musicplayer.cpp.
Referenced by MusicCommon::previous().
Definition at line 490 of file musicplayer.cpp.
Referenced by customEvent().
Definition at line 100 of file musicplayer.h.
Referenced by MusicCommon::CreateCommon(), StreamView::customEvent(), MusicCommon::customEvent(), MusicCommon::doUpdatePlaylist(), handleMedia(), isStopped(), MusicCommon::keyPressEvent(), MusicCommon::seek(), MusicCommon::updatePlaylistStats(), StreamView::updateStreamList(), MusicCommon::updateUIPlaylist(), and ImportMusicDialog::~ImportMusicDialog().
Definition at line 101 of file musicplayer.h.
Referenced by MusicCommon::CreateCommon(), isStopped(), StreamView::updateStreamList(), and MusicCommon::updateUIPlaylist().
Definition at line 102 of file musicplayer.h.
Referenced by MusicCommon::CreateCommon().
Definition at line 103 of file musicplayer.h.
Referenced by showMiniPlayer(), and ~MusicPlayer().
This will allow/disallow the mini player showing on track changes.
Definition at line 106 of file musicplayer.h.
Referenced by MiniPlayer::keyPressEvent().
Definition at line 107 of file musicplayer.h.
Referenced by MiniPlayer::keyPressEvent().
This will allow/disallow the mini player showing even using its jumppoint.
Definition at line 110 of file musicplayer.h.
Definition at line 111 of file musicplayer.h.
Definition at line 113 of file musicplayer.h.
Referenced by addListener(), decoderHandlerReady(), pause(), removeListener(), MusicCommon::seek(), seek(), stop(), and updateVolatileMetadata().
|
inline |
Definition at line 114 of file musicplayer.h.
Referenced by Decoder::input(), play(), and stopDecoder().
|
inline |
Definition at line 115 of file musicplayer.h.
Referenced by MusicCommon::changeSpeed(), MusicCommon::changeVolume(), decVolume(), incVolume(), isPaused(), MusicCommon::keyPressEvent(), MusicCommon::seek(), setVolume(), MainVisual::timeout(), and MusicCommon::toggleUpmix().
Definition at line 870 of file musicplayer.cpp.
Referenced by loadMusic(), and setPlayMode().
Definition at line 912 of file musicplayer.cpp.
Referenced by StreamView::addStream(), StreamView::deleteStream(), loadMusic(), and StreamView::updateStream().
Definition at line 119 of file musicplayer.h.
Referenced by addTrack(), MusicCommon::CreateCommon(), SearchView::customEvent(), MusicCommon::customEvent(), MusicCommon::doUpdatePlaylist(), Playlist::fillSongsFromSonglist(), MusicCommon::keyPressEvent(), removeTrack(), MusicCommon::restorePosition(), setShuffleMode(), SearchView::ShowMenu(), MusicCommon::showPlaylistOptionsMenu(), SearchView::trackClicked(), MusicCommon::updatePlaylistStats(), StreamView::updateStreamList(), SearchView::updateTracksList(), and MusicCommon::updateUIPlaylist().
| StreamList * MusicPlayer::getStreamList | ( | void | ) |
Definition at line 1472 of file musicplayer.cpp.
Definition at line 1454 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), and MusicCommon::keyPressEvent().
Definition at line 1467 of file musicplayer.cpp.
Definition at line 928 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
|
inline |
Definition at line 128 of file musicplayer.h.
Referenced by StreamView::customEvent(), and MusicCommon::updateUIPlayedList().
Definition at line 130 of file musicplayer.h.
Referenced by MusicCommon::CreateCommon(), MusicCommon::customEvent(), MusicCommon::doUpdatePlaylist(), and MusicCommon::keyPressEvent().
Definition at line 943 of file musicplayer.cpp.
Referenced by MusicCommon::doUpdatePlaylist(), MusicCommon::playFirstTrack(), MusicCommon::playlistItemClicked(), and StreamView::streamItemClicked().
change the current track to the given track
Definition at line 1040 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), MusicCommon::doUpdatePlaylist(), next(), previous(), and setCurrentTrackPos().
Definition at line 1333 of file musicplayer.cpp.
Referenced by Playlist::addTrack(), MusicCommon::customEvent(), Playlist::fillSongsFromSonglist(), and Playlist::removeTrack().
Definition at line 1367 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent().
Definition at line 958 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), customEvent(), MusicCommon::keyPressEvent(), setPlayMode(), and ~MusicPlayer().
Definition at line 975 of file musicplayer.cpp.
Referenced by MusicCommon::CreateCommon().
Definition at line 139 of file musicplayer.h.
Referenced by MusicCommon::switchView().
Definition at line 1012 of file musicplayer.cpp.
Referenced by customEvent(), decoderHandlerReady(), and restorePosition().
| MusicMetadata * MusicPlayer::getCurrentMetadata | ( | void | ) |
get the metadata for the current track in the playlist
Definition at line 1065 of file musicplayer.cpp.
Referenced by MusicCommon::byAlbum(), MusicCommon::byArtist(), MusicCommon::byGenre(), MusicCommon::byTitle(), MusicCommon::byYear(), MusicCommon::changeRating(), MusicCommon::CreateCommon(), MusicCommon::createQuickPlaylistsMenu(), StreamView::customEvent(), MusicCommon::customEvent(), customEvent(), AlbumArt::cycleImage(), MusicCommon::doUpdatePlaylist(), AlbumArt::draw(), AlbumArt::findFrontCover(), getNextMetadata(), AlbumArt::handleKeyPress(), MusicCommon::keyPressEvent(), AlbumArt::needsUpdate(), play(), setShuffleMode(), VisualizerView::showTrackInfoPopup(), MusicCommon::updateRepeatMode(), MusicCommon::updateShuffleMode(), StreamView::updateStream(), StreamView::updateStreamList(), MusicCommon::updateUIPlaylist(), and ImportMusicDialog::~ImportMusicDialog().
| MusicMetadata * MusicPlayer::getNextMetadata | ( | void | ) |
get the metadata for the next track in the playlist
Definition at line 1082 of file musicplayer.cpp.
Referenced by TrackInfoPopup::Create(), MusicCommon::customEvent(), and MusicCommon::updateTrackInfo().
Definition at line 1250 of file musicplayer.cpp.
Referenced by customEvent(), and EditMetadataCommon::saveToDatabase().
Definition at line 1256 of file musicplayer.cpp.
Referenced by MusicCommon::changeRating(), and updateVolatileMetadata().
Definition at line 1262 of file musicplayer.cpp.
Referenced by EditAlbumartDialog::~EditAlbumartDialog().
Definition at line 1268 of file musicplayer.cpp.
Referenced by CDWatcherThread::run().
| void MusicPlayer::toMap | ( | QHash< QString, QString > & | infoMap | ) |
Definition at line 1324 of file musicplayer.cpp.
Referenced by MythMusicVolumeDialog::updateDisplay(), and MusicCommon::updateVolume().
Definition at line 1023 of file musicplayer.cpp.
Referenced by showMiniPlayer().
|
inline |
Definition at line 174 of file musicplayer.h.
Referenced by MusicCommon::updateRepeatMode().
|
inline |
Definition at line 175 of file musicplayer.h.
Referenced by MusicCommon::customEvent(), and MusicPlayer().
| MusicPlayer::RepeatMode MusicPlayer::toggleRepeatMode | ( | void | ) |
Definition at line 1112 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
|
inline |
Definition at line 178 of file musicplayer.h.
Referenced by Playlist::fillSongsFromSonglist(), and MusicCommon::updateShuffleMode().
| void MusicPlayer::setShuffleMode | ( | ShuffleMode | mode | ) |
Definition at line 1162 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), loadPlaylist(), MusicPlayer(), and toggleShuffleMode().
| MusicPlayer::ShuffleMode MusicPlayer::toggleShuffleMode | ( | void | ) |
Definition at line 1133 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
|
inline |
Definition at line 182 of file musicplayer.h.
Referenced by loadPlaylist(), and restorePosition().
Definition at line 852 of file musicplayer.cpp.
Referenced by MusicCommon::updateProgressBar().
|
protected |
Definition at line 529 of file musicplayer.cpp.
Definition at line 226 of file musicplayer.cpp.
Referenced by customEvent(), and MusicPlayer().
Definition at line 355 of file musicplayer.cpp.
Definition at line 361 of file musicplayer.cpp.
Referenced by play().
Definition at line 1187 of file musicplayer.cpp.
Referenced by customEvent().
Definition at line 1198 of file musicplayer.cpp.
Referenced by changeCurrentTrack().
Definition at line 1244 of file musicplayer.cpp.
Referenced by decVolume(), incVolume(), setVolume(), and toggleMute().
Definition at line 1373 of file musicplayer.cpp.
Referenced by play().
Definition at line 1389 of file musicplayer.cpp.
Referenced by customEvent().
|
private |
Definition at line 200 of file musicplayer.h.
Referenced by changeCurrentTrack(), getCurrentMetadata(), getNextMetadata(), getPlaylist(), loadPlaylist(), moveTrackUpDown(), MusicPlayer(), next(), nextAuto(), previous(), restorePosition(), and setShuffleMode().
|
private |
Definition at line 201 of file musicplayer.h.
Referenced by activePlaylistChanged(), changeCurrentTrack(), customEvent(), decoderHandlerReady(), getCurrentMetadata(), getCurrentTrackPos(), getNextMetadata(), loadPlaylist(), moveTrackUpDown(), MusicPlayer(), next(), previous(), removeTrack(), restorePosition(), and setShuffleMode().
|
private |
Definition at line 202 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), MusicPlayer(), and savePosition().
|
private |
Definition at line 204 of file musicplayer.h.
Referenced by activePlaylistChanged(), changeCurrentTrack(), customEvent(), getCurrentMetadata(), getNextMetadata(), loadPlaylist(), MusicPlayer(), next(), previous(), restorePosition(), savePosition(), setCurrentTrackPos(), updateLastplay(), and updateVolatileMetadata().
|
private |
Definition at line 205 of file musicplayer.h.
Referenced by getCurrentMetadata(), getNextMetadata(), MusicPlayer(), next(), nextAuto(), playFile(), previous(), and ~MusicPlayer().
|
private |
Definition at line 207 of file musicplayer.h.
Referenced by addListener(), addVisual(), decoderHandlerReady(), getMuteState(), getOutput(), getVolume(), MusicPlayer(), openOutputDevice(), pause(), play(), removeListener(), removeVisual(), seek(), setSpeed(), stop(), and toggleMute().
|
private |
Definition at line 208 of file musicplayer.h.
Referenced by addListener(), getDecoder(), getDecoderHandler(), MusicPlayer(), nextAuto(), removeListener(), setupDecoderHandler(), and ~MusicPlayer().
|
private |
Definition at line 210 of file musicplayer.h.
Referenced by addVisual(), decoderHandlerReady(), openOutputDevice(), and removeVisual().
|
private |
Definition at line 212 of file musicplayer.h.
Referenced by decoderHandlerReady(), loadSettings(), MusicPlayer(), and setCDDevice().
|
private |
Definition at line 214 of file musicplayer.h.
Referenced by customEvent(), getNextMetadata(), getPlayMode(), loadPlaylist(), MusicPlayer(), restorePosition(), savePosition(), setPlayMode(), updateLastplay(), and updateVolatileMetadata().
|
private |
Definition at line 215 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), isPlaying(), MusicPlayer(), pause(), and stop().
|
private |
Definition at line 216 of file musicplayer.h.
Referenced by addListener(), customEvent(), MusicPlayer(), nextAuto(), and removeListener().
|
private |
Definition at line 217 of file musicplayer.h.
Referenced by canShowPlayer(), customEvent(), getCanShowPlayer(), MusicPlayer(), nextAuto(), and showMiniPlayer().
|
private |
Definition at line 218 of file musicplayer.h.
Referenced by autoShowPlayer(), customEvent(), getAutoShowPlayer(), loadSettings(), nextAuto(), and ~MusicPlayer().
|
private |
Definition at line 219 of file musicplayer.h.
Referenced by customEvent(), and MusicPlayer().
|
private |
Definition at line 220 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), MusicPlayer(), and updateLastplay().
|
private |
Definition at line 221 of file musicplayer.h.
Referenced by MusicPlayer(), restorePosition(), and setAllowRestorePos().
|
private |
Definition at line 223 of file musicplayer.h.
Referenced by customEvent(), and loadSettings().
|
private |
Definition at line 225 of file musicplayer.h.
Referenced by getShuffleMode(), setShuffleMode(), toggleShuffleMode(), and ~MusicPlayer().
|
private |
Definition at line 226 of file musicplayer.h.
Referenced by getNextMetadata(), getRepeatMode(), next(), nextAuto(), setRepeatMode(), toggleRepeatMode(), and ~MusicPlayer().
|
private |
Definition at line 227 of file musicplayer.h.
Referenced by decoderHandlerReady(), getResumeMode(), and loadSettings().
|
private |
Definition at line 229 of file musicplayer.h.
Referenced by decSpeed(), getSpeed(), incSpeed(), MusicPlayer(), and setSpeed().
|
private |
Definition at line 232 of file musicplayer.h.
Referenced by loadPlaylist(), loadSettings(), MusicPlayer(), stop(), and ~MusicPlayer().
|
private |
Definition at line 235 of file musicplayer.h.
Referenced by customEvent(), getPlayedTracksList(), and ~MusicPlayer().
|
private |
Definition at line 236 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), and MusicPlayer().
|
private |
Definition at line 237 of file musicplayer.h.
Referenced by customEvent(), getBufferStatus(), and MusicPlayer().
|
private |
Definition at line 238 of file musicplayer.h.
Referenced by customEvent(), getBufferStatus(), and MusicPlayer().
1.8.1.2