MythTV  master
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
MusicPlayerEvent Class Reference

#include <musicplayer.h>

Inheritance diagram for MusicPlayerEvent:
Inheritance graph
Collaboration diagram for MusicPlayerEvent:
Collaboration graph

Public Member Functions

 MusicPlayerEvent (Type type, int id)
 MusicPlayerEvent (Type type, uint vol, bool muted)
 ~MusicPlayerEvent () override=default
MythEventclone (void) const override
 MusicPlayerEvent (MusicPlayerEvent &&)=delete
MusicPlayerEventoperator= (MusicPlayerEvent &&)=delete
- Public Member Functions inherited from MythEvent
 MythEvent (int type)
 MythEvent (int type, QString lmessage)
 MythEvent (int type, QString lmessage, QStringList lextradata)
 MythEvent (QString lmessage)
 MythEvent (QString lmessage, QStringList lextradata)
 MythEvent (QString lmessage, const QString &lextradata)
 ~MythEvent () override
const QString & Message () const
const QString & ExtraData (int idx=0) const
const QStringList & ExtraDataList () const
int ExtraDataCount () const
void log (const QString &prefix)
MythEventclone () const override
 MythEvent (MythEvent &&)=delete
MythEventoperator= (MythEvent &&)=delete

Public Attributes

int m_trackID
uint m_volume {0}
bool m_isMuted {false}

Static Public Attributes

static const Type kTrackChangeEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kVolumeChangeEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kTrackAddedEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kTrackRemovedEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kTrackUnavailableEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kAllTracksRemovedEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kMetadataChangedEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kTrackStatsChangedEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kAlbumArtChangedEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kCDChangedEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kPlaylistChangedEvent = (QEvent::Type) QEvent::registerEventType()
static const Type kPlayedTracksChangedEvent = (QEvent::Type) QEvent::registerEventType()
- Static Public Attributes inherited from MythEvent
static const Type kMythEventMessage
static const Type kMythUserMessage
static const Type kUpdateTvProgressEventType
static const Type kExitToMainMenuEventType
static const Type kMythPostShowEventType
static const Type kPushDisableDrawingEventType
static const Type kPopDisableDrawingEventType
static const Type kLockInputDevicesEventType
static const Type kUnlockInputDevicesEventType
static const Type kUpdateBrowseInfoEventType
static const Type kDisableUDPListenerEventType
static const Type kEnableUDPListenerEventType

Protected Member Functions

 MusicPlayerEvent (const MusicPlayerEvent &other)=default
MusicPlayerEventoperator= (const MusicPlayerEvent &other)=default
- Protected Member Functions inherited from MythEvent
 MythEvent (const MythEvent &other)=default
MythEventoperator= (const MythEvent &other)=default

Additional Inherited Members

- Protected Attributes inherited from MythEvent
QString m_message
QStringList m_extradata

Detailed Description

Definition at line 20 of file musicplayer.h.

Constructor & Destructor Documentation

◆ MusicPlayerEvent() [1/4]

MusicPlayerEvent::MusicPlayerEvent ( Type  type,
int  id 

Definition at line 23 of file musicplayer.h.

Referenced by clone().

◆ MusicPlayerEvent() [2/4]

MusicPlayerEvent::MusicPlayerEvent ( Type  type,
uint  vol,
bool  muted 

Definition at line 25 of file musicplayer.h.

◆ ~MusicPlayerEvent()

MusicPlayerEvent::~MusicPlayerEvent ( )

◆ MusicPlayerEvent() [3/4]

MusicPlayerEvent::MusicPlayerEvent ( const MusicPlayerEvent other)

◆ MusicPlayerEvent() [4/4]

MusicPlayerEvent::MusicPlayerEvent ( MusicPlayerEvent &&  )

Member Function Documentation

◆ clone()

MythEvent* MusicPlayerEvent::clone ( void  ) const

Definition at line 29 of file musicplayer.h.

◆ operator=() [1/2]

MusicPlayerEvent& MusicPlayerEvent::operator= ( const MusicPlayerEvent other)

◆ operator=() [2/2]

MusicPlayerEvent& MusicPlayerEvent::operator= ( MusicPlayerEvent &&  )

Member Data Documentation

◆ m_trackID

int MusicPlayerEvent::m_trackID

Definition at line 33 of file musicplayer.h.

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

◆ m_volume

uint MusicPlayerEvent::m_volume {0}

Definition at line 36 of file musicplayer.h.

◆ m_isMuted

bool MusicPlayerEvent::m_isMuted {false}

Definition at line 37 of file musicplayer.h.

◆ kTrackChangeEvent

const QEvent::Type MusicPlayerEvent::kTrackChangeEvent = (QEvent::Type) QEvent::registerEventType()

◆ kVolumeChangeEvent

const QEvent::Type MusicPlayerEvent::kVolumeChangeEvent = (QEvent::Type) QEvent::registerEventType()

Definition at line 40 of file musicplayer.h.

Referenced by MusicCommon::customEvent(), and MusicPlayer::sendVolumeChangedEvent().

◆ kTrackAddedEvent

const QEvent::Type MusicPlayerEvent::kTrackAddedEvent = (QEvent::Type) QEvent::registerEventType()

◆ kTrackRemovedEvent

const QEvent::Type MusicPlayerEvent::kTrackRemovedEvent = (QEvent::Type) QEvent::registerEventType()

◆ kTrackUnavailableEvent

const QEvent::Type MusicPlayerEvent::kTrackUnavailableEvent = (QEvent::Type) QEvent::registerEventType()

◆ kAllTracksRemovedEvent

const QEvent::Type MusicPlayerEvent::kAllTracksRemovedEvent = (QEvent::Type) QEvent::registerEventType()

◆ kMetadataChangedEvent

const QEvent::Type MusicPlayerEvent::kMetadataChangedEvent = (QEvent::Type) QEvent::registerEventType()

◆ kTrackStatsChangedEvent

const QEvent::Type MusicPlayerEvent::kTrackStatsChangedEvent = (QEvent::Type) QEvent::registerEventType()

◆ kAlbumArtChangedEvent

const QEvent::Type MusicPlayerEvent::kAlbumArtChangedEvent = (QEvent::Type) QEvent::registerEventType()

◆ kCDChangedEvent

const QEvent::Type MusicPlayerEvent::kCDChangedEvent = (QEvent::Type) QEvent::registerEventType()

◆ kPlaylistChangedEvent

const QEvent::Type MusicPlayerEvent::kPlaylistChangedEvent = (QEvent::Type) QEvent::registerEventType()

Definition at line 49 of file musicplayer.h.

Referenced by PlaylistEditorView::customEvent(), and MusicPlayer::playlistChanged().

◆ kPlayedTracksChangedEvent

const QEvent::Type MusicPlayerEvent::kPlayedTracksChangedEvent = (QEvent::Type) QEvent::registerEventType()

The documentation for this class was generated from the following files: