From ad39e9c2330fca74bf411413e82d6c23fa17afa4 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Thu, 4 Jul 2013 14:00:46 +1000 Subject: [PATCH] Add MythNotification convenience constructors --- mythtv/libs/libmythui/mythnotification.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mythtv/libs/libmythui/mythnotification.h b/mythtv/libs/libmythui/mythnotification.h index f7dc673b5d7..d80ac1323ec 100644 --- a/mythtv/libs/libmythui/mythnotification.h +++ b/mythtv/libs/libmythui/mythnotification.h @@ -231,6 +231,13 @@ class MUI_PUBLIC MythPlaybackNotification : public virtual MythNotification { } + MythPlaybackNotification(Type t, float progress, const QString &progressText, + const DMAP &metadata) + : MythNotification(t, metadata), + m_progress(progress), m_progressText(progressText) + { + } + MythPlaybackNotification(Type t, int duration, int position) : MythNotification(t) { @@ -277,6 +284,13 @@ class MUI_PUBLIC MythMediaNotification : public MythImageNotification, public MythPlaybackNotification { public: + MythMediaNotification(Type t, const QImage &image, const DMAP &metadata, + float progress, const QString &durationText) + : MythNotification(t, metadata), MythImageNotification(t, image), + MythPlaybackNotification(t, progress, durationText) + { + } + MythMediaNotification(Type t, const QImage &image, const DMAP &metadata, int duration, int position) : MythNotification(t, metadata), MythImageNotification(t, image),