equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2007 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: ESMR alarm implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRALARM_H |
|
20 #define CESMRALARM_H |
|
21 |
|
22 #include <barsread.h> |
|
23 |
|
24 NONSHARABLE_CLASS( CESMRAlarm ): public CBase |
|
25 { |
|
26 public: |
|
27 /** |
|
28 * Constructor |
|
29 */ |
|
30 IMPORT_C CESMRAlarm(); |
|
31 |
|
32 /** |
|
33 * Destructor |
|
34 */ |
|
35 IMPORT_C ~CESMRAlarm(); |
|
36 |
|
37 public: |
|
38 /** |
|
39 * Loads alarm valus from resources |
|
40 */ |
|
41 IMPORT_C void ConstructFromResourceL( TResourceReader& aReader ); |
|
42 |
|
43 /** |
|
44 * Loads iText from resources |
|
45 */ |
|
46 IMPORT_C void LoadTextL( CCoeEnv* aCoeEnv ); |
|
47 |
|
48 /** |
|
49 * Returns relative alarm time in minutes |
|
50 * |
|
51 * @return relative alarm time |
|
52 */ |
|
53 IMPORT_C TTimeIntervalMinutes RelativeTimeInMinutes(); |
|
54 |
|
55 /** |
|
56 * Returns alarm text |
|
57 * |
|
58 * @return alarm text |
|
59 */ |
|
60 IMPORT_C HBufC* Text(); |
|
61 |
|
62 /** |
|
63 * Returns alarm id |
|
64 * |
|
65 * @return alarm id |
|
66 */ |
|
67 IMPORT_C TInt Id(); |
|
68 |
|
69 /** |
|
70 * Returns relative alarm time |
|
71 * |
|
72 * @returns relative alarm time |
|
73 */ |
|
74 IMPORT_C TInt Relative(); |
|
75 |
|
76 private: |
|
77 /** |
|
78 * Alarm id |
|
79 */ |
|
80 TInt iId; |
|
81 |
|
82 /** |
|
83 * Alarm value |
|
84 */ |
|
85 TInt iValue; |
|
86 |
|
87 /** |
|
88 * Relative alarm value |
|
89 */ |
|
90 TInt iRelative; |
|
91 |
|
92 /** |
|
93 * Alarm text id |
|
94 */ |
|
95 TInt iTxtLink; |
|
96 |
|
97 /** |
|
98 * Own: Alarm text |
|
99 */ |
|
100 HBufC* iText; |
|
101 }; |
|
102 |
|
103 #endif // CESMRALARM_H |
|
104 |
|