|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 // class CAlmModel |
|
17 inline TAlarmSoundState CAlmModel::AlarmSoundState() const |
|
18 { |
|
19 return(iAlmSvr.AlarmSoundState()); |
|
20 } |
|
21 inline void CAlmModel::AlarmSoundStateSet(TBool aSoundOn) |
|
22 { |
|
23 iAlmSvr.SetAlarmSoundOn(aSoundOn); |
|
24 } |
|
25 inline void CAlmModel::AlarmSoundToggle() |
|
26 { |
|
27 iAlmSvr.SetAlarmSoundOn(iAlmSvr.AlarmSoundState()==EAlarmSoundOff); |
|
28 } |
|
29 inline TTime CAlmModel::AlarmQuietPeriodEnd() const |
|
30 { |
|
31 return(iAlmSvr.QuietPeriodUntil()); |
|
32 } |
|
33 inline void CAlmModel::AlarmQuietPeriodCancel() |
|
34 { |
|
35 iAlmSvr.QuietPeriodCancel(); |
|
36 } |
|
37 inline TInt CAlmModel::ClockAlarmDelete(TInt aClockAlarmNum) |
|
38 { |
|
39 __ASSERT_DEBUG(aClockAlarmNum<KMaxClockAlarms,Panic(EModelOutOfRange)); |
|
40 return(iAlmSvr.AlarmDelete(aClockAlarmNum)); |
|
41 } |
|
42 inline TAlarmSetState CAlmModel::ClockAlarmState(TInt aClockAlarmNum) const |
|
43 { |
|
44 __ASSERT_DEBUG(aClockAlarmNum<KMaxClockAlarms,Panic(EModelOutOfRange)); |
|
45 return(iAlmSvr.AlarmState(aClockAlarmNum)); |
|
46 } |
|
47 inline void CAlmModel::NextAlarmResetListL() |
|
48 { |
|
49 iAlmSvr.AlarmArrayPopulateL(*iNextAlarms,RAlarmServer::EArrayNext); |
|
50 } |
|
51 inline void CAlmModel::NextAlarmClearList() |
|
52 { |
|
53 iNextAlarms->Reset(); |
|
54 } |
|
55 inline TInt CAlmModel::NextAlarmNumber() const |
|
56 { |
|
57 return(iAlmSvr.AlarmCount(RAlarmServer::ECountNext)); |
|
58 } |
|
59 inline void CAlmModel::ReviewAlarmResetListL() |
|
60 { |
|
61 iAlmSvr.AlarmArrayPopulateL(*iReviewAlarms,RAlarmServer::EArrayReview); |
|
62 } |
|
63 inline void CAlmModel::ReviewAlarmClearList() |
|
64 { |
|
65 iReviewAlarms->Reset(); |
|
66 } |
|
67 inline TInt CAlmModel::ReviewAlarmNumber() const |
|
68 { |
|
69 return(iAlmSvr.AlarmCount(RAlarmServer::ECountReview)); |
|
70 } |
|
71 inline TInt CAlmModel::OrphanAlarmNumber() const |
|
72 { |
|
73 return(iAlmSvr.AlarmCount(RAlarmServer::ECountOrphan)); |
|
74 } |
|
75 inline TInt CAlmModel::UnacknowledgedAlarmNumber() const |
|
76 { |
|
77 return(iAlmSvr.AlarmCount(RAlarmServer::ECountUnacknowledged)); |
|
78 } |
|
79 |