Permalink
Browse files

Fix priority object type

Priority isn't a mask.
  • Loading branch information...
jyavenard committed Jul 12, 2013
1 parent 9b79f10 commit ae5ec368d154c427839a3c2c201f020b265d91bf
Showing with 3 additions and 4 deletions.
  1. +3 −4 mythtv/libs/libmythui/mythnotification.h
@@ -17,7 +17,6 @@
#include "mythuiexp.h"
typedef QMap<QString,QString> DMAP;
typedef unsigned int PNMask;
typedef unsigned int VNMask;
class MUI_PUBLIC MythNotification : public MythEvent
@@ -150,7 +149,7 @@ class MUI_PUBLIC MythNotification : public MythEvent
/**
* For future use, not implemented at this stage
*/
void SetPriority(PNMask n) { m_priority = n; }
void SetPriority(Priority n) { m_priority = n; }
// Getter
int GetId(void) const { return m_id; }
@@ -161,7 +160,7 @@ class MUI_PUBLIC MythNotification : public MythEvent
int GetDuration(void) const { return m_duration; };
QString GetStyle(void) const { return m_style; }
VNMask GetVisibility(void) const { return m_visibility; }
PNMask GetPriority(void) const { return m_priority; }
Priority GetPriority(void) const { return m_priority; }
protected:
MythNotification(const MythNotification &o)
@@ -184,7 +183,7 @@ class MUI_PUBLIC MythNotification : public MythEvent
DMAP m_metadata;
QString m_style;
VNMask m_visibility;
PNMask m_priority;
Priority m_priority;
};
class MUI_PUBLIC MythImageNotification : public virtual MythNotification

0 comments on commit ae5ec36

Please sign in to comment.