messagingapp/msgnotifications/msgindicatorplugin/src/msgindicator.cpp
changeset 27 e4592d119491
parent 25 84d9eb65b26f
child 47 5b14749788d7
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
   114 // ----------------------------------------------------------------------------
   114 // ----------------------------------------------------------------------------
   115 // MsgIndicator::MsgIndicator
   115 // MsgIndicator::MsgIndicator
   116 // @see msgindicator.h
   116 // @see msgindicator.h
   117 // ----------------------------------------------------------------------------
   117 // ----------------------------------------------------------------------------
   118 MsgIndicator::MsgIndicator(const QString &indicatorType) :
   118 MsgIndicator::MsgIndicator(const QString &indicatorType) :
   119     HbIndicatorInterface(indicatorType, HbIndicatorInterface::GroupPriorityHigh,
   119     HbIndicatorInterface(indicatorType, HbIndicatorInterface::NotificationCategory,
   120         InteractionActivated),
   120         InteractionActivated),
   121 		mIndicatorType(NULL)
   121 		mIndicatorType(NULL)
   122 {
   122 {
   123     d_ptr = new MsgIndicatorPrivate(this);
   123     d_ptr = new MsgIndicatorPrivate(this);
   124 }
   124 }
   163     {
   163     {
   164         return mSecondaryText;
   164         return mSecondaryText;
   165     }
   165     }
   166     case DecorationNameRole:
   166     case DecorationNameRole:
   167     {
   167     {
   168         return IndicatorInfo[mIndicatorType].icon;
   168         return IndicatorInfo[mIndicatorType].icon;        
   169 
   169     }
       
   170     case MonoDecorationNameRole:
       
   171     {
       
   172         if (NewIndicatorPlugin == mIndicatorType) {
       
   173             return IndicatorInfo[mIndicatorType].icon;
       
   174         }
       
   175         else {
       
   176             // Don't show status-bar icons for indications other 
       
   177 			// than new-message
       
   178             return QVariant();
       
   179         }
   170     }
   180     }
   171     default:
   181     default:
   172         return QVariant();
   182         return QVariant();
   173     }
   183     }
   174 }
   184 }