author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 23 Jun 2010 18:12:20 +0300 | |
changeset 45 | 6b911d05207e |
parent 37 | ba76fc04e6c2 |
child 46 | bc5a64e5bc3c |
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 ), |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
41 |
iNotificationDialog( EFalse ) |
37 | 42 |
{ |
43 |
iParamId = EPhoneParamIdGlobalNote; |
|
44 |
} |
|
45 |
||
46 |
// --------------------------------------------------------- |
|
47 |
// TPhoneCmdParamGlobalNote::SetType |
|
48 |
// Sets the global note type |
|
49 |
// (other items were commented in a header). |
|
50 |
// --------------------------------------------------------- |
|
51 |
// |
|
52 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetType( TAknGlobalNoteType aType ) |
|
53 |
{ |
|
54 |
iType = aType; |
|
55 |
} |
|
56 |
||
57 |
// --------------------------------------------------------- |
|
58 |
// TPhoneCmdParamGlobalNote::SetTextResourceId |
|
59 |
// Sets the global note resource ID |
|
60 |
// (other items were commented in a header). |
|
61 |
// --------------------------------------------------------- |
|
62 |
// |
|
63 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetTextResourceId( |
|
64 |
TInt aTextResourceId ) |
|
65 |
{ |
|
66 |
__ASSERT_DEBUG( aTextResourceId, |
|
67 |
Panic( EPhoneUtilsParameterNotInitialized ) ); |
|
68 |
iTextResourceId = aTextResourceId; |
|
69 |
} |
|
70 |
||
71 |
// --------------------------------------------------------- |
|
72 |
// TPhoneCmdParamGlobalNote::SetText |
|
73 |
// Sets the global note text |
|
74 |
// (other items were commented in a header). |
|
75 |
// --------------------------------------------------------- |
|
76 |
// |
|
77 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetText( |
|
78 |
const TDesC& aText ) |
|
79 |
{ |
|
80 |
iText.Set( aText ); |
|
81 |
} |
|
82 |
||
83 |
// --------------------------------------------------------- |
|
84 |
// TPhoneCmdParamGlobalNote::SetTone |
|
85 |
// Sets the global note tone |
|
86 |
// (other items were commented in a header). |
|
87 |
// --------------------------------------------------------- |
|
88 |
// |
|
89 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetTone( TInt aTone ) |
|
90 |
{ |
|
91 |
iTone = aTone; |
|
92 |
} |
|
93 |
||
94 |
// --------------------------------------------------------- |
|
95 |
// TPhoneCmdParamGlobalNote::SetWaitForReady |
|
96 |
// Sets the note to wait for completed |
|
97 |
// (other items were commented in a header). |
|
98 |
// --------------------------------------------------------- |
|
99 |
// |
|
100 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetWaitForReady( TBool aStatus ) |
|
101 |
{ |
|
102 |
iWaitforReady = aStatus; |
|
103 |
} |
|
104 |
||
105 |
// --------------------------------------------------------- |
|
106 |
// TPhoneCmdParamGlobalNote::SetSoftkeys |
|
107 |
// Sets the global note softkeys |
|
108 |
// (other items were commented in a header). |
|
109 |
// --------------------------------------------------------- |
|
110 |
// |
|
111 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetSoftkeys( TInt aSoftkeys ) |
|
112 |
{ |
|
113 |
iSoftkeys = aSoftkeys; |
|
114 |
} |
|
115 |
||
116 |
// --------------------------------------------------------- |
|
117 |
// TPhoneCmdParamGlobalNote::SetTimeout |
|
118 |
// Sets the timeout value for a note. |
|
119 |
// (other items were commented in a header). |
|
120 |
// --------------------------------------------------------- |
|
121 |
// |
|
122 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetTimeout( TInt aTimeout ) |
|
123 |
{ |
|
124 |
iTimeout = aTimeout; |
|
125 |
} |
|
126 |
||
127 |
// --------------------------------------------------------- |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
128 |
// TPhoneCmdParamGlobalNote::SetNotificationDialog |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
129 |
// Sets the notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
130 |
// (other items were commented in a header). |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
131 |
// --------------------------------------------------------- |
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 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetNotificationDialog( |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
134 |
TBool aNotificationDialog ) |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
135 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
136 |
iNotificationDialog = aNotificationDialog; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
137 |
} |
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 |
// --------------------------------------------------------- |
37 | 140 |
// TPhoneCmdParamGlobalNote::Type |
141 |
// Returns the global note type |
|
142 |
// (other items were commented in a header). |
|
143 |
// --------------------------------------------------------- |
|
144 |
// |
|
145 |
EXPORT_C TAknGlobalNoteType TPhoneCmdParamGlobalNote::Type() const |
|
146 |
{ |
|
147 |
return iType; |
|
148 |
} |
|
149 |
||
150 |
// --------------------------------------------------------- |
|
151 |
// TPhoneCmdParamGlobalNote::TextResourceId |
|
152 |
// Returns the global note text resource ID |
|
153 |
// (other items were commented in a header). |
|
154 |
// --------------------------------------------------------- |
|
155 |
// |
|
156 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::TextResourceId() const |
|
157 |
{ |
|
158 |
return iTextResourceId; |
|
159 |
} |
|
160 |
||
161 |
// --------------------------------------------------------- |
|
162 |
// TPhoneCmdParamGlobalNote::Text |
|
163 |
// Returns the global note text |
|
164 |
// (other items were commented in a header). |
|
165 |
// --------------------------------------------------------- |
|
166 |
// |
|
167 |
EXPORT_C const TDesC& TPhoneCmdParamGlobalNote::Text() const |
|
168 |
{ |
|
169 |
return iText; |
|
170 |
} |
|
171 |
||
172 |
// --------------------------------------------------------- |
|
173 |
// TPhoneCmdParamGlobalNote::Tone |
|
174 |
// Returns the note tone |
|
175 |
// (other items were commented in a header). |
|
176 |
// --------------------------------------------------------- |
|
177 |
// |
|
178 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::Tone() const |
|
179 |
{ |
|
180 |
return iTone; |
|
181 |
} |
|
182 |
||
183 |
// --------------------------------------------------------- |
|
184 |
// TPhoneCmdParamGlobalNote::WaitForReady |
|
185 |
// Returns the status of wait for completed |
|
186 |
// (other items were commented in a header). |
|
187 |
// --------------------------------------------------------- |
|
188 |
// |
|
189 |
EXPORT_C TBool TPhoneCmdParamGlobalNote::WaitForReady() const |
|
190 |
{ |
|
191 |
return iWaitforReady; |
|
192 |
} |
|
193 |
||
194 |
// --------------------------------------------------------- |
|
195 |
// TPhoneCmdParamGlobalNote::Softkeys |
|
196 |
// Returns the note softkeys |
|
197 |
// (other items were commented in a header). |
|
198 |
// --------------------------------------------------------- |
|
199 |
// |
|
200 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::Softkeys() const |
|
201 |
{ |
|
202 |
return iSoftkeys; |
|
203 |
} |
|
204 |
||
205 |
// --------------------------------------------------------- |
|
206 |
// TPhoneCmdParamGlobalNote::Timeout |
|
207 |
// Returns the timeout value. |
|
208 |
// --------------------------------------------------------- |
|
209 |
// |
|
210 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::Timeout() const |
|
211 |
{ |
|
212 |
return iTimeout; |
|
213 |
} |
|
214 |
||
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
215 |
// --------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
216 |
// TPhoneCmdParamGlobalNote::NotificationDialog |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
217 |
// Returns the notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
218 |
// --------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
219 |
// |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
220 |
EXPORT_C TBool TPhoneCmdParamGlobalNote::NotificationDialog() const |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
221 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
222 |
return iNotificationDialog; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
223 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
224 |
|
37 | 225 |
// End of File |