MythTV  master
Public Member Functions | Protected Member Functions | List of all members
MythMediaNotification Class Reference

#include <mythnotification.h>

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

Public Member Functions

 MythMediaNotification (Type type, const QImage &image, const DMAP &metadata, float progress, const QString &durationText)
 
 MythMediaNotification (Type type, const QImage &image, const DMAP &metadata, int duration, int position)
 
 MythMediaNotification (Type type, const QString &imagePath, const DMAP &metadata, float progress, const QString &durationText)
 
 MythMediaNotification (Type type, const QString &imagePath, const DMAP &metadata, int duration, int position)
 
MythEventclone (void) const override
 
- Public Member Functions inherited from MythImageNotification
 MythImageNotification (Type type, const QImage &image)
 
 MythImageNotification (Type type, const QString &imagePath)
 
 MythImageNotification (Type type, const QImage &image, const DMAP &metadata)
 
 MythImageNotification (Type type, const QString &imagePath, const DMAP &metadata)
 
void SetImage (const QImage &image)
 image to be displayed with the notification More...
 
void SetImagePath (const QString &image)
 image filename to be displayed with the notification More...
 
QImage GetImage (void) const
 
QString GetImagePath (void) const
 
- Public Member Functions inherited from MythNotification
 MythNotification (Type type, void *parent=nullptr)
 
 MythNotification (int id, void *parent)
 
 MythNotification (const QString &title, const QString &author, const QString &details=QString())
 
 MythNotification (Type type, const QString &title, const QString &author, const QString &details=QString(), const QString &extra=QString())
 
 MythNotification (Type type, const DMAP &metadata)
 
 MythNotification (const MythEvent &me)
 
virtual ~MythNotification ()
 
void SetId (int id)
 Optional MythNotification elements. More...
 
void SetParent (void *parent)
 contains the parent address. More...
 
void SetFullScreen (bool f)
 a notification may request to be displayed in full screen, this request may not be fullfilled should the theme not handle full screen notification More...
 
void SetDescription (const QString &desc)
 contains a short description of the notification More...
 
void SetMetaData (const DMAP &data)
 metadata of the notification. More...
 
void SetDuration (int duration)
 contains a duration during which the notification will be displayed for. More...
 
void SetStyle (const QString &style)
 contains an alternative notification style. More...
 
void SetVisibility (VNMask n)
 define a bitmask of Visibility More...
 
void SetPriority (Priority n)
 For future use, not implemented at this stage. More...
 
void ToStringList (void)
 
bool FromStringList (void)
 
int GetId (void) const
 
void * GetParent (void) const
 
bool GetFullScreen (void) const
 
QString GetDescription (void) const
 
DMAP GetMetaData (void) const
 
int GetDuration (void) const
 
QString GetStyle (void) const
 
VNMask GetVisibility (void) const
 
Priority GetPriority (void) const
 
- Public Member Functions inherited from MythEvent
 MythEvent (int type)
 
 MythEvent (int type, QString lmessage)
 
 MythEvent (int type, QString lmessage, const QStringList &lextradata)
 
 MythEvent (QString lmessage)
 
 MythEvent (QString lmessage, const QStringList &lextradata)
 
 MythEvent (QString lmessage, const QString lextradata)
 
virtual ~MythEvent ()=default
 
const QString & Message () const
 
const QString & ExtraData (int idx=0) const
 
const QStringList & ExtraDataList () const
 
int ExtraDataCount () const
 
- Public Member Functions inherited from MythPlaybackNotification
 MythPlaybackNotification (Type type, float progress, const QString &progressText)
 
 MythPlaybackNotification (Type type, float progress, const QString &progressText, const DMAP &metadata)
 
 MythPlaybackNotification (Type type, int duration, int position)
 
void SetProgress (float progress)
 current playback position to be displayed with the notification. More...
 
void SetProgressText (const QString &text)
 text to be displayed with the notification as duration or progress. More...
 
float GetProgress (void) const
 
QString GetProgressText (void) const
 

Protected Member Functions

 MythMediaNotification (const MythMediaNotification &o)
 
- Protected Member Functions inherited from MythImageNotification
 MythImageNotification (const MythImageNotification &o)
 
