|
1 /* |
|
2 * Copyright (c) 2006-2006 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: This class provides the text for an alarm notification. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef ALMALARMINFO_H |
|
21 #define ALMALARMINFO_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "alarmutils.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CCalEntry; |
|
29 |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * @lib AknAlarmService.lib |
|
34 * @since 1.0 |
|
35 **/ |
|
36 NONSHARABLE_CLASS( CAlmAlarmInfo ) : public CBase |
|
37 { |
|
38 public: // destructor |
|
39 |
|
40 /** |
|
41 * Constructor. |
|
42 */ |
|
43 CAlmAlarmInfo(CAlarmUtils* aAlarmUtils); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CAlmAlarmInfo(); |
|
49 |
|
50 public: |
|
51 /** |
|
52 * Gets text and time values for alarm note. |
|
53 * @since 2.0 |
|
54 * @param aAlarm Alarm data |
|
55 * @param aText Text part of alarm note's text. |
|
56 * @param aAlarmType Alarm type. |
|
57 **/ |
|
58 void GetAlarmLabelL(const TASShdAlarm& aAlarm, HBufC*& aText, const CAlarmUtils::TAlarmType& aAlarmType); |
|
59 |
|
60 /** |
|
61 * Gets the label for wakeup note. |
|
62 * @since 2.0 |
|
63 **/ |
|
64 void GetWakeupLabelL(HBufC*& aLabel); |
|
65 |
|
66 private: |
|
67 /** |
|
68 * Functions to set the alarm notification string. |
|
69 **/ |
|
70 void SetupUnknownAlarmL(HBufC*& aText); |
|
71 void SetupClockAlarmL(HBufC*& aText); |
|
72 void SetupAppointmentAlarmL(HBufC*& aText); |
|
73 void SetupToDoAlarmL(HBufC*& aText); |
|
74 void SetupAnniversaryAlarmL(HBufC*& aText); |
|
75 |
|
76 void GetCoverUIParamsForCalendarL(const CCalEntry* aEntry); |
|
77 void GetCoverUIParamsForClockAndOtherL(const TASShdAlarm& aAlarm, const CAlarmUtils::TAlarmType aType); |
|
78 |
|
79 void AppendSubjectLocationText(TPtr& aDest, const TDesC& aSeparator); |
|
80 |
|
81 private: // data members |
|
82 /** |
|
83 * Pointer to the utils class. |
|
84 * Not own. |
|
85 */ |
|
86 CAlarmUtils* iAlarmUtils; |
|
87 |
|
88 HBufC* iSubject; |
|
89 HBufC* iLocation; |
|
90 HBufC* iDate; |
|
91 HBufC* iTime; |
|
92 HBufC* iCoverTime; |
|
93 HBufC* iCoverDate; |
|
94 |
|
95 }; |
|
96 |
|
97 #endif // ALMALARMINFO_H |
|
98 |
|
99 |
|
100 // End of File |