author | hgs |
Fri, 17 Sep 2010 17:09:12 +0300 | |
changeset 74 | d1c62c765e48 |
parent 53 | 22cc52eade9b |
child 76 | cfea66083b62 |
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(), |
|
53 | 34 |
iType( EPhoneNotificationDialog ), |
37 | 35 |
iTextResourceId( 0 ), |
36 |
iText( KNullDesC ), |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
37 |
iTimeout( 0 ), |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
38 |
iNotificationDialog( EFalse ), |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
39 |
iCauseCode( KErrNotFound ) |
37 | 40 |
{ |
41 |
iParamId = EPhoneParamIdGlobalNote; |
|
42 |
} |
|
43 |
||
44 |
// --------------------------------------------------------- |
|
45 |
// TPhoneCmdParamGlobalNote::SetType |
|
46 |
// Sets the global note type |
|
47 |
// (other items were commented in a header). |
|
48 |
// --------------------------------------------------------- |
|
49 |
// |
|
53 | 50 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetType( /*TAknGlobalNoteType*/ PhoneNotificationType aType ) |
37 | 51 |
{ |
52 |
iType = aType; |
|
53 |
} |
|
54 |
||
55 |
// --------------------------------------------------------- |
|
56 |
// TPhoneCmdParamGlobalNote::SetTextResourceId |
|
57 |
// Sets the global note resource ID |
|
58 |
// (other items were commented in a header). |
|
59 |
// --------------------------------------------------------- |
|
60 |
// |
|
61 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetTextResourceId( |
|
62 |
TInt aTextResourceId ) |
|
63 |
{ |
|
64 |
__ASSERT_DEBUG( aTextResourceId, |
|
65 |
Panic( EPhoneUtilsParameterNotInitialized ) ); |
|
66 |
iTextResourceId = aTextResourceId; |
|
67 |
} |
|
68 |
||
69 |
// --------------------------------------------------------- |
|
70 |
// TPhoneCmdParamGlobalNote::SetText |
|
71 |
// Sets the global note text |
|
72 |
// (other items were commented in a header). |
|
73 |
// --------------------------------------------------------- |
|
74 |
// |
|
75 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetText( |
|
76 |
const TDesC& aText ) |
|
77 |
{ |
|
78 |
iText.Set( aText ); |
|
79 |
} |
|
80 |
||
81 |
// --------------------------------------------------------- |
|
82 |
// TPhoneCmdParamGlobalNote::SetTimeout |
|
83 |
// Sets the timeout value for a note. |
|
84 |
// (other items were commented in a header). |
|
85 |
// --------------------------------------------------------- |
|
86 |
// |
|
87 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetTimeout( TInt aTimeout ) |
|
88 |
{ |
|
89 |
iTimeout = aTimeout; |
|
90 |
} |
|
91 |
||
92 |
// --------------------------------------------------------- |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
93 |
// TPhoneCmdParamGlobalNote::SetNotificationDialog |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
94 |
// Sets the notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
95 |
// (other items were commented in a header). |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
96 |
// --------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
97 |
// |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
98 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetNotificationDialog( |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
99 |
TBool aNotificationDialog ) |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
100 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
101 |
iNotificationDialog = aNotificationDialog; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
102 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
103 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
104 |
// --------------------------------------------------------- |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
105 |
// TPhoneCmdParamGlobalNote::SetCauseCode |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
106 |
// Sets the cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
107 |
// (other items were commented in a header). |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
108 |
// --------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
109 |
// |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
110 |
EXPORT_C void TPhoneCmdParamGlobalNote::SetCauseCode( |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
111 |
TInt aCauseCode ) |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
112 |
{ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
113 |
iCauseCode = aCauseCode; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
114 |
} |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
115 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
116 |
// --------------------------------------------------------- |
37 | 117 |
// TPhoneCmdParamGlobalNote::Type |
118 |
// Returns the global note type |
|
119 |
// (other items were commented in a header). |
|
120 |
// --------------------------------------------------------- |
|
121 |
// |
|
53 | 122 |
EXPORT_C /*TAknGlobalNoteType*/ PhoneNotificationType TPhoneCmdParamGlobalNote::Type() const |
37 | 123 |
{ |
124 |
return iType; |
|
125 |
} |
|
126 |
||
127 |
// --------------------------------------------------------- |
|
128 |
// TPhoneCmdParamGlobalNote::TextResourceId |
|
129 |
// Returns the global note text resource ID |
|
130 |
// (other items were commented in a header). |
|
131 |
// --------------------------------------------------------- |
|
132 |
// |
|
133 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::TextResourceId() const |
|
134 |
{ |
|
135 |
return iTextResourceId; |
|
136 |
} |
|
137 |
||
138 |
// --------------------------------------------------------- |
|
139 |
// TPhoneCmdParamGlobalNote::Text |
|
140 |
// Returns the global note text |
|
141 |
// (other items were commented in a header). |
|
142 |
// --------------------------------------------------------- |
|
143 |
// |
|
144 |
EXPORT_C const TDesC& TPhoneCmdParamGlobalNote::Text() const |
|
145 |
{ |
|
146 |
return iText; |
|
147 |
} |
|
148 |
||
149 |
// --------------------------------------------------------- |
|
150 |
// TPhoneCmdParamGlobalNote::Timeout |
|
151 |
// Returns the timeout value. |
|
152 |
// --------------------------------------------------------- |
|
153 |
// |
|
154 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::Timeout() const |
|
155 |
{ |
|
156 |
return iTimeout; |
|
157 |
} |
|
158 |
||
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
159 |
// --------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
160 |
// TPhoneCmdParamGlobalNote::NotificationDialog |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
161 |
// Returns the notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
162 |
// --------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
163 |
// |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
164 |
EXPORT_C TBool TPhoneCmdParamGlobalNote::NotificationDialog() const |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
165 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
166 |
return iNotificationDialog; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
167 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
168 |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
169 |
// --------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
170 |
// TPhoneCmdParamGlobalNote::CauseCode |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
171 |
// Returns the cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
172 |
// --------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
173 |
// |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
174 |
EXPORT_C TInt TPhoneCmdParamGlobalNote::CauseCode() const |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
175 |
{ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
176 |
return iCauseCode; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
177 |
} |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
178 |
|
37 | 179 |
// End of File |