|
1 /* |
|
2 * Copyright (c) 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: Global discreet popup data class. |
|
15 * |
|
16 */ |
|
17 |
|
18 // ======== MEMBER FUNCTIONS ======== |
|
19 |
|
20 // --------------------------------------------------------------------------- |
|
21 // TAknDiscreetPopupData::TAknDiscreetPopupData |
|
22 // --------------------------------------------------------------------------- |
|
23 // |
|
24 TAknDiscreetPopupData::TAknDiscreetPopupData() |
|
25 : iType( EAknPopupTypeUndefined ) |
|
26 { |
|
27 } |
|
28 |
|
29 |
|
30 // --------------------------------------------------------------------------- |
|
31 // TAknDiscreetPopupData::Type |
|
32 // --------------------------------------------------------------------------- |
|
33 // |
|
34 const TInt TAknDiscreetPopupData::Type() |
|
35 { |
|
36 return iType; |
|
37 } |
|
38 |
|
39 |
|
40 // --------------------------------------------------------------------------- |
|
41 // TAknDiscreetPopupCancelRequestData::TAknDiscreetPopupCancelRequestData |
|
42 // --------------------------------------------------------------------------- |
|
43 // |
|
44 TAknDiscreetPopupCancelRequestData::TAknDiscreetPopupCancelRequestData() |
|
45 { |
|
46 iType = EAknPopupTypeCancelRequest; |
|
47 } |
|
48 |
|
49 |
|
50 // --------------------------------------------------------------------------- |
|
51 // TAknDiscreetPopupCancelRequestData::StatusHandle |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 const TUint& TAknDiscreetPopupCancelRequestData::StatusHandle() |
|
55 { |
|
56 return iStatusHandle; |
|
57 } |
|
58 |
|
59 |
|
60 // --------------------------------------------------------------------------- |
|
61 // TAknDiscreetPopupLaunchData::AppUid |
|
62 // --------------------------------------------------------------------------- |
|
63 // |
|
64 const TUid& TAknDiscreetPopupLaunchData::AppUid() |
|
65 { |
|
66 return iAppUid; |
|
67 } |
|
68 |
|
69 |
|
70 // --------------------------------------------------------------------------- |
|
71 // TAknDiscreetPopupLaunchData::ViewUid |
|
72 // --------------------------------------------------------------------------- |
|
73 // |
|
74 const TUid& TAknDiscreetPopupLaunchData::ViewUid() |
|
75 { |
|
76 return iViewUid; |
|
77 } |
|
78 |
|
79 |
|
80 // --------------------------------------------------------------------------- |
|
81 // TAknDiscreetPopupLaunchData::Action |
|
82 // --------------------------------------------------------------------------- |
|
83 // |
|
84 const TBool& TAknDiscreetPopupLaunchData::Action() |
|
85 { |
|
86 return iAction; |
|
87 } |
|
88 |
|
89 |
|
90 // --------------------------------------------------------------------------- |
|
91 // TAknDiscreetPopupLaunchData::PopupId |
|
92 // --------------------------------------------------------------------------- |
|
93 // |
|
94 const TInt TAknDiscreetPopupLaunchData::PopupId() |
|
95 { |
|
96 return iPopupId; |
|
97 } |
|
98 |
|
99 |
|
100 // --------------------------------------------------------------------------- |
|
101 // TAknDiscreetPopupParamData::TAknDiscreetPopupParamData |
|
102 // --------------------------------------------------------------------------- |
|
103 // |
|
104 TAknDiscreetPopupParamData::TAknDiscreetPopupParamData() |
|
105 { |
|
106 iType = EAknPopupTypeParam; |
|
107 } |
|
108 |
|
109 // --------------------------------------------------------------------------- |
|
110 // TAknDiscreetPopupParamData::TitleText |
|
111 // --------------------------------------------------------------------------- |
|
112 // |
|
113 const TDesC& TAknDiscreetPopupParamData::TitleText() |
|
114 { |
|
115 return iTitleText; |
|
116 } |
|
117 |
|
118 |
|
119 // --------------------------------------------------------------------------- |
|
120 // TAknDiscreetPopupParamData::BodyText |
|
121 // --------------------------------------------------------------------------- |
|
122 // |
|
123 const TDesC& TAknDiscreetPopupParamData::BodyText() |
|
124 { |
|
125 return iBodyText; |
|
126 } |
|
127 |
|
128 |
|
129 // --------------------------------------------------------------------------- |
|
130 // TAknDiscreetPopupParamData::SkinId |
|
131 // --------------------------------------------------------------------------- |
|
132 // |
|
133 const TAknsItemID& TAknDiscreetPopupParamData::SkinId() |
|
134 { |
|
135 return iSkinId; |
|
136 } |
|
137 |
|
138 |
|
139 // --------------------------------------------------------------------------- |
|
140 // TAknDiscreetPopupParamData::BitmapFile |
|
141 // --------------------------------------------------------------------------- |
|
142 // |
|
143 const TDesC& TAknDiscreetPopupParamData::BitmapFile() |
|
144 { |
|
145 return iBitmapFile; |
|
146 } |
|
147 |
|
148 |
|
149 // --------------------------------------------------------------------------- |
|
150 // TAknDiscreetPopupParamData::BitmapId |
|
151 // --------------------------------------------------------------------------- |
|
152 // |
|
153 const TInt TAknDiscreetPopupParamData::BitmapId() |
|
154 { |
|
155 return iBitmapId; |
|
156 } |
|
157 |
|
158 |
|
159 // --------------------------------------------------------------------------- |
|
160 // TAknDiscreetPopupParamData::MaskId |
|
161 // --------------------------------------------------------------------------- |
|
162 // |
|
163 const TInt TAknDiscreetPopupParamData::MaskId() |
|
164 { |
|
165 return iMaskId; |
|
166 } |
|
167 |
|
168 |
|
169 // --------------------------------------------------------------------------- |
|
170 // TAknDiscreetPopupParamData::Flags |
|
171 // --------------------------------------------------------------------------- |
|
172 // |
|
173 const TInt TAknDiscreetPopupParamData::Flags() |
|
174 { |
|
175 return iFlags; |
|
176 } |
|
177 |
|
178 |
|
179 // --------------------------------------------------------------------------- |
|
180 // TAknDiscreetPopupResourceData::TAknDiscreetPopupResourceData |
|
181 // --------------------------------------------------------------------------- |
|
182 // |
|
183 TAknDiscreetPopupResourceData::TAknDiscreetPopupResourceData() |
|
184 { |
|
185 iType = EAknPopupTypeResource; |
|
186 } |
|
187 |
|
188 |
|
189 // --------------------------------------------------------------------------- |
|
190 // TAknDiscreetPopupResourceData::ResourceFile |
|
191 // --------------------------------------------------------------------------- |
|
192 // |
|
193 const TDesC& TAknDiscreetPopupResourceData::ResourceFile() |
|
194 { |
|
195 return iResourceFile; |
|
196 } |
|
197 |
|
198 |
|
199 // --------------------------------------------------------------------------- |
|
200 // TAknDiscreetPopupResourceData::ResourceId |
|
201 // --------------------------------------------------------------------------- |
|
202 // |
|
203 const TInt TAknDiscreetPopupResourceData::ResourceId() |
|
204 { |
|
205 return iResourceId; |
|
206 } |
|
207 |
|
208 // --------------------------------------------------------------------------- |
|
209 // TAknDiscreetPopupRectData::TAknDiscreetPopupRectData |
|
210 // --------------------------------------------------------------------------- |
|
211 // |
|
212 TAknDiscreetPopupRectData::TAknDiscreetPopupRectData(const TRect& aRect) |
|
213 { |
|
214 iType = EAknPopupTypeQueryInUseRect; |
|
215 iRect = aRect; |
|
216 } |
|
217 |
|
218 // --------------------------------------------------------------------------- |
|
219 // TAknDiscreetPopupResourceData::Rect |
|
220 // --------------------------------------------------------------------------- |
|
221 // |
|
222 const TRect TAknDiscreetPopupRectData::Rect() |
|
223 { |
|
224 return iRect; |
|
225 } |