Permalink
Browse files

Add MythErrorNotification class

  • Loading branch information...
jyavenard committed Jul 6, 2013
1 parent 4fc35ec commit 7be9be67d16083f4189ebdb834bb88dd13d16481
Showing with 19 additions and 0 deletions.
  1. +19 −0 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__) */

0 comments on commit 7be9be6

Please sign in to comment.