9#ifndef MythTV_mythnotificationcenter_private_h
10#define MythTV_mythnotificationcenter_private_h
72 void UnRegister(
void *from,
int id,
bool closeimemdiately =
false);
143 QMap<MythNotificationScreen*, MythNotificationScreen*>
m_converted;
164 bool Create(
void)
override;
165 void Init(
void)
override;
255 for (
auto * screen : std::as_const(
m_toDelete))
258 screen->SetVisible(
false);
267 bool deleteScreen =
true)
override;
static const int kFadeVal
void PopScreen(MythScreenType *screen, bool allowFade=true, bool deleteScreen=true) override
~MythNotificationScreenStack() override
MythScreenType * GetTopScreen(void) const override
MythNotificationScreenStack(MythMainWindow *parent, const QString &name, NCPrivate *owner)
void UpdatePlayback(float progress, const QString &text)
Update playback position information.
void UpdateArtwork(const QImage &image)
Update artwork image.
MythNotificationScreen(MythScreenStack *stack, int id=-1)
void UpdateFrom(const MythNotificationScreen &s)
Copy metadata from another notification.
void SetIndex(int index)
set index, without recalculating coordinates
void AdjustIndex(int by, bool set=false)
MythUIText * m_originText
MythUIStateType * m_errorState
bool Create(void) override
void SetSingleShotTimer(std::chrono::seconds s, bool update=false)
std::chrono::seconds m_duration
void SetNotification(MythNotification ¬ification)
void UpdateMetaData(const DMAP &data)
Read some DMAP tag to extract title, artist, album and file format.
void AdjustYPosition(void)
Update Y position of the screen All children elements will be relocated.
MythNotification::Priority m_priority
MythUIImage * m_artworkImage
MythUIText * m_progresstextText
MythUIStateType * m_mediaState
MythUIText * m_descriptionText
MythNotification::Type m_type
~MythNotificationScreen() override
void Init(void) override
Update the various fields of a MythNotificationScreen.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIProgressBar * m_progressBar
void SetErrorState(void) const
Wrapper around QPoint allowing us to handle percentage and other relative values for positioning in m...
void CheckDeletes(bool force=false)
QVector< MythScreenType * > m_toDelete
Screen in which all other widgets are contained and rendered.
Image widget, displays a single image or multiple images in sequence.
This widget is used for grouping other widgets for display when a particular named state is called.
All purpose text widget, displays a text string.
int DisplayedNotifications(void) const
Returns number of notifications currently displayed.
QMap< int, bool > m_unregistered
void RefreshScreenPosition(int from=0)
Re-position screens on display.
QList< MythNotificationScreen * > m_deletedScreens
int InsertScreen(MythNotificationScreen *screen)
Insert screen into list of screens.
MythNotificationScreenStack * m_screenStack
int RemoveScreen(MythNotificationScreen *screen)
Remove screen from list of screens.
QMap< int, void * > m_clients
void DeleteUnregistered(void)
QMap< MythNotificationScreen *, MythNotificationScreen * > m_converted
void ScreenStackDeleted(void)
bool ScreenCreated(const MythScreenType *screen)
Return true if ::Create() has been called on screen.
bool Queue(const MythNotification ¬ification)
Queue a notification Queue() is thread-safe and can be called from anywhere.
bool RemoveFirst(void)
Will remove the oldest notification from the stack return true if a screen was removed; or false if n...
MythNotificationScreen * CreateScreen(MythNotification *notification, int id=-1)
CreateScreen will create a MythNotificationScreen instance.
void DeleteAllRegistrations(void)
void DeleteAllScreens(void)
void GetNotificationScreens(QList< MythScreenType * > &screens)
Return the list of notification screens being currently displayed.
void ScreenDeleted(void)
Remove screen from screens list.
void ProcessQueue(void)
ProcessQueue will be called by the GUI event handler and will process all queued MythNotifications an...
int QueuedNotifications(void) const
Returns number of notifications currently queued.
static MythNotificationCenter * GetInstance(void)
returns the MythNotificationCenter singleton
MythNotificationScreenStack * m_originalScreenStack
void UnRegister(void *from, int id, bool closeimemdiately=false)
Unregister the client.
QDateTime ScreenExpiryTime(const MythScreenType *screen)
Return when the given screen is going to expire will return an invalid QDateTime if screen isn't a My...
QMap< int, MythNotificationScreen * > m_registrations
int Register(void *from)
An application can register in which case it will be assigned a reusable screen, which can be modifie...
void UpdateScreen(MythScreenType *screen)
Will call ::doInit() if the screen is a MythNotificationScreen and ::Create() has been called for it ...
QList< MythNotificationScreen * > m_screens
QList< MythNotification * > m_notifications
QMap< QString, QString > DMAP