59
|
1 |
/*
|
|
2 |
* ============================================================================
|
|
3 |
* Name : autolockindicators.h
|
|
4 |
* Part of : hb /
|
|
5 |
* Description :
|
|
6 |
* Version : %version: 1 %
|
|
7 |
*
|
|
8 |
* Copyright (c) 2009 Nokia. All rights reserved.
|
|
9 |
* This material, including documentation and any related computer
|
|
10 |
* programs, is protected by copyright controlled by Nokia. All
|
|
11 |
* rights are reserved. Copying, including reproducing, storing,
|
|
12 |
* adapting or translating, any or all of this material requires the
|
|
13 |
* prior written consent of Nokia. This material also contains
|
|
14 |
* confidential information which may not be disclosed to others
|
|
15 |
* without the prior written consent of Nokia.
|
|
16 |
* ============================================================================
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef AUTOLOCKINDICATORS_H
|
|
20 |
#define AUTOLOCKINDICATORS_H
|
|
21 |
|
|
22 |
#include <hbindicatorinterface.h>
|
|
23 |
#include <QMetaType>
|
|
24 |
#include <QString>
|
|
25 |
|
|
26 |
static const char *IndicatorNameTemplate = "com.nokia.hb.indicator.autolock.autolock_%1/1.0";
|
|
27 |
|
|
28 |
enum Interaction
|
|
29 |
{
|
|
30 |
InteractionNone,
|
|
31 |
ChangeContent,
|
|
32 |
Deactivate,
|
|
33 |
ChangeOrientation
|
|
34 |
};
|
|
35 |
|
|
36 |
inline QString indicatorName(int indicatorType) {
|
|
37 |
return QString(IndicatorNameTemplate).arg(indicatorType);
|
|
38 |
}
|
|
39 |
|
|
40 |
struct IndicatorInfo
|
|
41 |
{
|
|
42 |
const char *icon;
|
|
43 |
const char *iconMono;
|
|
44 |
const char *primaryText;
|
|
45 |
const char *secondaryText;
|
|
46 |
HbIndicatorInterface::Category category;
|
|
47 |
Interaction interaction;
|
|
48 |
};
|
|
49 |
|
|
50 |
Q_DECLARE_METATYPE(IndicatorInfo)
|
|
51 |
|
|
52 |
static const int IndicatorCount = 10;
|
|
53 |
static const IndicatorInfo IndicatorInfos[IndicatorCount] = {
|
|
54 |
{"navi_left.svg", "qtg_mono_settings.svg", "Notification indicator 1", "no interaction", HbIndicatorInterface::NotificationCategory, InteractionNone},
|
|
55 |
{"qt_prog_bar_play.svg","qtg_status_new_email.svg", "Notification indicator 2", "deactivates, when clicked (additional to test the text truncation.)", HbIndicatorInterface::NotificationCategory, Deactivate},
|
|
56 |
{"hb_vol_slider_increment_pressed.svg", "qtg_status_new_email.svg", "Notification indicator 3", "changes content", HbIndicatorInterface::NotificationCategory, ChangeContent},
|
|
57 |
{"hb_vol_slider_muted.svg", "qtg_status_new_email.svg", "Notification indicator 4", "changes content, when clicked", HbIndicatorInterface::NotificationCategory, ChangeContent},
|
|
58 |
{"qgn_menu_pinb.svg", "qgn_menu_pinb.svg", "Progress indicator 1", "no interaction", HbIndicatorInterface::ProgressCategory, InteractionNone},
|
|
59 |
{"qgn_menu_note.svg", "qgn_menu_note.svg", "Progress indicator 2", "changes content, when clicked", HbIndicatorInterface::ProgressCategory, ChangeContent},
|
|
60 |
{"note_error.svg", "note_error.svg", "Progress indicator 3", "changes orientation, when clicked", HbIndicatorInterface::ProgressCategory, ChangeOrientation},
|
|
61 |
{"note_info.svg", "note_info.svg", "Progress indicator 4", "changes content, when clicked", HbIndicatorInterface::ProgressCategory, ChangeContent},
|
|
62 |
{"qtg_large_device_lock.svg", "qtg_large_device_lock.svg", "Keyguard Enabled", "Keyguard Enabled", HbIndicatorInterface::SettingCategory, InteractionNone},
|
|
63 |
{"qgn_menu_phob.svg", "qgn_menu_phob.svg", "Devicelock Enabled", "Devicelock Enabled", HbIndicatorInterface::SettingCategory, InteractionNone}
|
|
64 |
};
|
|
65 |
|
|
66 |
|
|
67 |
#endif // AUTOLOCKINDICATORS_H
|