24 // User includes |
24 // User includes |
25 #include "alarmalertplugin.h" |
25 #include "alarmalertplugin.h" |
26 #include "alarmalertwidget_p.h" |
26 #include "alarmalertwidget_p.h" |
27 #include "alarmalert.h" |
27 #include "alarmalert.h" |
28 #include "alarmalertdocloader.h" |
28 #include "alarmalertdocloader.h" |
|
29 #include "OstTraceDefinitions.h" |
|
30 #ifdef OST_TRACE_COMPILER_IN_USE |
|
31 #include "alarmalertpluginTraces.h" |
|
32 #endif |
29 |
33 |
30 // Plugin export |
34 // Plugin export |
31 Q_EXPORT_PLUGIN2(alarmalertplugin, AlarmAlertPlugin); |
35 Q_EXPORT_PLUGIN2(alarmalertplugin, AlarmAlertPlugin); |
32 |
36 |
33 // --------------------------------------------------------- |
37 // --------------------------------------------------------- |
35 // rest of the details are commented in the header |
39 // rest of the details are commented in the header |
36 // --------------------------------------------------------- |
40 // --------------------------------------------------------- |
37 // |
41 // |
38 AlarmAlertPlugin::AlarmAlertPlugin() |
42 AlarmAlertPlugin::AlarmAlertPlugin() |
39 { |
43 { |
|
44 OstTraceFunctionEntry0( ALARMALERTPLUGIN_ALARMALERTPLUGIN_ENTRY ); |
40 // No implementation yet |
45 // No implementation yet |
|
46 OstTraceFunctionExit0( ALARMALERTPLUGIN_ALARMALERTPLUGIN_EXIT ); |
41 } |
47 } |
42 |
48 |
43 // --------------------------------------------------------- |
49 // --------------------------------------------------------- |
44 // AlarmAlertPlugin::~AlarmAlertPlugin |
50 // AlarmAlertPlugin::~AlarmAlertPlugin |
45 // rest of the details are commented in the header |
51 // rest of the details are commented in the header |
46 // --------------------------------------------------------- |
52 // --------------------------------------------------------- |
47 // |
53 // |
48 AlarmAlertPlugin::~AlarmAlertPlugin() |
54 AlarmAlertPlugin::~AlarmAlertPlugin() |
49 { |
55 { |
|
56 OstTraceFunctionEntry0( DUP1_ALARMALERTPLUGIN_ALARMALERTPLUGIN_ENTRY ); |
50 // No implementation yet |
57 // No implementation yet |
|
58 OstTraceFunctionExit0( DUP1_ALARMALERTPLUGIN_ALARMALERTPLUGIN_EXIT ); |
51 } |
59 } |
52 |
60 |
53 // --------------------------------------------------------- |
61 // --------------------------------------------------------- |
54 // AlarmAlertPlugin::accessAllowed |
62 // AlarmAlertPlugin::accessAllowed |
55 // rest of the details are commented in the header |
63 // rest of the details are commented in the header |
57 // |
65 // |
58 bool AlarmAlertPlugin::accessAllowed(const QString &deviceDialogType, |
66 bool AlarmAlertPlugin::accessAllowed(const QString &deviceDialogType, |
59 const QVariantMap ¶meters, |
67 const QVariantMap ¶meters, |
60 const QVariantMap &securityInfo) const |
68 const QVariantMap &securityInfo) const |
61 { |
69 { |
|
70 OstTraceFunctionEntry0( ALARMALERTPLUGIN_ACCESSALLOWED_ENTRY ); |
62 Q_UNUSED(securityInfo); |
71 Q_UNUSED(securityInfo); |
63 Q_UNUSED(parameters); |
72 Q_UNUSED(parameters); |
64 Q_UNUSED(deviceDialogType); |
73 Q_UNUSED(deviceDialogType); |
65 |
74 |
66 // No implementation yet |
75 // No implementation yet |
|
76 OstTraceFunctionExit0( ALARMALERTPLUGIN_ACCESSALLOWED_EXIT ); |
67 return true; |
77 return true; |
68 } |
78 } |
69 |
79 |
70 // --------------------------------------------------------- |
80 // --------------------------------------------------------- |
71 // AlarmAlertPlugin::deviceDialogInfo |
81 // AlarmAlertPlugin::deviceDialogInfo |
74 // |
84 // |
75 bool AlarmAlertPlugin::deviceDialogInfo(const QString &deviceDialogType, |
85 bool AlarmAlertPlugin::deviceDialogInfo(const QString &deviceDialogType, |
76 const QVariantMap ¶meters, |
86 const QVariantMap ¶meters, |
77 DeviceDialogInfo *info) const |
87 DeviceDialogInfo *info) const |
78 { |
88 { |
|
89 OstTraceFunctionEntry0( ALARMALERTPLUGIN_DEVICEDIALOGINFO_ENTRY ); |
79 Q_UNUSED(deviceDialogType); |
90 Q_UNUSED(deviceDialogType); |
80 Q_UNUSED(parameters); |
91 Q_UNUSED(parameters); |
81 |
92 |
82 info->group = CriticalGroup; |
93 info->group = CriticalGroup; |
83 info->priority = DefaultPriority; |
94 info->priority = DefaultPriority; |
84 info->flags = NoDeviceDialogFlags; |
95 info->flags = NoDeviceDialogFlags; |
|
96 OstTraceFunctionExit0( ALARMALERTPLUGIN_DEVICEDIALOGINFO_EXIT ); |
85 return true; |
97 return true; |
86 } |
98 } |
87 |
99 |
88 // --------------------------------------------------------- |
100 // --------------------------------------------------------- |
89 // AlarmAlertPlugin::deviceDialogTypes |
101 // AlarmAlertPlugin::deviceDialogTypes |
90 // rest of the details are commented in the header |
102 // rest of the details are commented in the header |
91 // --------------------------------------------------------- |
103 // --------------------------------------------------------- |
92 // |
104 // |
93 QStringList AlarmAlertPlugin::deviceDialogTypes() const |
105 QStringList AlarmAlertPlugin::deviceDialogTypes() const |
94 { |
106 { |
|
107 OstTraceFunctionEntry0( ALARMALERTPLUGIN_DEVICEDIALOGTYPES_ENTRY ); |
95 // Return the device dialog type this plugin supports |
108 // Return the device dialog type this plugin supports |
96 QStringList dialogType; |
109 QStringList dialogType; |
97 dialogType.append(ALARM_ALERT_PLUGIN); |
110 dialogType.append(ALARM_ALERT_PLUGIN); |
|
111 OstTraceFunctionExit0( ALARMALERTPLUGIN_DEVICEDIALOGTYPES_EXIT ); |
98 return dialogType; |
112 return dialogType; |
99 } |
113 } |
100 |
114 |
101 // --------------------------------------------------------- |
115 // --------------------------------------------------------- |
102 // AlarmAlertPlugin::pluginFlags |
116 // AlarmAlertPlugin::pluginFlags |
103 // rest of the details are commented in the header |
117 // rest of the details are commented in the header |
104 // --------------------------------------------------------- |
118 // --------------------------------------------------------- |
105 // |
119 // |
106 HbDeviceDialogPlugin::PluginFlags AlarmAlertPlugin::pluginFlags() const |
120 HbDeviceDialogPlugin::PluginFlags AlarmAlertPlugin::pluginFlags() const |
107 { |
121 { |
|
122 OstTraceFunctionEntry0( ALARMALERTPLUGIN_PLUGINFLAGS_ENTRY ); |
|
123 OstTraceFunctionExit0( ALARMALERTPLUGIN_PLUGINFLAGS_EXIT ); |
108 return NoPluginFlags; |
124 return NoPluginFlags; |
109 } |
125 } |
110 |
126 |
111 // --------------------------------------------------------- |
127 // --------------------------------------------------------- |
112 // AlarmAlertPlugin::error |
128 // AlarmAlertPlugin::error |
113 // rest of the details are commented in the header |
129 // rest of the details are commented in the header |
114 // --------------------------------------------------------- |
130 // --------------------------------------------------------- |
115 // |
131 // |
116 int AlarmAlertPlugin::error() const |
132 int AlarmAlertPlugin::error() const |
117 { |
133 { |
|
134 OstTraceFunctionEntry0( ALARMALERTPLUGIN_ERROR_ENTRY ); |
118 // TODO: Need to handle any error that might occur |
135 // TODO: Need to handle any error that might occur |
|
136 OstTraceFunctionExit0( ALARMALERTPLUGIN_ERROR_EXIT ); |
119 return 0; |
137 return 0; |
120 } |
138 } |
121 |
139 |
122 // --------------------------------------------------------- |
140 // --------------------------------------------------------- |
123 // AlarmAlertPlugin::createDeviceDialog |
141 // AlarmAlertPlugin::createDeviceDialog |
125 // --------------------------------------------------------- |
143 // --------------------------------------------------------- |
126 // |
144 // |
127 HbDeviceDialogInterface *AlarmAlertPlugin::createDeviceDialog(const QString &deviceDialogType, |
145 HbDeviceDialogInterface *AlarmAlertPlugin::createDeviceDialog(const QString &deviceDialogType, |
128 const QVariantMap ¶meters) |
146 const QVariantMap ¶meters) |
129 { |
147 { |
|
148 OstTraceFunctionEntry0( ALARMALERTPLUGIN_CREATEDEVICEDIALOG_ENTRY ); |
130 Q_UNUSED(deviceDialogType); |
149 Q_UNUSED(deviceDialogType); |
131 |
150 |
132 // Create and return the alarm alert dialog |
151 // Create and return the alarm alert dialog |
133 HbDeviceDialogInterface *ret(0); |
152 HbDeviceDialogInterface *ret(0); |
134 AlarmAlertDocLoader *alertDocLoader = new AlarmAlertDocLoader(parameters); |
153 AlarmAlertDocLoader *alertDocLoader = new AlarmAlertDocLoader(parameters); |