#include <musicplayer.h>
Definition at line 48 of file musicplayer.h.
Definition at line 142 of file musicplayer.h.
| SHUFFLE_OFF | |
| SHUFFLE_RANDOM | |
| SHUFFLE_INTELLIGENT | |
| SHUFFLE_ALBUM | |
| SHUFFLE_ARTIST | |
| MAX_SHUFFLE_MODES |
Definition at line 148 of file musicplayer.h.
Definition at line 157 of file musicplayer.h.
| MusicPlayer::MusicPlayer | ( | QObject * | parent, | |
| const QString & | dev | |||
| ) |
Definition at line 48 of file musicplayer.cpp.
| MusicPlayer::~MusicPlayer | ( | void | ) |
Definition at line 101 of file musicplayer.cpp.
| void MusicPlayer::switchPlayMode | ( | bool | playStreams | ) |
Definition at line 803 of file musicplayer.cpp.
| void MusicPlayer::playFile | ( | const Metadata & | meta | ) |
Definition at line 237 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 152 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 168 of file musicplayer.cpp.
Referenced by MusicCommon::switchView(), MiniPlayer::~MiniPlayer(), and MusicCommon::~MusicCommon().
| void MusicPlayer::addVisual | ( | MainVisual * | visual | ) |
Definition at line 184 of file musicplayer.cpp.
Referenced by MusicCommon::startVisualizer().
| void MusicPlayer::removeVisual | ( | MainVisual * | visual | ) |
Definition at line 198 of file musicplayer.cpp.
Referenced by MusicCommon::stopVisualizer().
| void MusicPlayer::setCDDevice | ( | const QString & | dev | ) | [inline] |
Definition at line 66 of file musicplayer.h.
| void MusicPlayer::toggleMute | ( | void | ) |
Definition at line 1219 of file musicplayer.cpp.
Referenced by MythMusicVolumeDialog::toggleMute(), and MusicCommon::toggleMute().
| MuteState MusicPlayer::getMuteState | ( | void | ) | const |
Definition at line 1228 of file musicplayer.cpp.
Referenced by isMuted().
| bool MusicPlayer::isMuted | ( | void | ) | const [inline] |
Definition at line 70 of file musicplayer.h.
Referenced by sendVolumeChangedEvent(), toMap(), MythMusicVolumeDialog::updateDisplay(), and MusicCommon::updateVolume().
| void MusicPlayer::setVolume | ( | int | volume | ) |
Definition at line 1203 of file musicplayer.cpp.
Referenced by customEvent().
| void MusicPlayer::incVolume | ( | void | ) |
Definition at line 1185 of file musicplayer.cpp.
Referenced by MusicCommon::changeVolume(), and MythMusicVolumeDialog::increaseVolume().
| void MusicPlayer::decVolume | ( | void | ) |
Definition at line 1194 of file musicplayer.cpp.
Referenced by MusicCommon::changeVolume(), and MythMusicVolumeDialog::decreaseVolume().
| uint MusicPlayer::getVolume | ( | void | ) | const |
Definition at line 1212 of file musicplayer.cpp.
Referenced by customEvent(), sendVolumeChangedEvent(), toMap(), and MythMusicVolumeDialog::updateDisplay().
| void MusicPlayer::setSpeed | ( | float | speed | ) |
Definition at line 1134 of file musicplayer.cpp.
Referenced by decSpeed(), and incSpeed().
| void MusicPlayer::incSpeed | ( | ) |
Definition at line 1143 of file musicplayer.cpp.
Referenced by MusicCommon::changeSpeed().
| void MusicPlayer::decSpeed | ( | ) |
Definition at line 1149 of file musicplayer.cpp.
Referenced by MusicCommon::changeSpeed().
| float MusicPlayer::getSpeed | ( | ) | [inline] |
Definition at line 80 of file musicplayer.h.
Referenced by MusicCommon::showSpeed().
| void MusicPlayer::play | ( | void | ) |
Definition at line 312 of file musicplayer.cpp.
Referenced by customEvent(), next(), nextAuto(), MusicCommon::play(), playFile(), previous(), restorePosition(), and setCurrentTrackPos().
| void MusicPlayer::stop | ( | bool | stopAll = false |
) |
Definition at line 251 of file musicplayer.cpp.
Referenced by activePlaylistChanged(), customEvent(), mythplugin_destroy(), next(), runScan(), setCurrentTrackPos(), MusicCommon::stop(), MusicCommon::stopAll(), and ~MusicPlayer().
| void MusicPlayer::pause | ( | void | ) |
Definition at line 294 of file musicplayer.cpp.
Referenced by customEvent(), MusicCommon::pause(), and stop().
| void MusicPlayer::next | ( | void | ) |
Definition at line 404 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), MusicCommon::next(), nextAuto(), and ImportMusicDialog::~ImportMusicDialog().
| void MusicPlayer::previous | ( | void | ) |
Definition at line 441 of file musicplayer.cpp.
Referenced by MusicCommon::previous().
| void MusicPlayer::nextAuto | ( | void | ) |
Definition at line 472 of file musicplayer.cpp.
Referenced by customEvent().
| bool MusicPlayer::isPlaying | ( | void | ) | [inline] |
Definition at line 90 of file musicplayer.h.
Referenced by MusicCommon::CreateCommon(), MusicCommon::customEvent(), handleMedia(), isStopped(), MusicCommon::keyPressEvent(), MusicCommon::seek(), MusicCommon::updatePlaylistStats(), MusicCommon::updateUIPlayedList(), MusicCommon::updateUIPlaylist(), and ImportMusicDialog::~ImportMusicDialog().
| bool MusicPlayer::isPaused | ( | void | ) | [inline] |
Definition at line 91 of file musicplayer.h.
Referenced by MusicCommon::CreateCommon(), isStopped(), and MusicCommon::updateUIPlaylist().
| bool MusicPlayer::isStopped | ( | void | ) | [inline] |
Definition at line 92 of file musicplayer.h.
Referenced by MusicCommon::CreateCommon().
| bool MusicPlayer::hasClient | ( | void | ) | [inline] |
Definition at line 93 of file musicplayer.h.
Referenced by showMiniPlayer(), and ~MusicPlayer().
| void MusicPlayer::autoShowPlayer | ( | bool | autoShow | ) | [inline] |
This will allow/disallow the mini player showing on track changes.
Definition at line 96 of file musicplayer.h.
Referenced by MiniPlayer::keyPressEvent().
| bool MusicPlayer::getAutoShowPlayer | ( | void | ) | [inline] |
Definition at line 97 of file musicplayer.h.
Referenced by MiniPlayer::keyPressEvent().
| void MusicPlayer::canShowPlayer | ( | bool | canShow | ) | [inline] |
This will allow/disallow the mini player showing even using its jumppoint.
Definition at line 100 of file musicplayer.h.
| bool MusicPlayer::getCanShowPlayer | ( | void | ) | [inline] |
Definition at line 101 of file musicplayer.h.
| Decoder* MusicPlayer::getDecoder | ( | void | ) | [inline] |
Definition at line 103 of file musicplayer.h.
Referenced by addListener(), decoderHandlerReady(), pause(), removeListener(), seek(), MusicCommon::seek(), stop(), and updateVolatileMetadata().
| DecoderHandler* MusicPlayer::getDecoderHandler | ( | void | ) | [inline] |
Definition at line 104 of file musicplayer.h.
Referenced by play(), and stopDecoder().
| AudioOutput* MusicPlayer::getOutput | ( | void | ) | [inline] |
Definition at line 105 of file musicplayer.h.
Referenced by MusicCommon::changeSpeed(), MusicCommon::changeVolume(), decVolume(), incVolume(), isPaused(), MusicCommon::keyPressEvent(), MusicCommon::seek(), setVolume(), MainVisual::timeout(), and MusicCommon::toggleUpmix().
| void MusicPlayer::loadPlaylist | ( | void | ) |
Definition at line 812 of file musicplayer.cpp.
Referenced by loadMusic(), and switchPlayMode().
| Playlist* MusicPlayer::getPlaylist | ( | void | ) | [inline] |
Definition at line 108 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(), SearchView::updateTracksList(), and MusicCommon::updateUIPlaylist().
| void MusicPlayer::removeTrack | ( | int | trackID | ) |
Definition at line 1364 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), and MusicCommon::keyPressEvent().
| void MusicPlayer::addTrack | ( | int | trackID, | |
| bool | updateUI | |||
| ) |
Definition at line 1377 of file musicplayer.cpp.
| void MusicPlayer::moveTrackUpDown | ( | bool | moveUp, | |
| int | whichTrack | |||
| ) |
Definition at line 854 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
| QList<Metadata> MusicPlayer::getPlayedTracksList | ( | void | ) | [inline] |
Definition at line 116 of file musicplayer.h.
Referenced by MusicCommon::updateUIPlayedList().
| int MusicPlayer::getCurrentTrackPos | ( | void | ) | [inline] |
Definition at line 118 of file musicplayer.h.
Referenced by MusicCommon::CreateCommon(), MusicCommon::customEvent(), MusicCommon::doUpdatePlaylist(), and MusicCommon::keyPressEvent().
| bool MusicPlayer::setCurrentTrackPos | ( | int | pos | ) |
Definition at line 869 of file musicplayer.cpp.
Referenced by MusicCommon::doUpdatePlaylist(), MusicCommon::playFirstTrack(), and MusicCommon::playlistItemClicked().
| void MusicPlayer::changeCurrentTrack | ( | int | trackNo | ) |
change the current track to the given track
Definition at line 961 of file musicplayer.cpp.
Referenced by next(), previous(), and setCurrentTrackPos().
| void MusicPlayer::activePlaylistChanged | ( | int | trackID, | |
| bool | deleted | |||
| ) |
Definition at line 1244 of file musicplayer.cpp.
Referenced by Playlist::addTrack(), MusicCommon::customEvent(), Playlist::fillSongsFromSonglist(), and Playlist::removeTrack().
| void MusicPlayer::playlistChanged | ( | int | playlistID | ) |
Definition at line 1278 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent().
| void MusicPlayer::savePosition | ( | void | ) |
Definition at line 884 of file musicplayer.cpp.
Referenced by customEvent(), MusicCommon::customEvent(), MusicCommon::keyPressEvent(), switchPlayMode(), and ~MusicPlayer().
| void MusicPlayer::restorePosition | ( | void | ) |
Definition at line 899 of file musicplayer.cpp.
Referenced by MusicCommon::CreateCommon().
| void MusicPlayer::setAllowRestorePos | ( | bool | allow | ) | [inline] |
Definition at line 127 of file musicplayer.h.
Referenced by MusicCommon::switchView().
| void MusicPlayer::seek | ( | int | pos | ) |
Definition at line 933 of file musicplayer.cpp.
Referenced by customEvent(), decoderHandlerReady(), and restorePosition().
| Metadata * MusicPlayer::getCurrentMetadata | ( | void | ) |
get the metadata for the current track in the playlist
Definition at line 986 of file musicplayer.cpp.
Referenced by MusicCommon::byAlbum(), MusicCommon::byArtist(), MusicCommon::byGenre(), MusicCommon::byTitle(), MusicCommon::byYear(), MusicCommon::changeRating(), MusicCommon::CreateCommon(), MusicCommon::createQuickPlaylistsMenu(), customEvent(), MusicCommon::customEvent(), AlbumArt::cycleImage(), MusicCommon::doUpdatePlaylist(), AlbumArt::draw(), AlbumArt::findFrontCover(), getNextMetadata(), AlbumArt::handleKeyPress(), MusicCommon::keyPressEvent(), AlbumArt::needsUpdate(), play(), setShuffleMode(), VisualizerView::showTrackInfoPopup(), MusicCommon::updateRepeatMode(), MusicCommon::updateShuffleMode(), MusicCommon::updateUIPlaylist(), and ImportMusicDialog::~ImportMusicDialog().
| Metadata * MusicPlayer::getNextMetadata | ( | void | ) |
get the metadata for the next track in the playlist
Definition at line 1003 of file musicplayer.cpp.
Referenced by TrackInfoPopup::Create(), MusicCommon::customEvent(), and MusicCommon::updateTrackInfo().
| Metadata* MusicPlayer::getDisplayMetadata | ( | void | ) | [inline] |
Definition at line 132 of file musicplayer.h.
| void MusicPlayer::refreshMetadata | ( | void | ) |
Referenced by MusicCommon::~MusicCommon().
| void MusicPlayer::sendMetadataChangedEvent | ( | int | trackID | ) |
Definition at line 1161 of file musicplayer.cpp.
Referenced by customEvent(), and EditMetadataCommon::saveToDatabase().
| void MusicPlayer::sendTrackStatsChangedEvent | ( | int | trackID | ) |
Definition at line 1167 of file musicplayer.cpp.
Referenced by MusicCommon::changeRating(), Metadata::persist(), and updateVolatileMetadata().
| void MusicPlayer::sendAlbumArtChangedEvent | ( | int | trackID | ) |
Definition at line 1173 of file musicplayer.cpp.
Referenced by EditAlbumartDialog::~EditAlbumartDialog().
| void MusicPlayer::sendCDChangedEvent | ( | void | ) |
Definition at line 1179 of file musicplayer.cpp.
Referenced by CDWatcherThread::run().
| void MusicPlayer::toMap | ( | QHash< QString, QString > & | infoMap | ) |
Definition at line 1235 of file musicplayer.cpp.
Referenced by MythMusicVolumeDialog::updateDisplay(), and MusicCommon::updateVolume().
| void MusicPlayer::showMiniPlayer | ( | void | ) |
Definition at line 944 of file musicplayer.cpp.
Referenced by showMiniPlayer().
| RepeatMode MusicPlayer::getRepeatMode | ( | void | ) | [inline] |
Definition at line 164 of file musicplayer.h.
Referenced by MusicCommon::updateRepeatMode().
| void MusicPlayer::setRepeatMode | ( | RepeatMode | mode | ) | [inline] |
Definition at line 165 of file musicplayer.h.
Referenced by MusicCommon::customEvent(), and MusicPlayer().
| MusicPlayer::RepeatMode MusicPlayer::toggleRepeatMode | ( | void | ) |
Definition at line 1033 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
| ShuffleMode MusicPlayer::getShuffleMode | ( | void | ) | [inline] |
Definition at line 168 of file musicplayer.h.
Referenced by Playlist::fillSongsFromSonglist(), and MusicCommon::updateShuffleMode().
| void MusicPlayer::setShuffleMode | ( | ShuffleMode | mode | ) |
Definition at line 1083 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), loadPlaylist(), MusicPlayer(), and toggleShuffleMode().
| MusicPlayer::ShuffleMode MusicPlayer::toggleShuffleMode | ( | void | ) |
Definition at line 1054 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
| ResumeMode MusicPlayer::getResumeMode | ( | void | ) | [inline] |
Definition at line 172 of file musicplayer.h.
Referenced by loadPlaylist(), and restorePosition().
| void MusicPlayer::customEvent | ( | QEvent * | event | ) | [protected] |
Definition at line 511 of file musicplayer.cpp.
| void MusicPlayer::loadSettings | ( | void | ) | [private] |
Definition at line 212 of file musicplayer.cpp.
Referenced by customEvent(), and MusicPlayer().
| void MusicPlayer::stopDecoder | ( | void | ) | [private] |
Definition at line 337 of file musicplayer.cpp.
| bool MusicPlayer::openOutputDevice | ( | void | ) | [private] |
Definition at line 343 of file musicplayer.cpp.
Referenced by play().
| void MusicPlayer::updateLastplay | ( | void | ) | [private] |
Definition at line 1108 of file musicplayer.cpp.
Referenced by customEvent().
| void MusicPlayer::updateVolatileMetadata | ( | void | ) | [private] |
Definition at line 1119 of file musicplayer.cpp.
Referenced by changeCurrentTrack().
| void MusicPlayer::sendVolumeChangedEvent | ( | void | ) | [private] |
Definition at line 1155 of file musicplayer.cpp.
Referenced by decVolume(), incVolume(), setVolume(), and toggleMute().
| void MusicPlayer::setupDecoderHandler | ( | void | ) | [private] |
Definition at line 1284 of file musicplayer.cpp.
Referenced by play().
| void MusicPlayer::decoderHandlerReady | ( | void | ) | [private] |
Definition at line 1300 of file musicplayer.cpp.
Referenced by customEvent().
Playlist* MusicPlayer::m_currentPlaylist [private] |
Definition at line 188 of file musicplayer.h.
Referenced by changeCurrentTrack(), getCurrentMetadata(), getNextMetadata(), getPlaylist(), loadPlaylist(), moveTrackUpDown(), MusicPlayer(), next(), nextAuto(), previous(), restorePosition(), and setShuffleMode().
int MusicPlayer::m_currentTrack [private] |
Definition at line 189 of file musicplayer.h.
Referenced by activePlaylistChanged(), changeCurrentTrack(), customEvent(), decoderHandlerReady(), getCurrentMetadata(), getCurrentTrackPos(), getNextMetadata(), loadPlaylist(), moveTrackUpDown(), MusicPlayer(), next(), previous(), removeTrack(), restorePosition(), and setShuffleMode().
int MusicPlayer::m_currentTime [private] |
Definition at line 190 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), MusicPlayer(), and savePosition().
Metadata* MusicPlayer::m_currentMetadata [private] |
Definition at line 192 of file musicplayer.h.
Referenced by activePlaylistChanged(), changeCurrentTrack(), customEvent(), getCurrentMetadata(), getNextMetadata(), loadPlaylist(), MusicPlayer(), next(), previous(), restorePosition(), savePosition(), setCurrentTrackPos(), updateLastplay(), and updateVolatileMetadata().
Metadata* MusicPlayer::m_oneshotMetadata [private] |
Definition at line 193 of file musicplayer.h.
Referenced by getCurrentMetadata(), getNextMetadata(), MusicPlayer(), next(), nextAuto(), playFile(), previous(), and ~MusicPlayer().
Metadata MusicPlayer::m_displayMetadata [private] |
Definition at line 194 of file musicplayer.h.
Referenced by customEvent(), and getDisplayMetadata().
AudioOutput* MusicPlayer::m_output [private] |
Definition at line 196 of file musicplayer.h.
Referenced by addListener(), addVisual(), decoderHandlerReady(), getMuteState(), getOutput(), getVolume(), MusicPlayer(), openOutputDevice(), pause(), play(), removeListener(), removeVisual(), seek(), setSpeed(), stop(), and toggleMute().
DecoderHandler* MusicPlayer::m_decoderHandler [private] |
Definition at line 197 of file musicplayer.h.
Referenced by addListener(), getDecoder(), getDecoderHandler(), MusicPlayer(), nextAuto(), removeListener(), setupDecoderHandler(), and ~MusicPlayer().
QSet<QObject*> MusicPlayer::m_visualisers [private] |
Definition at line 199 of file musicplayer.h.
Referenced by addVisual(), decoderHandlerReady(), openOutputDevice(), and removeVisual().
QString MusicPlayer::m_CDdevice [private] |
Definition at line 201 of file musicplayer.h.
Referenced by decoderHandlerReady(), loadSettings(), MusicPlayer(), and setCDDevice().
bool MusicPlayer::m_isPlaying [private] |
Definition at line 203 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), isPlaying(), MusicPlayer(), pause(), and stop().
bool MusicPlayer::m_isAutoplay [private] |
Definition at line 204 of file musicplayer.h.
Referenced by addListener(), customEvent(), MusicPlayer(), nextAuto(), and removeListener().
bool MusicPlayer::m_canShowPlayer [private] |
Definition at line 205 of file musicplayer.h.
Referenced by canShowPlayer(), customEvent(), getCanShowPlayer(), MusicPlayer(), nextAuto(), and showMiniPlayer().
bool MusicPlayer::m_autoShowPlayer [private] |
Definition at line 206 of file musicplayer.h.
Referenced by autoShowPlayer(), customEvent(), getAutoShowPlayer(), loadSettings(), nextAuto(), and ~MusicPlayer().
bool MusicPlayer::m_wasPlaying [private] |
Definition at line 207 of file musicplayer.h.
Referenced by customEvent(), and MusicPlayer().
bool MusicPlayer::m_updatedLastplay [private] |
Definition at line 208 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), MusicPlayer(), and updateLastplay().
bool MusicPlayer::m_allowRestorePos [private] |
Definition at line 209 of file musicplayer.h.
Referenced by MusicPlayer(), restorePosition(), and setAllowRestorePos().
int MusicPlayer::m_lastplayDelay [private] |
Definition at line 211 of file musicplayer.h.
Referenced by customEvent(), and loadSettings().
ShuffleMode MusicPlayer::m_shuffleMode [private] |
Definition at line 213 of file musicplayer.h.
Referenced by getShuffleMode(), setShuffleMode(), toggleShuffleMode(), and ~MusicPlayer().
RepeatMode MusicPlayer::m_repeatMode [private] |
Definition at line 214 of file musicplayer.h.
Referenced by getNextMetadata(), getRepeatMode(), next(), nextAuto(), setRepeatMode(), toggleRepeatMode(), and ~MusicPlayer().
ResumeMode MusicPlayer::m_resumeMode [private] |
Definition at line 215 of file musicplayer.h.
Referenced by decoderHandlerReady(), getResumeMode(), and loadSettings().
float MusicPlayer::m_playSpeed [private] |
Definition at line 217 of file musicplayer.h.
Referenced by decSpeed(), getSpeed(), incSpeed(), MusicPlayer(), and setSpeed().
CDWatcherThread* MusicPlayer::m_cdWatcher [private] |
Definition at line 220 of file musicplayer.h.
Referenced by loadPlaylist(), loadSettings(), MusicPlayer(), and ~MusicPlayer().
bool MusicPlayer::m_isStreaming [private] |
Definition at line 223 of file musicplayer.h.
Referenced by getNextMetadata(), loadPlaylist(), MusicPlayer(), play(), savePosition(), switchPlayMode(), updateLastplay(), and updateVolatileMetadata().
QList<Metadata> MusicPlayer::m_playedList [private] |
Definition at line 224 of file musicplayer.h.
Referenced by customEvent(), and getPlayedTracksList().
int MusicPlayer::m_lastTrackStart [private] |
Definition at line 225 of file musicplayer.h.
Referenced by customEvent(), and MusicPlayer().
1.6.3