|
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 #ifndef PHONEINDICATORS_H |
|
19 #define PHONEINDICATORS_H |
|
20 |
|
21 #include <hbindicatorinterface.h> |
|
22 #include <QObject> |
|
23 #include <QString> |
|
24 |
|
25 |
|
26 static const char *IndicatorNameTemplate = "PhoneIndicator_%1"; |
|
27 |
|
28 enum Interaction |
|
29 { |
|
30 InteractionNone, |
|
31 OpenMissedCallView, |
|
32 Deactivate |
|
33 }; |
|
34 |
|
35 enum PhoneIndicatorTypes |
|
36 { |
|
37 PhoneMissedCallIndicator = 0 |
|
38 }; |
|
39 |
|
40 inline QString indicatorName(int indicatorType) { |
|
41 return QString(IndicatorNameTemplate).arg(indicatorType); |
|
42 } |
|
43 |
|
44 struct PhoneIndicatorInfo |
|
45 { |
|
46 const char *icon; |
|
47 const char *primaryText; |
|
48 const char *secondaryText; |
|
49 HbIndicatorInterface::GroupPriority priority; |
|
50 Interaction interaction; |
|
51 }; |
|
52 |
|
53 Q_DECLARE_METATYPE(PhoneIndicatorInfo) |
|
54 |
|
55 static const int PhoneIndicatorCount = 1; |
|
56 static const PhoneIndicatorInfo IndicatorInfos[PhoneIndicatorCount] = { |
|
57 {"qtg_mono_info.svg", "Missed call", "Name/Number", HbIndicatorInterface::GroupPriorityHigh, OpenMissedCallView } // TODO: change icon |
|
58 }; |
|
59 |
|
60 #endif // PHONEINDICATORS_H |