MythTV  0.26-pre
Protected Slots | Protected Member Functions | Protected Attributes
MusicCommon Class Reference

#include <musiccommon.h>

Inheritance diagram for MusicCommon:
MythScreenType MythUIType XMLParseBase MiniPlayer PlaylistView SearchView VisualizerView

List of all members.

Protected Slots

void play (void)
void stop (void)
void pause (void)
void previous (void)
void next (void)
void seekforward (void)
void seekback (void)
void seek (int)
void stopAll (void)
void changeRating (bool increase)
void searchButtonList (void)
MythMenucreateMainMenu (void)
MythMenucreateViewMenu (void)
MythMenucreatePlaylistMenu (void)
MythMenucreatePlayerMenu (void)
MythMenucreateQuickPlaylistsMenu (void)
MythMenucreateRepeatMenu (void)
MythMenucreateShuffleMenu (void)
MythMenucreateVisualizerMenu (void)
MythMenucreatePlaylistOptionsMenu (void)
void playlistItemClicked (MythUIButtonListItem *item)
void playlistItemVisible (MythUIButtonListItem *item)
void fromCD (void)
void allTracks (void)
void byArtist (void)
void byAlbum (void)
void byGenre (void)
void byYear (void)
void byTitle (void)
void doUpdatePlaylist (void)

Protected Member Functions

 MusicCommon (MythScreenStack *parent, const QString &name)
 ~MusicCommon (void)
bool CreateCommon (void)
void switchView (MusicView view)
virtual void customEvent (QEvent *event)
bool keyPressEvent (QKeyEvent *e)
 Key event handler.
virtual void ShowMenu (void)
void showExitMenu (void)
void showPlaylistOptionsMenu (bool addMainMenu=false)
QString getTimeString (int exTime, int maxTime)
void updateProgressBar (void)
void setTrackOnLCD (Metadata *mdata)
void editTrackInfo (Metadata *mdata)
void updateTrackInfo (Metadata *mdata)
void showTrackInfo (Metadata *mdata)
void updateUIPlaylist (void)
void updatePlaylistStats (void)
void updateUIPlayedList (void)
void updateRepeatMode (void)
void updateShuffleMode (bool updateUIList=false)
void changeVolume (bool up)
void changeSpeed (bool up)
void toggleMute (void)
void toggleUpmix (void)
void showVolume (void)
void updateVolume (void)
void showSpeed (bool show)
void startVisualizer (void)
void stopVisualizer (void)
void cycleVisualizer (void)
void switchVisualizer (const QString &visual)
void switchVisualizer (int visual)
void playFirstTrack ()
bool restorePosition (int trackID)

Protected Attributes

MusicView m_currentView
MainVisualm_mainvisual
bool m_fullscreenBlank
bool m_cycleVisualizer
bool m_randomVisualizer
QStringList m_visualModes
unsigned int m_currentVisual
bool m_moveTrackMode
bool m_movingTrack
bool m_controlVolume
int m_currentTrack
int m_currentTime
int m_maxTime
uint m_playlistTrackCount
uint m_playlistPlayedTime
uint m_playlistMaxTime
PlaylistOptions m_playlistOptions
QString m_whereClause
QList< intm_songList
MythUITextm_timeText
MythUITextm_infoText
MythUITextm_visualText
MythUITextm_noTracksText
MythUIStateTypem_shuffleState
MythUIStateTypem_repeatState
MythUIStateTypem_movingTracksState
MythUIStateTypem_ratingState
MythUIProgressBarm_trackProgress
MythUITextm_trackProgressText
MythUITextm_trackSpeedText
MythUIStateTypem_trackState
MythUIStateTypem_muteState
MythUITextm_volumeText
MythUIProgressBarm_playlistProgress
MythUIButtonm_prevButton
MythUIButtonm_rewButton
MythUIButtonm_pauseButton
MythUIButtonm_playButton
MythUIButtonm_stopButton
MythUIButtonm_ffButton
MythUIButtonm_nextButton
MythUIImagem_coverartImage
MythUIButtonListm_currentPlaylist
MythUIButtonListm_playedTracksList
MythUIVideom_visualizerVideo

