author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 06 Jul 2010 14:15:47 +0300 | |
changeset 46 | bc5a64e5bc3c |
parent 45 | 6b911d05207e |
child 51 | f39ed5e045e0 |
child 53 | 22cc52eade9b |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 2005 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: Implementation of TPhoneCmdParamGlobalNote class. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
// INCLUDE FILES |
|
20 |
#include <avkon.hrh> |
|
21 |
#include "tphonecmdparamglobalnote.h" |
|
22 |
#include "phoneui.pan" |
|
23 |
||
24 |
// ================= MEMBER FUNCTIONS ======================= |
|
25 |
||
26 |
// ----------------------------------------------------------------------------- |
|
27 |
// TPhoneCmdParamGlobalNote::TPhoneCmdParamGlobalNote |
|
28 |
// C++ default constructor can NOT contain any code, that |
|
29 |
// might leave. |
|
30 |
// ----------------------------------------------------------------------------- |
|
31 |
// |
|
32 |
EXPORT_C TPhoneCmdParamGlobalNote::TPhoneCmdParamGlobalNote(): |
|
33 |
TPhoneCommandParam(), |
|
34 |
iType( EAknGlobalErrorNote ), |
|
35 |
iTextResourceId( 0 ), |
|
36 |
iText( KNullDesC ), |
|
37 |
iTone( EAvkonSIDErrorTone ), |
|
38 |
iWaitforReady ( EFalse ), |
|
39 |
iSoftkeys( 0 ), |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
40 |
iTimeout( 0 ), |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
41 |
iNotificationDialog( EFalse ), |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
42 |
iCauseCode( KErrNotFound ) |
37 | 43 |
{ |
44 |
iParamId = EPhoneParamIdGlobalNote; |
|
45 |
} |
|
46 |
||
47 |
// --------------------------------------------------------- |
|
48 |
// TPhoneCmdParamGlobalNote::SetType |
|
49 |
// Sets the global note type |
|
50 |
// (other items were commented in a header). |
|
51 |
// --------------------------------------------------------- |
|
52 |
// |
|
53 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetType( TAknGlobalNoteType aType ) |
|
54 |
{ |
|
55 |
iType = aType; |
|
56 |
} |
|
57 |
||
58 |
// --------------------------------------------------------- |
|
59 |
// TPhoneCmdParamGlobalNote::SetTextResourceId |
|
60 |
// Sets the global note resource ID |
|
61 |
// (other items were commented in a header). |
|
62 |
// --------------------------------------------------------- |
|
63 |
// |
|
64 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetTextResourceId( |
|
65 |
TInt aTextResourceId ) |
|
66 |
{ |
|
67 |
__ASSERT_DEBUG( aTextResourceId, |
|
68 |
Panic( EPhoneUtilsParameterNotInitialized ) ); |
|
69 |
iTextResourceId = aTextResourceId; |
|
70 |
} |
|
71 |
||
72 |
// --------------------------------------------------------- |
|
73 |
// TPhoneCmdParamGlobalNote::SetText |
|
74 |
// Sets the global note text |
|
75 |
// (other items were commented in a header). |
|
76 |
// --------------------------------------------------------- |
|
77 |
// |
|
78 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetText( |
|
79 |
const TDesC& aText ) |
|
80 |
{ |
|
81 |
iText.Set( aText ); |
|
82 |
} |
|
83 |
||
84 |
// --------------------------------------------------------- |
|
85 |
// TPhoneCmdParamGlobalNote::SetTone |
|
86 |
// Sets the global note tone |
|
87 |
// (other items were commented in a header). |
|
88 |
// --------------------------------------------------------- |
|
89 |
// |
|
90 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetTone( TInt aTone ) |
|
91 |
{ |
|
92 |
iTone = aTone; |
|
93 |
} |
|
94 |
||
95 |
// --------------------------------------------------------- |
|
96 |
// TPhoneCmdParamGlobalNote::SetWaitForReady |
|
97 |
// Sets the note to wait for completed |
|
98 |
// (other items were commented in a header). |
|
99 |
// --------------------------------------------------------- |
|
100 |
// |
|
101 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetWaitForReady( TBool aStatus ) |
|
102 |
{ |
|
103 |
iWaitforReady = aStatus; |
|
104 |
} |
|
105 |
||
106 |
// --------------------------------------------------------- |
|
107 |
// TPhoneCmdParamGlobalNote::SetSoftkeys |
|
108 |
// Sets the global note softkeys |
|
109 |
// (other items were commented in a header). |
|
110 |
// --------------------------------------------------------- |
|
111 |
// |
|
112 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetSoftkeys( TInt aSoftkeys ) |
|
113 |
{ |
|
114 |
iSoftkeys = aSoftkeys; |
|
115 |
} |
|
116 |
||
117 |
// --------------------------------------------------------- |
|
118 |
// TPhoneCmdParamGlobalNote::SetTimeout |
|
119 |
// Sets the timeout value for a note. |
|
120 |
// (other items were commented in a header). |
|
121 |
// --------------------------------------------------------- |
|
122 |
// |
|
123 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetTimeout( TInt aTimeout ) |
|
124 |
{ |
|
125 |
iTimeout = aTimeout; |
|
126 |
} |
|
127 |
||
128 |
// --------------------------------------------------------- |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
129 |
// TPhoneCmdParamGlobalNote::SetNotificationDialog |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
130 |
// Sets the notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
131 |
// (other items were commented in a header). |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
132 |
// --------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
133 |
// |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
134 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetNotificationDialog( |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
135 |
TBool aNotificationDialog ) |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
136 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
137 |
iNotificationDialog = aNotificationDialog; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
138 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
139 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
140 |
// --------------------------------------------------------- |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
141 |
// TPhoneCmdParamGlobalNote::SetCauseCode |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
142 |
// Sets the cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
143 |
// (other items were commented in a header). |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
144 |
// --------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
145 |
// |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
146 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetCauseCode( |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
147 |
TInt aCauseCode ) |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
148 |
{ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
149 |
iCauseCode = aCauseCode; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
150 |
} |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
151 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
152 |
// --------------------------------------------------------- |
37 | 153 |
// TPhoneCmdParamGlobalNote::Type |
154 |
// Returns the global note type |
|
155 |
// (other items were commented in a header). |
|
156 |
// --------------------------------------------------------- |
|
157 |
// |
|
158 |
EXPORT_C TAknGlobalNoteType TPhoneCmdParamGlobalNote::Type() const |
|
159 |
{ |
|
160 |
return iType; |
|
161 |
} |
|
162 |
||
163 |
// --------------------------------------------------------- |
|
164 |
// TPhoneCmdParamGlobalNote::TextResourceId |
|
165 |
// Returns the global note text resource ID |
|
166 |
// (other items were commented in a header). |
|
167 |
// --------------------------------------------------------- |
|
168 |
// |
|
169 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::TextResourceId() const |
|
170 |
{ |
|
171 |
return iTextResourceId; |
|
172 |
} |
|
173 |
||
174 |
// --------------------------------------------------------- |
|
175 |
// TPhoneCmdParamGlobalNote::Text |
|
176 |
// Returns the global note text |
|
177 |
// (other items were commented in a header). |
|
178 |
// --------------------------------------------------------- |
|
179 |
// |
|
180 |
EXPORT_C const TDesC& TPhoneCmdParamGlobalNote::Text() const |
|
181 |
{ |
|
182 |
return iText; |
|
183 |
} |
|
184 |
||
185 |
// --------------------------------------------------------- |
|
186 |
// TPhoneCmdParamGlobalNote::Tone |
|
187 |
// Returns the note tone |
|
188 |
// (other items were commented in a header). |
|
189 |
// --------------------------------------------------------- |
|
190 |
// |
|
191 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::Tone() const |
|
192 |
{ |
|
193 |
return iTone; |
|
194 |
} |
|
195 |
||
196 |
// --------------------------------------------------------- |
|
197 |
// TPhoneCmdParamGlobalNote::WaitForReady |
|
198 |
// Returns the status of wait for completed |
|
199 |
// (other items were commented in a header). |
|
200 |
// --------------------------------------------------------- |
|
201 |
// |
|
202 |
EXPORT_C TBool TPhoneCmdParamGlobalNote::WaitForReady() const |
|
203 |
{ |
|
204 |
return iWaitforReady; |
|
205 |
} |
|
206 |
||
207 |
// --------------------------------------------------------- |
|
208 |
// TPhoneCmdParamGlobalNote::Softkeys |
|
209 |
// Returns the note softkeys |
|
210 |
// (other items were commented in a header). |
|
211 |
// --------------------------------------------------------- |
|
212 |
// |
|
213 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::Softkeys() const |
|
214 |
{ |
|
215 |
return iSoftkeys; |
|
216 |
} |
|
217 |
||
218 |
// --------------------------------------------------------- |
|
219 |
// TPhoneCmdParamGlobalNote::Timeout |
|
220 |
// Returns the timeout value. |
|
221 |
// --------------------------------------------------------- |
|
222 |
// |
|
223 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::Timeout() const |
|
224 |
{ |
|
225 |
return iTimeout; |
|
226 |
} |
|
227 |
||
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
228 |
// --------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
229 |
// TPhoneCmdParamGlobalNote::NotificationDialog |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
230 |
// Returns the notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
231 |
// --------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
232 |
// |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
233 |
EXPORT_C TBool TPhoneCmdParamGlobalNote::NotificationDialog() const |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
234 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
235 |
return iNotificationDialog; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
236 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
237 |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
238 |
// --------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
239 |
// TPhoneCmdParamGlobalNote::CauseCode |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
240 |
// Returns the cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
241 |
// --------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
242 |
// |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
243 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::CauseCode() const |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
244 |
{ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
245 |
return iCauseCode; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
246 |
} |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
247 |
|
37 | 248 |
// End of File |