9#ifndef MYTHTV_MYTHNOTIFICATIONCENTER_H
10#define MYTHTV_MYTHNOTIFICATIONCENTER_H
67 int Register(
void *from);
74 void UnRegister(
void *from,
int id,
bool closeimemdiately =
false);
95 void GetNotificationScreens(QList<MythScreenType*> &screens);
104 int DisplayedNotifications(
void)
const;
108 int QueuedNotifications(
void)
const;
113 bool RemoveFirst(
void);
119 void ProcessQueue(
void);
129 const QString &from = QString(),
130 const QString &detail = QString(),
135 const QString &from = QString(),
136 const QString &detail = QString(),
142 const QString &origin = QString(),
143 const QString &detail = QString(),
144 const QString &image = QString(),
145 const QString &extra = QString(),
146 const QString &progress_text = QString(),
148 std::chrono::seconds duration = -1s,
149 bool fullscreen =
false,
152 const QString &style = QString());
156 const QString &origin = QString(),
157 const QString &detail = QString(),
158 const QString &image = QString(),
159 const QString &extra = QString(),
160 const QString &progress_text = QString(),
162 std::chrono::seconds duration = -1s,
163 bool fullscreen =
false,
166 const QString &style = QString());
This class is used as a container for messages.
MythNotificationCenterEvent & operator=(const MythNotificationCenterEvent &other)=default
MythNotificationCenterEvent(MythNotificationCenterEvent &&)=delete
MythNotificationCenterEvent & operator=(MythNotificationCenterEvent &&)=delete
MythNotificationCenterEvent()
MythNotificationCenterEvent(const MythNotificationCenterEvent &other)=default
static const Type kEventType
Screen in which all other widgets are contained and rendered.
static const iso6937table * d
MUI_PUBLIC void ShowNotificationError(const QString &msg, const QString &from=QString(), const QString &detail=QString(), VNMask visibility=MythNotification::kAll, MythNotification::Priority priority=MythNotification::kDefault)
convenience utility to display error message as notification
MUI_PUBLIC void ShowNotification(const QString &msg, const QString &from=QString(), const QString &detail=QString(), VNMask visibility=MythNotification::kAll, MythNotification::Priority priority=MythNotification::kDefault)