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