- Protected Member Functions inherited from MythNotification
 MythNotification (const MythNotification &o)
 
MythNotificationoperator= (const MythNotification &)
 
- Protected Member Functions inherited from MythPlaybackNotification
 MythPlaybackNotification (const MythPlaybackNotification &o)
 

Additional Inherited Members

- Public Types inherited from MythNotification
enum  Priority {
  kDefault = 0, kLow, kMedium, kHigh,
  kHigher, kHighest
}
 Priority enum A notification can be given a priority. More...
 
enum  Visibility {
  kNone = 0, kAll = ~0, kPlayback = (1 << 0), kSettings = (1 << 1),
  kWizard = (1 << 2), kVideos = (1 << 3), kMusic = (1 << 4), kRecordings = (1 << 5)
}
 Visibility enum A notification can be given visibility mask allowing to not be visible under some circumstances, like the screen currently being displayed. More...
 
- Static Public Member Functions inherited from MythNotification
static Type TypeFromString (const QString &type)
 return Type object from type name More...
 
- Static Public Member Functions inherited from MythPlaybackNotification
static QString stringFromSeconds (int time)
 stringFromSeconds: More...
 
- Static Public Attributes inherited from MythNotification
static Type New
 
static Type Update
 
static Type Info
 
static Type Error
 
static Type Warning
 
static Type Check
 
static Type Busy
 
- Static Public Attributes inherited from MythEvent
static Type MythEventMessage
 
static Type MythUserMessage
 
static Type kUpdateTvProgressEventType
 
static Type kExitToMainMenuEventType
 
static Type kMythPostShowEventType
 
static Type kPushDisableDrawingEventType
 
static Type kPopDisableDrawingEventType
 
static Type kLockInputDevicesEventType
 
static Type kUnlockInputDevicesEventType
 
static Type kUpdateBrowseInfoEventType
 
static Type kDisableUDPListenerEventType
 
static Type kEnableUDPListenerEventType
 
- Protected Attributes inherited from MythImageNotification
QImage m_image
 
QString m_imagePath
 
- Protected Attributes inherited from MythNotification
int m_id {-1}
 
void * m_parent {nullptr}
 
bool m_fullScreen {false}
 
QString m_description
 
int m_duration {0}
 
DMAP m_metadata
 
QString m_style
 
VNMask m_visibility {(VNMask)kAll}
 
Priority m_priority {kDefault}
 
- Protected Attributes inherited from MythEvent
QString m_message
 
QStringList m_extradata
 
- Protected Attributes inherited from MythPlaybackNotification
float m_progress
 
QString m_progressText
 

Detailed Description

Definition at line 324 of file mythnotification.h.

Constructor & Destructor Documentation

◆ MythMediaNotification() [1/5]

MythMediaNotification::MythMediaNotification ( Type  type,
const QImage &  image,
const DMAP metadata,
float  progress,
const QString &  durationText 
)
inline

Definition at line 328 of file mythnotification.h.

◆ MythMediaNotification() [2/5]

MythMediaNotification::MythMediaNotification ( Type  type,
const QImage &  image,
const DMAP metadata,
int  duration,
int  position 
)
inline

Definition at line 335 of file mythnotification.h.

◆ MythMediaNotification() [3/5]

MythMediaNotification::MythMediaNotification ( Type  type,
const QString &  imagePath,
const DMAP metadata,
float  progress,
const QString &  durationText 
)
inline

Definition at line 342 of file mythnotification.h.

◆ MythMediaNotification() [4/5]

MythMediaNotification::MythMediaNotification ( Type  type,
const QString &  imagePath,
const DMAP metadata,
int  duration,
int  position 
)
inline

Definition at line 349 of file mythnotification.h.

◆ MythMediaNotification() [5/5]

MythMediaNotification::MythMediaNotification ( const MythMediaNotification o)
inlineprotected

Definition at line 360 of file mythnotification.h.

Member Function Documentation

◆ clone()

MythEvent* MythMediaNotification::clone ( void  ) const
inlineoverridevirtual

Reimplemented from MythImageNotification.

Definition at line 356 of file mythnotification.h.


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