equal
deleted
inserted
replaced
|
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 #include "nmunreadindicator.h" |
|
18 #include <nmcommon.h> |
|
19 |
|
20 /*! |
|
21 \class NmUnreadIndicator |
|
22 \brief Handles global unread indicator |
|
23 */ |
|
24 |
|
25 /*! |
|
26 Class constructor. |
|
27 */ |
|
28 NmUnreadIndicator::NmUnreadIndicator(const QString &indicatorType) |
|
29 :HbIndicatorInterface(indicatorType, |
|
30 HbIndicatorInterface::NotificationCategory, |
|
31 HbIndicatorInterface::NoInteraction) |
|
32 { |
|
33 } |
|
34 |
|
35 /*! |
|
36 Class destructor. |
|
37 */ |
|
38 NmUnreadIndicator::~NmUnreadIndicator() |
|
39 { |
|
40 } |
|
41 |
|
42 /*! |
|
43 \fn QVariant HbIndicatorInterface::indicatorData(int role) |
|
44 |
|
45 This indicator just shows the "@" in the status bar |
|
46 */ |
|
47 QVariant NmUnreadIndicator::indicatorData(int role) const |
|
48 { |
|
49 if (role==MonoDecorationNameRole) { |
|
50 return QString("qtg_status_new_email"); |
|
51 } |
|
52 |
|
53 return QVariant(); |
|
54 } |