emailuis/nmindicatorplugin/src/nmsyncindicator.cpp
branchRCL_3
changeset 63 d189ee25cf9d
equal deleted inserted replaced
61:dcf0eedfc1a3 63:d189ee25cf9d
       
     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.nmail.indicatorplugin.sync/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 == DecorationNameRole || role == MonoDecorationNameRole) {
       
    34         // Must return non-empty to make the indicator visible
       
    35         return " ";
       
    36     }
       
    37     else {
       
    38         return QVariant();
       
    39     }
       
    40 }