Detailed Description

Definition at line 46 of file musiccommon.h.


Constructor & Destructor Documentation

MusicCommon::MusicCommon ( MythScreenStack parent,
const QString &  name 
) [protected]

Definition at line 45 of file musiccommon.cpp.

MusicCommon::~MusicCommon ( void  ) [protected]

Definition at line 70 of file musiccommon.cpp.


Member Function Documentation

bool MusicCommon::CreateCommon ( void  ) [protected]
void MusicCommon::switchView ( MusicView  view) [protected]

Definition at line 355 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

void MusicCommon::customEvent ( QEvent *  event) [protected, virtual]

Reimplemented from MythUIType.

Reimplemented in SearchView, VisualizerView, and PlaylistView.

Definition at line 1038 of file musiccommon.cpp.

bool MusicCommon::keyPressEvent ( QKeyEvent *  ) [protected, virtual]

Key event handler.

Parameters:
eventKeypress event

Reimplemented from MythScreenType.

Reimplemented in SearchView, PlaylistView, VisualizerView, and MiniPlayer.

Definition at line 462 of file musiccommon.cpp.

Referenced by MiniPlayer::keyPressEvent(), VisualizerView::keyPressEvent(), PlaylistView::keyPressEvent(), and SearchView::keyPressEvent().

void MusicCommon::ShowMenu ( void  ) [protected, virtual]

Reimplemented from MythScreenType.

Reimplemented in SearchView, and VisualizerView.

Definition at line 1987 of file musiccommon.cpp.

Referenced by keyPressEvent().

void MusicCommon::play ( void  ) [protected, slot]

Definition at line 916 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

void MusicCommon::stop ( void  ) [protected, slot]

Definition at line 926 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

void MusicCommon::pause ( void  ) [protected, slot]

Definition at line 921 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), doUpdatePlaylist(), and keyPressEvent().

void MusicCommon::previous ( void  ) [protected, slot]

Definition at line 947 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

void MusicCommon::next ( void  ) [protected, slot]

Definition at line 938 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

void MusicCommon::seekforward ( void  ) [protected, slot]

Definition at line 955 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

void MusicCommon::seekback ( void  ) [protected, slot]

Definition at line 963 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

void MusicCommon::seek ( int  pos) [protected, slot]

Definition at line 971 of file musiccommon.cpp.

Referenced by seekback(), and seekforward().

void MusicCommon::stopAll ( void  ) [protected, slot]

Definition at line 904 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

void MusicCommon::changeRating ( bool  increase) [protected, slot]

Definition at line 1017 of file musiccommon.cpp.

Referenced by keyPressEvent().

void MusicCommon::searchButtonList ( void  ) [protected, slot]

Definition at line 1976 of file musiccommon.cpp.

Referenced by SearchView::customEvent(), and customEvent().

MythMenu * MusicCommon::createMainMenu ( void  ) [protected, slot]
MythMenu * MusicCommon::createViewMenu ( void  ) [protected, slot]

Definition at line 2024 of file musiccommon.cpp.

Referenced by createMainMenu().

MythMenu * MusicCommon::createPlaylistMenu ( void  ) [protected, slot]

Definition at line 2044 of file musiccommon.cpp.

Referenced by createMainMenu().

MythMenu * MusicCommon::createPlayerMenu ( void  ) [protected, slot]

Definition at line 2096 of file musiccommon.cpp.

Referenced by createMainMenu().

Definition at line 2143 of file musiccommon.cpp.

Referenced by createMainMenu().

MythMenu * MusicCommon::createRepeatMenu ( void  ) [protected, slot]

Definition at line 2115 of file musiccommon.cpp.

Referenced by createMainMenu().

MythMenu * MusicCommon::createShuffleMenu ( void  ) [protected, slot]

Definition at line 2128 of file musiccommon.cpp.

Referenced by createMainMenu().

MythMenu * MusicCommon::createVisualizerMenu ( void  ) [protected, slot]

Definition at line 2166 of file musiccommon.cpp.

Referenced by createMainMenu(), and VisualizerView::ShowMenu().

Definition at line 2178 of file musiccommon.cpp.

