author | hgs |
Mon, 23 Aug 2010 15:42:12 +0300 | |
changeset 60 | 1eef62f5c541 |
parent 46 | bc5a64e5bc3c |
child 51 | f39ed5e045e0 |
child 78 | baacf668fe89 |
permissions | -rw-r--r-- |
37 | 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 |
||
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
26 |
static const char *IndicatorNameTemplate = "com.nokia.symbian.phoneindicatorplugin_%1"; |
37 | 27 |
|
28 |
enum Interaction |
|
29 |
{ |
|
30 |
InteractionNone, |
|
31 |
OpenMissedCallView, |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
32 |
OpenCallUi, |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
33 |
OpenDiverSettingsView, |
37 | 34 |
Deactivate |
35 |
}; |
|
36 |
||
37 |
enum PhoneIndicatorTypes |
|
38 |
{ |
|
39 |
PhoneMissedCallIndicator = 0, |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
40 |
PhoneActiveCallIndicator, |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
41 |
PhoneDivertIndidicator |
37 | 42 |
}; |
43 |
||
44 |
inline QString indicatorName(int indicatorType) { |
|
45 |
return QString(IndicatorNameTemplate).arg(indicatorType); |
|
46 |
} |
|
47 |
||
48 |
struct PhoneIndicatorInfo |
|
49 |
{ |
|
50 |
const char *icon; |
|
51 |
const char *primaryText; |
|
52 |
const char *secondaryText; |
|
53 |
Interaction interaction; |
|
54 |
}; |
|
55 |
||
56 |
Q_DECLARE_METATYPE(PhoneIndicatorInfo) |
|
57 |
||
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
58 |
static const int PhoneIndicatorCount = 3; |
37 | 59 |
static const PhoneIndicatorInfo IndicatorInfos[PhoneIndicatorCount] = { |
60 |
{"qtg_mono_info.svg", "Missed call", "Name/Number", OpenMissedCallView }, |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
61 |
{"qtg_mono_info.svg", "Active call", " ", OpenCallUi }, |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
62 |
{"qtg_mono_info.svg", "Active diverts", " ", OpenDiverSettingsView } |
37 | 63 |
}; |
64 |
||
65 |
#endif // PHONEINDICATORS_H |