emailuis/nmindicatorplugin/src/nmsyncindicator.cpp
changeset 44 c2d07d913565
parent 43 99bcbff212ad
child 49 00c7ae862740
equal deleted inserted replaced
43:99bcbff212ad 44:c2d07d913565
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 #include "nmsyncindicator.h"
    18 #include "nmsyncindicator.h"
    19 
    19 
    20 const char NmSyncIndicator::IndicatorType[] = "com.nokia.hb.nmsyncindicator/1.0";
    20 const char NmSyncIndicator::IndicatorType[] = "com.nokia.nmail.indicatorplugin.sync/1.0";
    21 
    21 
    22 NmSyncIndicator::NmSyncIndicator() :
    22 NmSyncIndicator::NmSyncIndicator() :
    23 HbIndicatorInterface(NmSyncIndicator::IndicatorType, ProgressCategory, NoInteraction)
    23 HbIndicatorInterface(NmSyncIndicator::IndicatorType, ProgressCategory, NoInteraction)
    24 {
    24 {
    25 }
    25 }
    28 {
    28 {
    29 }
    29 }
    30 
    30 
    31 QVariant NmSyncIndicator::indicatorData(int role) const
    31 QVariant NmSyncIndicator::indicatorData(int role) const
    32 {
    32 {
    33     if (role == MonoDecorationNameRole )
    33     if (role == MonoDecorationNameRole ) {
    34     {
       
    35         // Must return non-empty to make the indicator visible
    34         // Must return non-empty to make the indicator visible
    36         return " ";
    35         return " ";
    37     }
    36     }
    38     else
    37     else {
    39     {
       
    40         return QVariant();
    38         return QVariant();
    41     }
    39     }
    42 }
    40 }