|
MythTV master
|
#include <QCoreApplication>#include <QEvent>#include <QObject>#include <QThread>#include <QTimer>#include "libmythbase/mythdate.h"#include "libmythbase/mythlogging.h"#include "mythmainwindow.h"#include "mythnotificationcenter.h"#include "mythnotificationcenter_private.h"#include "mythpainter.h"#include "mythscreenstack.h"#include "mythscreentype.h"#include "mythuiimage.h"#include "mythuiprogressbar.h"#include "mythuitext.h"Go to the source code of this file.
Macros | |
| #define | LOC QString("NotificationCenter: ") |
Functions | |
| void | ShowNotificationError (const QString &msg, const QString &from, const QString &detail, const VNMask visibility, const MythNotification::Priority priority) |
| convenience utility to display error message as notification More... | |
| void | ShowNotification (const QString &msg, const QString &from, const QString &detail, const VNMask visibility, const MythNotification::Priority priority) |
| void | ShowNotification (bool error, const QString &msg, const QString &origin, const QString &detail, const QString &image, const QString &extra, const QString &progress_text, float progress, std::chrono::seconds duration, bool fullscreen, const VNMask visibility, const MythNotification::Priority priority, const QString &style) |
| void | ShowNotification (MythNotification::Type type, const QString &msg, const QString &origin, const QString &detail, const QString &image, const QString &extra, const QString &progress_text, float progress, std::chrono::seconds duration, bool fullscreen, const VNMask visibility, const MythNotification::Priority priority, const QString &style) |
Variables | |
| static constexpr int8_t | HGAP { 5 } |
| static constexpr std::chrono::milliseconds | DEFAULT_DURATION { 5s } |
| #define LOC QString("NotificationCenter: ") |
Definition at line 30 of file mythnotificationcenter.cpp.
| void ShowNotification | ( | bool | error, |
| const QString & | msg, | ||
| const QString & | origin, | ||
| const QString & | detail, | ||
| const QString & | image, | ||
| const QString & | extra, | ||
| const QString & | progress_text, | ||
| float | progress, | ||
| std::chrono::seconds | duration, | ||
| bool | fullscreen, | ||
| const VNMask | visibility, | ||
| const MythNotification::Priority | priority, | ||
| const QString & | style | ||
| ) |
Definition at line 1448 of file mythnotificationcenter.cpp.
| void ShowNotification | ( | const QString & | msg, |
| const QString & | from, | ||
| const QString & | detail, | ||
| const VNMask | visibility, | ||
| const MythNotification::Priority | priority | ||
| ) |
Definition at line 1437 of file mythnotificationcenter.cpp.
Referenced by MediaMonitor::AttemptEject(), MediaMonitor::ChooseAndEjectMedia(), MythUDPListener::Process(), Frontend::SendNotification(), MythFrontendService::SendNotification(), PlaybackBox::ShowAvailabilityPopup(), ShowNotification(), and ShowNotificationError().
| void ShowNotification | ( | MythNotification::Type | type, |
| const QString & | msg, | ||
| const QString & | origin, | ||
| const QString & | detail, | ||
| const QString & | image, | ||
| const QString & | extra, | ||
| const QString & | progress_text, | ||
| float | progress, | ||
| std::chrono::seconds | duration, | ||
| bool | fullscreen, | ||
| const VNMask | visibility, | ||
| const MythNotification::Priority | priority, | ||
| const QString & | style | ||
| ) |
Definition at line 1466 of file mythnotificationcenter.cpp.
| void ShowNotificationError | ( | const QString & | msg, |
| const QString & | from, | ||
| const QString & | detail, | ||
| const VNMask | visibility, | ||
| const MythNotification::Priority | priority | ||
| ) |
convenience utility to display error message as notification
Definition at line 1426 of file mythnotificationcenter.cpp.
Referenced by MediaMonitor::AttemptEject(), configplugin_cb(), ZMClient::connectToHost(), TV::HandleStateChange(), internal_play_media(), plugin_cb(), AudioPlayer::ReinitAudio(), and PlaybackBox::ShowAvailabilityPopup().
|
staticconstexpr |
Definition at line 33 of file mythnotificationcenter.cpp.
Referenced by MythNotificationScreen::SetSingleShotTimer().
|
staticconstexpr |
Definition at line 32 of file mythnotificationcenter.cpp.
Referenced by MythNotificationScreen::AdjustYPosition().