diff --git a/mythtv/libs/libmythui/mythnotification.h b/mythtv/libs/libmythui/mythnotification.h index c5d5a55a35b..3898bf7e005 100644 --- a/mythtv/libs/libmythui/mythnotification.h +++ b/mythtv/libs/libmythui/mythnotification.h @@ -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__) */