Skip to content

Commit

Permalink
Add MythNotification convenience constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jyavenard committed Jul 4, 2013
1 parent 4951ac1 commit ad39e9c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mythtv/libs/libmythui/mythnotification.h
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit ad39e9c

Please sign in to comment.