emailuis/nmindicatorplugin/src/nmsyncindicator.cpp
changeset 43 99bcbff212ad
child 44 c2d07d913565
equal deleted inserted replaced
42:139d4b7b2938 43:99bcbff212ad
       
     1 /*
       
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  *
       
    16  */
       
    17 
       
    18 #include "nmsyncindicator.h"
       
    19 
       
    20 const char NmSyncIndicator::IndicatorType[] = "com.nokia.hb.nmsyncindicator/1.0";
       
    21 
       
    22 NmSyncIndicator::NmSyncIndicator() :
       
    23 HbIndicatorInterface(NmSyncIndicator::IndicatorType, ProgressCategory, NoInteraction)
       
    24 {
       
    25 }
       
    26 
       
    27 NmSyncIndicator::~NmSyncIndicator()
       
    28 {
       
    29 }
       
    30 
       
    31 QVariant NmSyncIndicator::indicatorData(int role) const
       
    32 {
       
    33     if (role == MonoDecorationNameRole )
       
    34     {
       
    35         // Must return non-empty to make the indicator visible
       
    36         return " ";
       
    37     }
       
    38     else
       
    39     {
       
    40         return QVariant();
       
    41     }
       
    42 }