Skip to content

Commit

Permalink
Add MythErrorNotification class
Browse files Browse the repository at this point in the history
  • Loading branch information
jyavenard committed Jul 6, 2013
1 parent 4fc35ec commit 7be9be6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions mythtv/libs/libmythui/mythnotification.h
Expand Up @@ -334,4 +334,23 @@ class MUI_PUBLIC MythMediaNotification : public MythImageNotification,
MythMediaNotification &operator=(const MythMediaNotification&);
};

class MUI_PUBLIC MythErrorNotification : public MythImageNotification
{
public:
MythErrorNotification(const QString &title, const QString &author,
const QString &details = QString())
: MythNotification(title, author, details), MythImageNotification(New, "error.png")
{
}

virtual MythEvent *clone(void) const { return new MythErrorNotification(*this); }

protected:
MythErrorNotification(const MythErrorNotification &o)
: MythNotification(o), MythImageNotification(o)
{
}

MythErrorNotification &operator=(const MythErrorNotification&);
};
#endif /* defined(__MythTV__mythnotification__) */

0 comments on commit 7be9be6

Please sign in to comment.