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

#include <mythnotification.h>

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

Public Member Functions

 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)
 
MythEventclone (void) const override
 
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
 

Protected Member Functions

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

Protected Attributes

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
 

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 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
 

Detailed Description

Definition at line 217 of file mythnotification.h.

Constructor & Destructor Documentation

◆ MythImageNotification() [1/5]

MythImageNotification::MythImageNotification ( Type  type,
const QImage &  image 
)
inline

Definition at line 220 of file mythnotification.h.

◆ MythImageNotification() [2/5]

MythImageNotification::MythImageNotification ( Type  type,
const QString &  imagePath 
)
inline

Definition at line 225 of file mythnotification.h.

◆ MythImageNotification() [3/5]

MythImageNotification::MythImageNotification ( Type  type,
const QImage &  image,
const DMAP metadata 
)
inline

Definition at line 230 of file mythnotification.h.

◆ MythImageNotification() [4/5]

MythImageNotification::MythImageNotification ( Type  type,
const QString &  imagePath,
const DMAP metadata 
)
inline

Definition at line 235 of file mythnotification.h.

◆ MythImageNotification() [5/5]

MythImageNotification::MythImageNotification ( const MythImageNotification o)
inlineprotected

Definition at line 258 of file mythnotification.h.

Member Function Documentation

◆ clone()

MythEvent* MythImageNotification::clone ( void  ) const
inlineoverridevirtual

Reimplemented from MythNotification.

Reimplemented in MythMediaNotification.

Definition at line 240 of file mythnotification.h.

◆ SetImage()

void MythImageNotification::SetImage ( const QImage &  image)
inline

image to be displayed with the notification

Definition at line 247 of file mythnotification.h.

◆ SetImagePath()

void MythImageNotification::SetImagePath ( const QString &  image)
inline

image filename to be displayed with the notification

Definition at line 251 of file mythnotification.h.

◆ GetImage()

QImage MythImageNotification::GetImage ( void  ) const
inline

Definition at line 254 of file mythnotification.h.

Referenced by MythNotificationScreen::SetNotification().

◆ GetImagePath()

QString MythImageNotification::GetImagePath ( void  ) const
inline

Definition at line 255 of file mythnotification.h.

Referenced by MythNotificationScreen::SetNotification().

Member Data Documentation

◆ m_image

QImage MythImageNotification::m_image
protected

Definition at line 264 of file mythnotification.h.

◆ m_imagePath

QString MythImageNotification::m_imagePath
protected

Definition at line 265 of file mythnotification.h.


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