MythTV  master
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
OutputEvent Class Reference

#include <output.h>

Inheritance diagram for OutputEvent:
Inheritance graph
[legend]
Collaboration diagram for OutputEvent:
Collaboration graph
[legend]

Public Member Functions

 OutputEvent (Type type)
 
 OutputEvent (std::chrono::seconds s, unsigned long w, int b, int f, int p, int c)
 
 OutputEvent (const QString &e)
 
 ~OutputEvent () override
 
const QString * errorMessage () const
 
const std::chrono::seconds & elapsedSeconds () const
 
const unsigned long & writtenBytes () const
 
const int & bitrate () const
 
const int & frequency () const
 
const int & precision () const
 
const int & channels () const
 
MythEventclone (void) const override
 
OutputEventoperator= (const OutputEvent &other)=delete
 
 OutputEvent (OutputEvent &&)=delete
 
OutputEventoperator= (OutputEvent &&)=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
 

Static Public Attributes

static const Type kPlaying
 
static const Type kBuffering
 
static const Type kInfo
 
static const Type kPaused
 
static const Type kStopped
 
static const Type kError
 
- 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
 

Private Member Functions

 OutputEvent (const OutputEvent &o)
 

Private Attributes

QString * m_errorMsg {nullptr}
 
std::chrono::seconds m_elaspedSeconds {0s}
 
unsigned long m_writtenBytes {0}
 
int m_brate {0}
 
int m_freq {0}
 
int m_prec {0}
 
int m_chan {0}
 

Additional Inherited Members

- Protected Member Functions inherited from MythEvent
 MythEvent (const MythEvent &other)=default
 
MythEventoperator= (const MythEvent &other)=default
 
- Protected Attributes inherited from MythEvent
QString m_message
 
QStringList m_extradata
 

Detailed Description

Definition at line 31 of file output.h.

Constructor & Destructor Documentation

◆ OutputEvent() [1/5]

OutputEvent::OutputEvent ( Type  type)
inlineexplicit

Definition at line 34 of file output.h.

◆ OutputEvent() [2/5]

OutputEvent::OutputEvent ( std::chrono::seconds  s,
unsigned long  w,
int  b,
int  f,
int  p,
int  c 
)
inline

Definition at line 36 of file output.h.

◆ OutputEvent() [3/5]

OutputEvent::OutputEvent ( const QString &  e)
inlineexplicit

Definition at line 39 of file output.h.

◆ ~OutputEvent()

OutputEvent::~OutputEvent ( )
inlineoverride

Definition at line 46 of file output.h.

◆ OutputEvent() [4/5]

OutputEvent::OutputEvent ( const OutputEvent o)
inlineprivate

Definition at line 71 of file output.h.

◆ OutputEvent() [5/5]

OutputEvent::OutputEvent ( OutputEvent &&  )
delete

Member Function Documentation

◆ errorMessage()

const QString* OutputEvent::errorMessage ( ) const
inline

Definition at line 51 of file output.h.

◆ elapsedSeconds()

const std::chrono::seconds& OutputEvent::elapsedSeconds ( ) const
inline

Definition at line 53 of file output.h.

◆ writtenBytes()

const unsigned long& OutputEvent::writtenBytes ( ) const
inline

Definition at line 54 of file output.h.

◆ bitrate()

const int& OutputEvent::bitrate ( ) const
inline

Definition at line 55 of file output.h.

◆ frequency()

const int& OutputEvent::frequency ( ) const
inline

Definition at line 56 of file output.h.

◆ precision()

const int& OutputEvent::precision ( ) const
inline

Definition at line 57 of file output.h.

◆ channels()

const int& OutputEvent::channels ( ) const
inline

Definition at line 58 of file output.h.

◆ clone()

MythEvent* OutputEvent::clone ( void  ) const
inlineoverride

Definition at line 60 of file output.h.

◆ operator=() [1/2]

OutputEvent& OutputEvent::operator= ( const OutputEvent other)
delete

◆ operator=() [2/2]

OutputEvent& OutputEvent::operator= ( OutputEvent &&  )
delete

Member Data Documentation

◆ kPlaying

const QEvent::Type OutputEvent::kPlaying
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 63 of file output.h.

Referenced by StreamView::customEvent(), MainVisual::customEvent(), MusicCommon::customEvent(), AudioOutputJACK::JackCallback(), and AudioOutputBase::OutputAudioLoop().

◆ kBuffering

const QEvent::Type OutputEvent::kBuffering
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 64 of file output.h.

Referenced by StreamView::customEvent(), MainVisual::customEvent(), and MusicCommon::customEvent().

◆ kInfo

const QEvent::Type OutputEvent::kInfo
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 65 of file output.h.

Referenced by LyricsView::customEvent(), MainVisual::customEvent(), MusicCommon::customEvent(), and MusicPlayer::customEvent().

◆ kPaused

const QEvent::Type OutputEvent::kPaused
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 66 of file output.h.

Referenced by MainVisual::customEvent(), MusicCommon::customEvent(), AudioOutputJACK::JackCallback(), and AudioOutputBase::OutputAudioLoop().

◆ kStopped

const QEvent::Type OutputEvent::kStopped
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 67 of file output.h.

Referenced by AudioOutputJACK::CloseDevice(), StreamView::customEvent(), MainVisual::customEvent(), MusicCommon::customEvent(), AudioOutputBase::OutputAudioLoop(), and MusicPlayer::stop().

◆ kError

const QEvent::Type OutputEvent::kError
static
Initial value:
=
(QEvent::Type) QEvent::registerEventType()

Definition at line 68 of file output.h.

Referenced by MainVisual::customEvent(), and MusicPlayer::customEvent().

◆ m_errorMsg

QString* OutputEvent::m_errorMsg {nullptr}
private

Definition at line 90 of file output.h.

Referenced by OutputEvent().

◆ m_elaspedSeconds

std::chrono::seconds OutputEvent::m_elaspedSeconds {0s}
private

Definition at line 92 of file output.h.

◆ m_writtenBytes

unsigned long OutputEvent::m_writtenBytes {0}
private

Definition at line 93 of file output.h.

◆ m_brate

int OutputEvent::m_brate {0}
private

Definition at line 94 of file output.h.

◆ m_freq

int OutputEvent::m_freq {0}
private

Definition at line 95 of file output.h.

◆ m_prec

int OutputEvent::m_prec {0}
private

Definition at line 96 of file output.h.

◆ m_chan

int OutputEvent::m_chan {0}
private

Definition at line 97 of file output.h.


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