|
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 // alarmalertwrapper.h |
|
18 |
|
19 // User includes |
|
20 #include "alarmalertwrapper.h" |
|
21 #include "alarmalertwidget.h" |
|
22 |
|
23 // --------------------------------------------------------- |
|
24 // AlarmAlert::AlarmAlert |
|
25 // rest of the details are commented in the header |
|
26 // --------------------------------------------------------- |
|
27 // |
|
28 EXPORT_C AlarmAlert::AlarmAlert(AlarmAlertObserver *observer) |
|
29 { |
|
30 // Construct the client interface |
|
31 mAlarmWidget = new AlarmAlertWidget(observer); |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------- |
|
35 // AlarmAlert::~AlarmAlert |
|
36 // rest of the details are commented in the header |
|
37 // --------------------------------------------------------- |
|
38 // |
|
39 EXPORT_C AlarmAlert::~AlarmAlert() |
|
40 { |
|
41 // Cleanup |
|
42 if (mAlarmWidget) { |
|
43 delete mAlarmWidget; |
|
44 } |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------- |
|
48 // AlarmAlert::showAlarmAlert |
|
49 // rest of the details are commented in the header |
|
50 // --------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C bool AlarmAlert::showAlarmAlert(SAlarmInfo *alarmInfo) |
|
53 { |
|
54 // Forward the call to the client |
|
55 return mAlarmWidget->showAlarmDialog(alarmInfo); |
|
56 } |
|
57 |
|
58 // --------------------------------------------------------- |
|
59 // AlarmAlert::dismissAlarmAlert |
|
60 // rest of the details are commented in the header |
|
61 // --------------------------------------------------------- |
|
62 // |
|
63 EXPORT_C bool AlarmAlert::dismissAlarmAlert() |
|
64 { |
|
65 // Forward the call to the client |
|
66 return mAlarmWidget->dismissAlarmDialog(); |
|
67 } |
|
68 |
|
69 // --------------------------------------------------------- |
|
70 // AlarmAlert::updateAlarmAlert |
|
71 // rest of the details are commented in the header |
|
72 // --------------------------------------------------------- |
|
73 // |
|
74 EXPORT_C bool AlarmAlert::updateAlarmAlert(SAlarmInfo *alarmInfo) |
|
75 { |
|
76 // Forward the call to the client |
|
77 return mAlarmWidget->updateAlarmDialog(alarmInfo); |
|
78 } |