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, QImage image)
 
 MythImageNotification (Type type, QString imagePath)
 
 MythImageNotification (Type type, QImage image, const DMAP &metadata)
 
 MythImageNotification (Type type, 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, DMAP metadata)
 
 MythNotification (const MythEvent &me)
 
 ~MythNotification () override=default
 
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, 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
 

Protected Member Functions

 MythImageNotification (const MythImageNotification &)=default
 
- 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 219 of file mythnotification.h.

Constructor & Destructor Documentation

◆ MythImageNotification() [1/5]

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

Definition at line 222 of file mythnotification.h.

◆ MythImageNotification() [2/5]

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

Definition at line 227 of file mythnotification.h.

◆ MythImageNotification() [3/5]

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

Definition at line 232 of file mythnotification.h.

◆ MythImageNotification() [4/5]

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

Definition at line 237 of file mythnotification.h.

◆ MythImageNotification() [5/5]

MythImageNotification::MythImageNotification ( const MythImageNotification )
protecteddefault

Member Function Documentation

◆ clone()

MythEvent* MythImageNotification::clone ( void  ) const
inlineoverridevirtual

Reimplemented from MythNotification.

Reimplemented in MythMediaNotification.

Definition at line 242 of file mythnotification.h.

◆ SetImage()

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

image to be displayed with the notification

Definition at line 249 of file mythnotification.h.

◆ SetImagePath()

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

image filename to be displayed with the notification

Definition at line 253 of file mythnotification.h.

◆ GetImage()

QImage MythImageNotification::GetImage ( void  ) const
inline

Definition at line 256 of file mythnotification.h.

◆ GetImagePath()

QString MythImageNotification::GetImagePath ( void  ) const
inline

Definition at line 257 of file mythnotification.h.

Referenced by MythNotificationScreen::SetNotification().

Member Data Documentation

◆ m_image

QImage MythImageNotification::m_image
protected

Definition at line 263 of file mythnotification.h.

◆ m_imagePath

QString MythImageNotification::m_imagePath
protected

Definition at line 264 of file mythnotification.h.


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