|
1 /** |
|
2 * Copyright (c) 2005-2009 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 |
|
18 |
|
19 |
|
20 void CConsoleAlarmAlertServer::AddResponseArray(TAny* aResponseArray) |
|
21 { |
|
22 iInstructionSet = aResponseArray; |
|
23 } |
|
24 |
|
25 HBufC8* CConsoleAlarmAlertServer::Attachment() const |
|
26 { |
|
27 return iAttachment; |
|
28 } |
|
29 |
|
30 TAny* CConsoleAlarmAlertServer::ResponseArray() const |
|
31 { |
|
32 return iInstructionSet; |
|
33 } |
|
34 |
|
35 CConsoleAlarmAlertSession* CConsoleAlarmAlertServer::WaitingSession() const |
|
36 { |
|
37 return iWaitingSession; |
|
38 } |
|
39 |
|
40 void CConsoleAlarmAlertServer::SetWaitingSession(CConsoleAlarmAlertSession* aSession) |
|
41 { |
|
42 iWaitingSession = aSession; |
|
43 } |
|
44 |
|
45 void CConsoleAlarmAlertServer::SetNotifying(TBool aIsNotifying) |
|
46 { |
|
47 iIsNotifying = aIsNotifying; |
|
48 } |
|
49 |
|
50 TBool CConsoleAlarmAlertServer::IsNotifying() const |
|
51 { |
|
52 return iIsNotifying; |
|
53 } |
|
54 |
|
55 /** |
|
56 Asks the Console Alarm Alert Server if it's in extended mode or not. |
|
57 |
|
58 @return ETrue if in extended mode, EFalse otherwise. |
|
59 */ |
|
60 |
|
61 TBool CConsoleAlarmAlertServer::IsExtendedMode() const |
|
62 { |
|
63 return iExtendedMode; |
|
64 } |
|
65 |
|
66 /** |
|
67 Sets the Console Alarm Alert Server to extended mode. Use this mode to enable |
|
68 new RANTestClient API calls, enable logging and test multiple alarm functionality. |
|
69 |
|
70 @param aMode, ETrue enables extended mode. EFalse disables extended mode. |
|
71 */ |
|
72 |
|
73 void CConsoleAlarmAlertServer::SetExtendedMode(const TBool aMode) |
|
74 { |
|
75 iExtendedMode = aMode; |
|
76 iMaxAlarms = 1; |
|
77 } |
|
78 |
|
79 /** |
|
80 Sets the Console Alarm Alert Server user time value. |
|
81 |
|
82 @param aTime, time to use as user time. |
|
83 */ |
|
84 |
|
85 void CConsoleAlarmAlertServer::SetUserTime(const TTime& aTime) |
|
86 { |
|
87 iUserTime = aTime; |
|
88 } |
|
89 |
|
90 /** |
|
91 Gets the Console Alarm Alert Server user time value. |
|
92 The default value is Time::NullTTime() |
|
93 |
|
94 @return the user time. |
|
95 */ |
|
96 |
|
97 const TTime& CConsoleAlarmAlertServer::UserTime() const |
|
98 { |
|
99 return iUserTime; |
|
100 } |
|
101 |
|
102 /** |
|
103 Sets the Console Alarm Alert Server max alarms value. |
|
104 |
|
105 @param aMaxAlarms, value to use as max alarms. |
|
106 */ |
|
107 |
|
108 void CConsoleAlarmAlertServer::SetMaxAlarms(const TInt aMaxAlarms) |
|
109 { |
|
110 iMaxAlarms = aMaxAlarms; |
|
111 } |
|
112 |
|
113 /** |
|
114 Gets the Console Alarm Alert Server max alarms value. |
|
115 |
|
116 @return value used as max alarms. |
|
117 |
|
118 */ |
|
119 |
|
120 const TInt CConsoleAlarmAlertServer::MaxAlarms() const |
|
121 { |
|
122 return iMaxAlarms; |
|
123 } |
|
124 |
|
125 /** |
|
126 Gets a pointer to the latest EASAltOpCodeNotify message. |
|
127 |
|
128 @return a pointer to the message. |
|
129 */ |
|
130 |
|
131 RMessage2* CConsoleAlarmAlertServer::NotifyMessage() const |
|
132 { |
|
133 return iNotify; |
|
134 } |
|
135 |
|
136 /** |
|
137 Sets the pointer to the latest EASAltOpCodeNotify message. |
|
138 |
|
139 @param aMessage, the address of the latest EASAltOpCodeNotify message. |
|
140 */ |
|
141 |
|
142 void CConsoleAlarmAlertServer::SetNotifyMessage(RMessage2* aMessage) |
|
143 { |
|
144 iNotify = aMessage; |
|
145 } |
|
146 |