Referenced by showPlaylistOptionsMenu().

Definition at line 1767 of file musiccommon.cpp.

Referenced by CreateCommon(), and SearchView::customEvent().

Definition at line 1788 of file musiccommon.cpp.

Referenced by CreateCommon().

void MusicCommon::fromCD ( void  ) [protected, slot]

Definition at line 2196 of file musiccommon.cpp.

Referenced by customEvent().

void MusicCommon::allTracks ( void  ) [protected, slot]

Definition at line 2190 of file musiccommon.cpp.

Referenced by customEvent().

void MusicCommon::byArtist ( void  ) [protected, slot]

Definition at line 2214 of file musiccommon.cpp.

Referenced by customEvent().

void MusicCommon::byAlbum ( void  ) [protected, slot]

Definition at line 2227 of file musiccommon.cpp.

Referenced by customEvent().

void MusicCommon::byGenre ( void  ) [protected, slot]

Definition at line 2240 of file musiccommon.cpp.

Referenced by customEvent().

void MusicCommon::byYear ( void  ) [protected, slot]

Definition at line 2253 of file musiccommon.cpp.

Referenced by customEvent().

void MusicCommon::byTitle ( void  ) [protected, slot]

Definition at line 2266 of file musiccommon.cpp.

Referenced by customEvent().

void MusicCommon::doUpdatePlaylist ( void  ) [protected, slot]

Definition at line 2306 of file musiccommon.cpp.

Referenced by customEvent(), and showPlaylistOptionsMenu().

void MusicCommon::showExitMenu ( void  ) [protected]

Definition at line 2072 of file musiccommon.cpp.

Referenced by keyPressEvent().

void MusicCommon::showPlaylistOptionsMenu ( bool  addMainMenu = false) [protected]

Definition at line 2279 of file musiccommon.cpp.

Referenced by allTracks(), byAlbum(), byArtist(), byGenre(), byTitle(), byYear(), and fromCD().

QString MusicCommon::getTimeString ( int  exTime,
int  maxTime 
) [protected]

Definition at line 1942 of file musiccommon.cpp.

Referenced by customEvent(), seek(), stop(), and updatePlaylistStats().

Definition at line 759 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and seek().

void MusicCommon::setTrackOnLCD ( Metadata mdata) [protected]

Definition at line 892 of file musiccommon.cpp.

Referenced by updateTrackInfo().

void MusicCommon::editTrackInfo ( Metadata mdata) [protected]

Definition at line 1672 of file musiccommon.cpp.

Referenced by SearchView::keyPressEvent(), and keyPressEvent().

void MusicCommon::updateTrackInfo ( Metadata mdata) [protected]
void MusicCommon::showTrackInfo ( Metadata mdata) [protected]

Definition at line 1749 of file musiccommon.cpp.

Referenced by SearchView::keyPressEvent(), and keyPressEvent().

Definition at line 1822 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), doUpdatePlaylist(), and updateShuffleMode().

Definition at line 1906 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

Definition at line 1874 of file musiccommon.cpp.

Definition at line 262 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

void MusicCommon::updateShuffleMode ( bool  updateUIList = false) [protected]

Definition at line 297 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

void MusicCommon::changeVolume ( bool  up) [protected]

Definition at line 720 of file musiccommon.cpp.

Referenced by keyPressEvent().

void MusicCommon::changeSpeed ( bool  up) [protected]

Definition at line 732 of file musiccommon.cpp.

Referenced by keyPressEvent().

void MusicCommon::toggleMute ( void  ) [protected]

Definition at line 744 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

void MusicCommon::toggleUpmix ( void  ) [protected]

Definition at line 753 of file musiccommon.cpp.

Referenced by keyPressEvent().

void MusicCommon::showVolume ( void  ) [protected]

Definition at line 771 of file musiccommon.cpp.

Referenced by changeVolume(), customEvent(), and toggleMute().

void MusicCommon::updateVolume ( void  ) [protected]

Definition at line 1645 of file musiccommon.cpp.

Referenced by CreateCommon(), and customEvent().

void MusicCommon::showSpeed ( bool  show) [protected]

