|bool||Queue (const MythNotification ¬ification)|
|Queue a notification Queue() is thread-safe and can be called from anywhere. More...|
|int||Register (void *from)|
|An application can register in which case it will be assigned a reusable screen, which can be modified or updated Register takes a pointer of the client registering. More...|
|void||UnRegister (void *from, int id, bool closeimemdiately=false)|
|Unregister the client. More...|
|QDateTime||ScreenExpiryTime (const MythScreenType *screen)|
|Return when the given screen is going to expire will return an invalid QDateTime if screen isn't a MythNotificationScreen. More...|
|bool||ScreenCreated (const MythScreenType *screen)|
|Return true if ::Create() has been called on screen. More...|
|void||GetNotificationScreens (QList< MythScreenType * > &screens)|
|Return the list of notification screens being currently displayed. More...|
|void||UpdateScreen (MythScreenType *screen)|
|Will call ::doInit() if the screen is a MythNotificationScreen and ::Create() has been called for it already. More...|
|int||DisplayedNotifications (void) const|
|Returns number of notifications currently displayed. More...|
|int||QueuedNotifications (void) const|
|Returns number of notifications currently queued. More...|
|Will remove the oldest notification from the stack return true if a screen was removed; or false if nothing was done. More...|
|ProcessQueue will be called by the GUI event handler and will process all queued MythNotifications and delete screens marked to be deleted ProcessQueue must be called from GUI thread. More...|
|static MythNotificationCenter *||GetInstance (void)|
|returns the MythNotificationCenter singleton More...|
Queue a notification Queue() is thread-safe and can be called from anywhere.
Typical use would be GetNotificationCenter()->Queue(notification)
Referenced by VideoDialog::createFetchDialog(), EditMetadataDialog::customEvent(), GameUI::customEvent(), VideoDialog::customEvent(), MythMainWindow::customEvent(), MusicPlayer::customEvent(), TV::customEvent(), MetadataOptions::customEvent(), MythRAOPDevice::deleteClient(), MythAirplayServer::deleteConnection(), VideoDialog::dismissFetchDialog(), MythAirplayServer::HandleResponse(), MythContextPrivate::HideConnectionFailurePopup(), MythRAOPDevice::newConnection(), EditMetadataDialog::OnArtworkSearchDone(), MetadataOptions::OnArtworkSearchDone(), MusicPlayer::play(), NetworkControl::processNotification(), MythRAOPConnection::SendNotification(), MusicPlayer::sendNotification(), MythContextPrivate::ShowConnectionFailurePopup(), and ShowNotification().
An application can register in which case it will be assigned a reusable screen, which can be modified or updated Register takes a pointer of the client registering.
This is used to make sure a registered Id can only be used by the client who registered for it. Returns a unique Id that can be provided with a MythNotification Return -1 is case of error
Unregister the client.
If the notification had set a duration, the screen will be left to laps, unless forcedisconnect is set; in which case the screen will be closed immediately.
Referenced by VideoDialog::dismissFetchDialog(), MythAirplayServer::StopSession(), AirplayConnection::UnRegister(), MusicPlayer::~MusicPlayer(), MythContextPrivate::~MythContextPrivate(), and MythRAOPConnection::~MythRAOPConnection().
|QDateTime MythNotificationCenter::ScreenExpiryTime||(||const MythScreenType *||screen||)|