Definition at line 786 of file musiccommon.cpp.

Referenced by changeSpeed().

Definition at line 876 of file musiccommon.cpp.

Referenced by CreateCommon(), and customEvent().

Definition at line 884 of file musiccommon.cpp.

Referenced by customEvent(), stopAll(), switchView(), and ~MusicCommon().

Definition at line 846 of file musiccommon.cpp.

Referenced by keyPressEvent(), next(), playlistItemClicked(), and previous().

void MusicCommon::switchVisualizer ( const QString &  visual) [protected]

Definition at line 825 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), cycleVisualizer(), and keyPressEvent().

void MusicCommon::switchVisualizer ( int  visual) [protected]

Definition at line 830 of file musiccommon.cpp.

Definition at line 2420 of file musiccommon.cpp.

Referenced by doUpdatePlaylist(), and updateShuffleMode().

bool MusicCommon::restorePosition ( int  trackID) [protected]

Definition at line 2386 of file musiccommon.cpp.

Referenced by doUpdatePlaylist(), and updateShuffleMode().


Member Data Documentation

Definition at line 141 of file musiccommon.h.

Referenced by CreateCommon().

Definition at line 142 of file musiccommon.h.

Referenced by MusicCommon(), next(), playlistItemClicked(), and previous().

Definition at line 143 of file musiccommon.h.

Referenced by CreateCommon(), and cycleVisualizer().

QStringList MusicCommon::m_visualModes [protected]
unsigned int MusicCommon::m_currentVisual [protected]

Definition at line 149 of file musiccommon.h.

Referenced by customEvent(), keyPressEvent(), MusicCommon(), and playlistItemClicked().

Definition at line 151 of file musiccommon.h.

Referenced by changeVolume(), CreateCommon(), toggleMute(), and updateVolume().

Definition at line 157 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), doUpdatePlaylist(), and keyPressEvent().

Definition at line 162 of file musiccommon.h.

Referenced by customEvent(), doUpdatePlaylist(), and showPlaylistOptionsMenu().

QString MusicCommon::m_whereClause [protected]
QList<int> MusicCommon::m_songList [protected]

Definition at line 166 of file musiccommon.h.

Referenced by doUpdatePlaylist(), and fromCD().

Definition at line 169 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), seek(), stop(), and updateTrackInfo().

Definition at line 170 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), stop(), and updateTrackInfo().

Definition at line 171 of file musiccommon.h.

Referenced by CreateCommon(), and switchVisualizer().

Definition at line 172 of file musiccommon.h.

Referenced by CreateCommon(), and updateUIPlaylist().

Definition at line 174 of file musiccommon.h.

Referenced by CreateCommon(), and updateShuffleMode().

Definition at line 175 of file musiccommon.h.

Referenced by CreateCommon(), and updateRepeatMode().

Definition at line 177 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

Definition at line 179 of file musiccommon.h.

Referenced by CreateCommon(), and updateTrackInfo().

Definition at line 181 of file musiccommon.h.

Referenced by CreateCommon(), updateProgressBar(), and updateTrackInfo().

Definition at line 182 of file musiccommon.h.

Referenced by CreateCommon().

Definition at line 183 of file musiccommon.h.

Referenced by CreateCommon().

Definition at line 184 of file musiccommon.h.

Referenced by CreateCommon(), and customEvent().

Definition at line 186 of file musiccommon.h.

Referenced by CreateCommon(), and updateVolume().

Definition at line 187 of file musiccommon.h.

Referenced by CreateCommon(), and updateVolume().

Definition at line 189 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), and updatePlaylistStats().

Definition at line 191 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

Definition at line 192 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

Definition at line 193 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

Definition at line 194 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

Definition at line 195 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

Definition at line 196 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

Definition at line 197 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

Definition at line 199 of file musiccommon.h.

Referenced by CreateCommon(), and updateTrackInfo().

Definition at line 202 of file musiccommon.h.

Referenced by CreateCommon(), and updateUIPlayedList().

Definition at line 204 of file musiccommon.h.

Referenced by CreateCommon(), createMainMenu(), startVisualizer(), and stopVisualizer().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends