|
1 /* |
|
2 * Copyright (c) 2006, 2008 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 the License "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 #include "WidgetUi.hrh" |
|
19 #include "WidgetUiWindow.h" |
|
20 #include "WidgetUiWindowView.h" |
|
21 #include "WidgetUiWindowContainer.h" |
|
22 #include "WidgetUiWindowManager.h" |
|
23 #include "WidgetUiDialogsProviderProxy.h" |
|
24 #include "WidgetRegistryConstants.h" |
|
25 #include "Browser_platform_variant.hrh" |
|
26 #ifdef BRDO_WRT_HS_FF |
|
27 #include "cpspublisher.h" |
|
28 #endif |
|
29 #include <AknUtils.h> |
|
30 #include <ImageConversion.h> |
|
31 #include <WidgetUi.rsg> |
|
32 |
|
33 #include <schemehandler.h> |
|
34 #include <InternetConnectionManager.h> |
|
35 #include "WidgetInstallerInternalCRKeys.h" |
|
36 #include <BrowserUiSDKCRKeys.h> |
|
37 #include <StringLoader.h> |
|
38 #include <centralrepository.h> |
|
39 #include <ApUtils.h> |
|
40 #include <AiwGenericParam.h> |
|
41 #include <ActiveApDb.h> |
|
42 #include <aknsdrawutils.h> |
|
43 #include "SWInstWidgetUid.h" |
|
44 |
|
45 // EXTERNAL DATA STRUCTURES |
|
46 |
|
47 // EXTERNAL FUNCTION PROTOTYPES |
|
48 |
|
49 // CONSTANTS |
|
50 static const TUint32 KDummyCommand = 0; |
|
51 |
|
52 const TUint KWmlNoDefaultAccessPoint = KMaxTUint; // see cenrep setting default -1 as int, here as uint |
|
53 const TUint KWmlNoDefaultSnapId = KMaxTUint; // see cenrep setting default -1 as int, here as uint |
|
54 _LIT( KSeparator, ":" ); |
|
55 // MACROS |
|
56 |
|
57 // LOCAL CONSTANTS AND MACROS |
|
58 |
|
59 // MODULE DATA STRUCTURES |
|
60 |
|
61 // LOCAL FUNCTION PROTOTYPES |
|
62 static HBufC* GetUlrL( |
|
63 RWidgetRegistryClientSession& aSession, |
|
64 const TUid& aUid ); |
|
65 |
|
66 // FORWARD DECLARATIONS |
|
67 |
|
68 // ============================= LOCAL FUNCTIONS =============================== |
|
69 |
|
70 HBufC* GetUlrL( |
|
71 RWidgetRegistryClientSession& aSession, |
|
72 const TUid& aUid ) |
|
73 { |
|
74 |
|
75 CWidgetPropertyValue* val( aSession.GetWidgetPropertyValueL( aUid, EMainHTML ) ); |
|
76 CleanupStack::PushL( val ); |
|
77 |
|
78 HBufC* res( static_cast< const TDesC& >( *val ).AllocL() ); |
|
79 CleanupStack::PopAndDestroy( val ); |
|
80 return res; |
|
81 } |
|
82 |
|
83 // ============================ MEMBER FUNCTIONS =============================== |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // CWidgetUiWindow::CWidgetUiWindow() |
|
87 // C++ constructor |
|
88 // |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 CWidgetUiWindow::CWidgetUiWindow( CWidgetUiWindowManager& aWindowManager, CCpsPublisher* aCpsPublisher ) |
|
92 : iWindowManager( aWindowManager ), iCpsPublisher( aCpsPublisher ), iNetworkAccessGrant(EInvalid), |
|
93 iPreferredOrientation(TBrCtlDefs::EOrientationUndefined), |
|
94 iIsCurrent(EFalse), iShowSoftkeys(EFalse), iWidgetLoaded(EFalse), |
|
95 iSchemeProcessing (EFalse), |
|
96 iBlanketPromptDisplayed (EFalse) |
|
97 { |
|
98 } |
|
99 |
|
100 // ----------------------------------------------------------------------------- |
|
101 // CWidgetUiWindow::ConstructL() |
|
102 // Symbian constructor |
|
103 // |
|
104 // ----------------------------------------------------------------------------- |
|
105 // |
|
106 void CWidgetUiWindow::ConstructL( const TUid& aUid ) |
|
107 { |
|
108 iUid = aUid; |
|
109 |
|
110 iPenEnabled = AknLayoutUtils::PenEnabled(); |
|
111 iShowSoftkeys = iPenEnabled; |
|
112 |
|
113 CWidgetUiWindowView* view = iWindowManager.View(); |
|
114 // view->ShowActivatedObject(EFalse); |
|
115 //TRect rect( view->Container()->Rect() ); |
|
116 |
|
117 TRect rect; |
|
118 RWidgetRegistryClientSession clientSession = iWindowManager.WidgetUIClientSession(); |
|
119 iUrl = GetUlrL( clientSession, aUid ); |
|
120 iWidgetUiObserver = CWidgetUiObserver::NewL( *this ); |
|
121 |
|
122 iWidgetUiDialogsProviderProxy = CWidgetUiDialogsProviderProxy::NewL(*(iWindowManager.DialogsProvider()), NULL, *this); |
|
123 |
|
124 iEngine = CreateBrowserControlL( |
|
125 view->Container(), |
|
126 rect, |
|
127 TBrCtlDefs::ECapabilityLoadHttpFw | |
|
128 TBrCtlDefs::ECapabilityCursorNavigation| |
|
129 TBrCtlDefs::ECapabilityWebKitLite | |
|
130 TBrCtlDefs::ECapabilityClientResolveEmbeddedURL, |
|
131 TBrCtlDefs::ECommandIdBase, |
|
132 iWidgetUiObserver, /* softkeys */ |
|
133 iWidgetUiObserver, /* link resolver */ |
|
134 this, /* special load observer */ |
|
135 iWidgetUiObserver, /* layout observer */ |
|
136 iWidgetUiDialogsProviderProxy, |
|
137 iWidgetUiObserver, /* window observer */ |
|
138 iWidgetUiObserver /* download observer */); |
|
139 |
|
140 iEngine->AddLoadEventObserverL( iWidgetUiObserver ); |
|
141 iEngine->AddStateChangeObserverL( view ); |
|
142 iEngine->SetComponentsToInheritVisibility(); |
|
143 |
|
144 iWidgetExtension = iEngine->CreateWidgetExtensionL( *this ); |
|
145 iWidgetExtension->SetParamL( TBrCtlDefs::EWidgetIdentifier, aUid.iUid ); |
|
146 |
|
147 iWidgetBundleId = HBufC::NewL(KWidgetRegistryVal); |
|
148 TPtr widgetBundleId = iWidgetBundleId->Des(); |
|
149 iWidgetPath = HBufC::NewL(KWidgetRegistryVal); |
|
150 TPtr widgetPath = iWidgetPath->Des(); |
|
151 |
|
152 clientSession.GetWidgetBundleId( aUid, widgetBundleId ); |
|
153 clientSession.GetWidgetPath( aUid, widgetPath ); |
|
154 |
|
155 iWidgetExtension->SetParamL( TBrCtlDefs::EWidgetBasePath, widgetPath ); |
|
156 iWidgetExtension->SetParamL( TBrCtlDefs::EWidgetBundleId, widgetBundleId ); |
|
157 |
|
158 // SetSoftkeysVisible(iPenEnabled);// default softkeys visible for touch and invisible for non-touch |
|
159 |
|
160 //iEngine->MakeVisible( EFalse ); |
|
161 |
|
162 // Updating Widget UI window state |
|
163 |
|
164 if(HasMiniviewL()) |
|
165 { |
|
166 SetWindowStateMiniViewL( EMiniViewEnabled ); |
|
167 } |
|
168 else |
|
169 { |
|
170 SetWindowStateMiniViewL( EMiniViewNotEnabled ); |
|
171 } |
|
172 |
|
173 iDlId = 0; |
|
174 } |
|
175 |
|
176 // ----------------------------------------------------------------------------- |
|
177 // CWidgetUiWindow::~CWidgetUiWindow() |
|
178 // Destructor |
|
179 // |
|
180 // ----------------------------------------------------------------------------- |
|
181 // |
|
182 CWidgetUiWindow::~CWidgetUiWindow() |
|
183 { |
|
184 if (iEngine && iWidgetUiObserver) |
|
185 { |
|
186 iEngine->RemoveLoadEventObserver( iWidgetUiObserver ); |
|
187 iEngine->RemoveStateChangeObserver( iWindowManager.View() ); |
|
188 } |
|
189 delete iEngine; |
|
190 delete iWidgetUiObserver; |
|
191 delete iUrl; |
|
192 delete iWidgetPath; |
|
193 delete iWidgetBundleId; |
|
194 delete iRightSoftKeyLabel; |
|
195 delete iLeftSoftKeyLabel; |
|
196 delete iWidgetUiDialogsProviderProxy; |
|
197 delete iSchemeHandler; |
|
198 } |
|
199 |
|
200 // ----------------------------------------------------------------------------- |
|
201 // CWidgetUiWindow::CbaGroup() |
|
202 // returns cba group |
|
203 // |
|
204 // ----------------------------------------------------------------------------- |
|
205 // |
|
206 CEikButtonGroupContainer* CWidgetUiWindow::CbaGroup() |
|
207 { |
|
208 return iWindowManager.View()->CbaGroup(); |
|
209 } |
|
210 |
|
211 // ----------------------------------------------------------------------------- |
|
212 // CWidgetUiWindow::OpenWindowL() |
|
213 // Creates CWidgetUiWindow object |
|
214 // |
|
215 // ----------------------------------------------------------------------------- |
|
216 // |
|
217 CWidgetUiWindow* CWidgetUiWindow::OpenWindowL( CWidgetUiWindowManager& aWindowManager, |
|
218 const TUid& aUid, CCpsPublisher* aCpsPublisher ) |
|
219 { |
|
220 CWidgetUiWindow* window = new ( ELeave ) CWidgetUiWindow( aWindowManager, aCpsPublisher ); |
|
221 CleanupStack::PushL( window ); |
|
222 window->ConstructL( aUid ); |
|
223 CleanupStack::Pop( window ); |
|
224 return window; |
|
225 } |
|
226 |
|
227 // ----------------------------------------------------------------------------- |
|
228 // CWidgetUiWindow::setWindowStateFullView() |
|
229 // Sets the widget state if widget is opened in full view |
|
230 // |
|
231 // ----------------------------------------------------------------------------- |
|
232 // |
|
233 void CWidgetUiWindow::SetWindowStateFullView( TBool aWidgetFullViewState) |
|
234 { |
|
235 iWidgetWindowState.iFullViewState = aWidgetFullViewState; |
|
236 } |
|
237 |
|
238 // ----------------------------------------------------------------------------- |
|
239 // CWidgetUiWindow::setWindowStateMiniView() |
|
240 // Sets the MiniView widget state |
|
241 // |
|
242 // ----------------------------------------------------------------------------- |
|
243 // |
|
244 /*void CWidgetUiWindow::SetWindowStateMiniView( TInt widgetMiniViewState ) |
|
245 { |
|
246 |
|
247 switch(widgetMiniViewState) |
|
248 { |
|
249 case 0: iWidgetWindowState.miniViewState = EMiniViewNotEnabled; |
|
250 break; |
|
251 case 1: iWidgetWindowState.miniViewState = EMiniViewEnabled; |
|
252 break; |
|
253 case 2: iWidgetWindowState.miniViewState = EPublishStart; |
|
254 break; |
|
255 case 3: iWidgetWindowState.miniViewState = EPublishSuspend; |
|
256 break; |
|
257 } |
|
258 } |
|
259 */ |
|
260 // ----------------------------------------------------------------------------- |
|
261 // CWidgetUiWindow::setWindowStateMiniView() |
|
262 // Sets the MiniView widget state |
|
263 // |
|
264 // ----------------------------------------------------------------------------- |
|
265 // |
|
266 void CWidgetUiWindow::SetWindowStateMiniViewL( TMiniViewState widgetMiniViewState) |
|
267 { |
|
268 iWidgetWindowState.iMiniViewState = widgetMiniViewState; |
|
269 if ( iWidgetWindowState.iMiniViewState == EPublishStart ) |
|
270 iWidgetExtension->SetParamL( TBrCtlDefs::EWidgetPublishState, ETrue); |
|
271 else |
|
272 iWidgetExtension->SetParamL( TBrCtlDefs::EWidgetPublishState, EFalse); |
|
273 } |
|
274 |
|
275 // ----------------------------------------------------------------------------- |
|
276 // CWidgetUiWindow::getWidgetMiniViewState() |
|
277 // Get the MiniView widget state |
|
278 // |
|
279 // ----------------------------------------------------------------------------- |
|
280 // |
|
281 TMiniViewState CWidgetUiWindow::WidgetMiniViewState() const |
|
282 { |
|
283 return iWidgetWindowState.iMiniViewState; |
|
284 } |
|
285 |
|
286 // ----------------------------------------------------------------------------- |
|
287 // CWidgetUiWindow::getWidgetFullViewState() |
|
288 // Get the FullView widget state |
|
289 // |
|
290 // ----------------------------------------------------------------------------- |
|
291 // |
|
292 |
|
293 TBool CWidgetUiWindow::WidgetFullViewState() const |
|
294 { |
|
295 return iWidgetWindowState.iFullViewState; |
|
296 } |
|
297 |
|
298 // ----------------------------------------------------------------------------- |
|
299 // CWidgetUiWindow::DialogMimeFileSelectLC() |
|
300 // Navigates through your file system and selects a file of specific mime type |
|
301 // |
|
302 // ----------------------------------------------------------------------------- |
|
303 // |
|
304 TBool CWidgetUiWindow::DialogMimeFileSelectLC(HBufC*& aSelectedFileName, |
|
305 const TDesC& aMimeType) |
|
306 { |
|
307 return iWindowManager.DialogsProvider()->DialogMimeFileSelectLC(aSelectedFileName, aMimeType); |
|
308 } |
|
309 |
|
310 // ----------------------------------------------------------------------------- |
|
311 // CWidgetUiWindow::SetSoftkeysVisible() |
|
312 // ----------------------------------------------------------------------------- |
|
313 // |
|
314 void CWidgetUiWindow::SetSoftkeysVisible(TBool aVisible) |
|
315 { |
|
316 iShowSoftkeys = (aVisible); |
|
317 |
|
318 if (CbaGroup()) |
|
319 { |
|
320 CbaGroup()->MakeVisible( iShowSoftkeys ); |
|
321 iWindowManager.View()->UpdateStatusPane(); |
|
322 CbaGroup()->DrawNow(); |
|
323 TRect clientRect = iWindowManager.View()->ClientRect(); |
|
324 // resize the container to take into account the size of the softkey labels |
|
325 // reduction is only needed for portrait mode (softkey on bottom) since landscape |
|
326 // mode softkeys don't take up screen real estate |
|
327 if (AknLayoutUtils::CbaLocation() == AknLayoutUtils::EAknCbaLocationBottom) |
|
328 { |
|
329 CbaGroup()->ReduceRect(clientRect); |
|
330 } |
|
331 //Check if the container rect needs change and then call setRect |
|
332 if(clientRect != iWindowManager.View()->Container()->Rect()) |
|
333 iWindowManager.View()->Container()->SetRect(clientRect); |
|
334 } |
|
335 } |
|
336 |
|
337 // ----------------------------------------------------------------------------- |
|
338 // CWidgetUiWindow::SetDisplayMode() |
|
339 // switch the display orientation to landscape or portrait |
|
340 // |
|
341 // ----------------------------------------------------------------------------- |
|
342 // |
|
343 void CWidgetUiWindow::SetDisplayMode( TBrCtlDefs::TBrCtlOrientation aOrientation ) |
|
344 { |
|
345 if (aOrientation != TBrCtlDefs::EOrientationUndefined) |
|
346 { |
|
347 iPreferredOrientation = aOrientation; |
|
348 } |
|
349 switch (iPreferredOrientation) |
|
350 { |
|
351 case TBrCtlDefs::EOrientationLandscape: |
|
352 { |
|
353 iWindowManager.SetDisplayLandscape(); |
|
354 break; |
|
355 } |
|
356 case TBrCtlDefs::EOrientationPortrait: |
|
357 { |
|
358 iWindowManager.SetDisplayPortrait(); |
|
359 break; |
|
360 } |
|
361 default: |
|
362 { |
|
363 iWindowManager.SetDisplayAuto(); |
|
364 break; |
|
365 } |
|
366 } |
|
367 } |
|
368 |
|
369 // ----------------------------------------------------------------------------- |
|
370 // CWidgetUiWindow::SetSoftKeyLabelL() |
|
371 // ----------------------------------------------------------------------------- |
|
372 // |
|
373 void CWidgetUiWindow::SetSoftKeyLabelL( TBrCtlKeySoftkey aKeySoftkey, const TDesC& aText) |
|
374 { |
|
375 TInt command; |
|
376 if (aKeySoftkey == EKeyLeft) |
|
377 { |
|
378 command = EAknSoftkeyOptions; |
|
379 // save the softkey label if it changes |
|
380 if (iLeftSoftKeyLabel && iLeftSoftKeyLabel->Compare(aText)) |
|
381 { |
|
382 delete iLeftSoftKeyLabel; |
|
383 iLeftSoftKeyLabel = NULL; |
|
384 } |
|
385 if (!iLeftSoftKeyLabel) |
|
386 { |
|
387 iLeftSoftKeyLabel = aText.AllocL(); |
|
388 } |
|
389 } |
|
390 else // EKeyRight |
|
391 { |
|
392 command = EAknSoftkeyExit; |
|
393 // save the softkey label if it changes |
|
394 if (iRightSoftKeyLabel && iRightSoftKeyLabel->Compare(aText)) |
|
395 { |
|
396 delete iRightSoftKeyLabel; |
|
397 iRightSoftKeyLabel = NULL; |
|
398 } |
|
399 if (!iRightSoftKeyLabel) |
|
400 { |
|
401 iRightSoftKeyLabel = aText.AllocL(); |
|
402 } |
|
403 } |
|
404 |
|
405 // make sure softkeys are visible before setting the text |
|
406 // CEikButtonGroupContainer::Current() returns NULL if softkeys are not visible |
|
407 SetSoftkeysVisible(ETrue); |
|
408 |
|
409 TInt err(KErrNotFound); |
|
410 // check to see if aText is a filename |
|
411 if (aText.Find(_L(".")) != KErrNotFound) |
|
412 { |
|
413 TRAP(err,SetSoftKeyImageL( command, aText )); |
|
414 } |
|
415 |
|
416 if (CbaGroup()) |
|
417 { |
|
418 if (err != KErrNone) |
|
419 { |
|
420 CbaGroup()->SetCommandL( command, aText ); |
|
421 } |
|
422 CbaGroup()->DrawDeferred(); |
|
423 } |
|
424 } |
|
425 |
|
426 // ----------------------------------------------------------------------------- |
|
427 // CWidgetUiWindow::SetSoftKeyImageL() |
|
428 // ----------------------------------------------------------------------------- |
|
429 // |
|
430 void CWidgetUiWindow::SetSoftKeyImageL(const TInt aCommand, const TDesC& aFilename) |
|
431 { |
|
432 HBufC* filename = HBufC::NewLC( iUrl->Length() + aFilename.Length() ); |
|
433 TPtr ptr(filename->Des()); |
|
434 TInt last = iUrl->LocateReverse('\\'); |
|
435 if (last > 0) |
|
436 { |
|
437 ptr.Append(iUrl->Left(++last)); |
|
438 } |
|
439 ptr.Append(aFilename); |
|
440 ptr.ZeroTerminate(); |
|
441 |
|
442 RFs& server( CCoeEnv::Static()->FsSession() ); |
|
443 |
|
444 CImageDecoder *iImageDecoder = CImageDecoder::FileNewL(server, |
|
445 ptr, |
|
446 CImageDecoder::EOptionAlwaysThread); |
|
447 |
|
448 TFrameInfo info = iImageDecoder->FrameInfo(); |
|
449 TRect rect = info.iFrameCoordsInPixels; |
|
450 |
|
451 CFbsBitmap* bitmap = new (ELeave) CFbsBitmap; |
|
452 CleanupStack::PushL(bitmap); |
|
453 CFbsBitmap* mask = new (ELeave) CFbsBitmap; |
|
454 CleanupStack::PushL(mask); |
|
455 |
|
456 bitmap->Create( rect.Size(), info.iFrameDisplayMode ); |
|
457 mask->Create( rect.Size(), EGray256 ); |
|
458 |
|
459 TRequestStatus Status; |
|
460 iImageDecoder->Convert( &Status, *bitmap, *mask ); |
|
461 User::WaitForRequest( Status ); |
|
462 delete iImageDecoder; |
|
463 iImageDecoder = NULL; |
|
464 //bitmap->Compress(); |
|
465 |
|
466 if (CbaGroup()) |
|
467 { |
|
468 CbaGroup()->SetCommandL( aCommand, *bitmap, *mask ); // FYI This hasn't been implemented |
|
469 } |
|
470 |
|
471 CleanupStack::PopAndDestroy(3);// filename,bitmap,mask |
|
472 } |
|
473 |
|
474 // ----------------------------------------------------------------------------- |
|
475 // CWidgetUiWindow::Relayout() |
|
476 // switch the display orientation based on preferred setting |
|
477 // |
|
478 // ----------------------------------------------------------------------------- |
|
479 // |
|
480 void CWidgetUiWindow::Relayout( ) |
|
481 { |
|
482 if (iIsCurrent) |
|
483 { |
|
484 SetDisplayMode(iPreferredOrientation); |
|
485 SetSoftkeysVisible(iShowSoftkeys); |
|
486 //iWindowManager.View()->Container()->SizeChanged(); |
|
487 } |
|
488 } |
|
489 |
|
490 // ----------------------------------------------------------------------------- |
|
491 // CWidgetUiWindow::SetCurrentWindow() |
|
492 // sets this window current or not and resets the previous state |
|
493 // |
|
494 // ----------------------------------------------------------------------------- |
|
495 // |
|
496 void CWidgetUiWindow::SetCurrentWindow( TBool aCurrent ) |
|
497 { |
|
498 if (iIsCurrent != aCurrent && iWindowManager.View()) |
|
499 { |
|
500 iIsCurrent = aCurrent; |
|
501 |
|
502 iWindowManager.View()->ShowActivatedObject(EFalse); // deactivates any open edit boxes |
|
503 |
|
504 if (aCurrent) |
|
505 { |
|
506 //UpdateCba(); |
|
507 Engine()->MakeVisible( iWidgetLoaded ); |
|
508 // redraw incase the orientation changed while in the background |
|
509 Relayout(); |
|
510 } |
|
511 else |
|
512 { |
|
513 // close the menu |
|
514 iWindowManager.View()->StopDisplayingMenuBar(); |
|
515 //deactivate optionsmenu flag |
|
516 iWindowManager.View()->DeActivateOptionsMenu(); |
|
517 Engine()->MakeVisible(EFalse);// hide the active widget |
|
518 } |
|
519 if ( !aCurrent ) |
|
520 iWidgetExtension->HandleCommandL ( (TInt)TBrCtlDefs::ECommandAppBackground + (TInt)TBrCtlDefs::ECommandIdBase ); |
|
521 |
|
522 if ( aCurrent ) |
|
523 { |
|
524 Engine()->HandleCommandL( (TInt)TBrCtlDefs::ECommandAppForeground + (TInt)TBrCtlDefs::ECommandIdBase); |
|
525 iWidgetExtension->HandleCommandL( (TInt)TBrCtlDefs::ECommandAppForeground + (TInt)TBrCtlDefs::ECommandIdBase ); |
|
526 } |
|
527 } |
|
528 } |
|
529 |
|
530 // ----------------------------------------------------------------------------- |
|
531 // CWidgetUiWindow::UpdateCba() |
|
532 // Restore the softkeys when the widget comes from the background |
|
533 // Reset the softkeys when the widget goes in the background |
|
534 // |
|
535 // ----------------------------------------------------------------------------- |
|
536 // |
|
537 void CWidgetUiWindow::UpdateCba( ) |
|
538 { |
|
539 if (iIsCurrent) |
|
540 { |
|
541 TBool showSoftkeys( iShowSoftkeys );// save state |
|
542 //CbaGroup()->MakeVisible( ETrue ); |
|
543 if (iRightSoftKeyLabel) |
|
544 { |
|
545 // restore the Right Softkey |
|
546 TRAP_IGNORE(iWidgetUiObserver->UpdateSoftkeyL(EKeyRight,*iRightSoftKeyLabel,KDummyCommand,EChangeReasonLoad)); |
|
547 } |
|
548 else |
|
549 { |
|
550 // reset the Right Softkey |
|
551 TRAP_IGNORE(iWidgetUiObserver->UpdateSoftkeyL(EKeyRight,KNullDesC,KDummyCommand,EChangeReasonLoad)); |
|
552 } |
|
553 |
|
554 // restore state |
|
555 if ( !showSoftkeys ) |
|
556 { |
|
557 CbaGroup()->MakeVisible( EFalse ); |
|
558 } |
|
559 } |
|
560 } |
|
561 |
|
562 // ----------------------------------------------------------------------------- |
|
563 // CWidgetUiWindow::ReloadWidget() |
|
564 // load the widget |
|
565 // |
|
566 // ----------------------------------------------------------------------------- |
|
567 // |
|
568 void CWidgetUiWindow::ReloadWidget( ) |
|
569 { |
|
570 SetWidgetLoaded(EFalse); |
|
571 TRAPD(err,iEngine->LoadFileL( iUrl->Des() )); |
|
572 if (err != KErrNone) |
|
573 { |
|
574 SetWidgetLoaded(ETrue); |
|
575 } |
|
576 } |
|
577 |
|
578 // ----------------------------------------------------------------------------- |
|
579 // CWidgetUiWindow::SetWidgetLoaded() |
|
580 // notification that the widget has finished loading |
|
581 // |
|
582 // ----------------------------------------------------------------------------- |
|
583 // |
|
584 void CWidgetUiWindow::SetWidgetLoaded( TBool aWidgetLoaded ) |
|
585 { |
|
586 iWidgetLoaded = aWidgetLoaded; |
|
587 RWidgetRegistryClientSession& widgetRegistry = iWindowManager.WidgetUIClientSession(); |
|
588 TInt fullView = widgetRegistry.IsWidgetInFullView( Uid() ); |
|
589 |
|
590 if (iWidgetLoaded && iIsCurrent && fullView ) |
|
591 { |
|
592 Engine()->MakeVisible( ETrue ); |
|
593 } |
|
594 } |
|
595 |
|
596 // ----------------------------------------------------------------------------- |
|
597 // CWidgetUiWindow::PublishSnapShot() |
|
598 // pubish offscreen bitmap to CPSpublisger |
|
599 // |
|
600 // ----------------------------------------------------------------------------- |
|
601 // |
|
602 void CWidgetUiWindow::PublishSnapShot() |
|
603 { |
|
604 if( iWidgetLoaded ) |
|
605 { |
|
606 #ifdef BRDO_WRT_HS_FF |
|
607 CFbsBitmap* bitmap( new CFbsBitmap() ); |
|
608 |
|
609 if ( bitmap && iCpsPublisher) |
|
610 { |
|
611 |
|
612 TRAP_IGNORE( |
|
613 (iEngine->TakeSnapshotL( *bitmap )); |
|
614 HBufC* publisherName = WidgetIdAndNameLC(); |
|
615 RDebug::Printf( "CWidgetUiWindow::PublishSnapShot" ); |
|
616 iCpsPublisher->PublishBitmapL( *bitmap, *publisherName ); |
|
617 CleanupStack::PopAndDestroy( publisherName ); |
|
618 ); |
|
619 |
|
620 |
|
621 delete bitmap; |
|
622 } |
|
623 #endif |
|
624 } |
|
625 } |
|
626 |
|
627 // ----------------------------------------------------------------------------- |
|
628 // CWidgetUiWindow::WidgetIdAndNameLC() |
|
629 // Constructs the publisher identifier |
|
630 // |
|
631 // ----------------------------------------------------------------------------- |
|
632 // |
|
633 HBufC* CWidgetUiWindow::WidgetIdAndNameLC() |
|
634 { |
|
635 |
|
636 HBufC* widgetBundleName = HBufC::NewLC( KWidgetRegistryVal ); |
|
637 TPtr bundleName( widgetBundleName->Des() ); |
|
638 GetBundleName( bundleName ); |
|
639 |
|
640 HBufC* name = HBufC::NewL( bundleName.Length() + KSeparator().Length() + iWidgetBundleId->Length() ); |
|
641 TPtr namePtr( name->Des()); |
|
642 namePtr.Append( *iWidgetBundleId ); |
|
643 namePtr.Append( KSeparator ); |
|
644 namePtr.Append( bundleName ); |
|
645 CleanupStack::PopAndDestroy( widgetBundleName ); |
|
646 CleanupStack::PushL( name ); |
|
647 return name; |
|
648 } |
|
649 |
|
650 // ----------------------------------------------------------------------------- |
|
651 // CWidgetUiWindow::GetBundleName() |
|
652 // Get Bundle name for the current widget Uid |
|
653 // |
|
654 // ----------------------------------------------------------------------------- |
|
655 // |
|
656 void CWidgetUiWindow::GetBundleName( TPtr& aBundleName ) |
|
657 { |
|
658 RWidgetRegistryClientSession clientSession = iWindowManager.WidgetUIClientSession(); |
|
659 |
|
660 clientSession.GetWidgetBundleName( iUid, aBundleName ); |
|
661 } |
|
662 |
|
663 // ----------------------------------------------------------------------------- |
|
664 // CWidgetUiWindow::HasMiniviewL() |
|
665 // Check whether widget has miniview or not |
|
666 // |
|
667 // ----------------------------------------------------------------------------- |
|
668 // |
|
669 TBool CWidgetUiWindow::HasMiniviewL() |
|
670 { |
|
671 RWidgetRegistryClientSession clientSession = iWindowManager.WidgetUIClientSession(); |
|
672 CWidgetPropertyValue* propValue = clientSession.GetWidgetPropertyValueL( iUid, EMiniViewEnable ); |
|
673 TInt hasMiniview = *propValue; |
|
674 return hasMiniview; |
|
675 } |
|
676 |
|
677 // ----------------------------------------------------------------------------- |
|
678 // CWidgetUiWindow::CheckNetworkAccessL() |
|
679 // Check Network access is allowed |
|
680 // |
|
681 // ----------------------------------------------------------------------------- |
|
682 // |
|
683 TBool CWidgetUiWindow::CheckNetworkAccessL() |
|
684 { |
|
685 // begin info.plist (declare EAllowNetworkAccess or EAllowFullAccess ?) |
|
686 RWidgetRegistryClientSession& widgetRegistry |
|
687 = iWindowManager.WidgetUIClientSession(); |
|
688 |
|
689 TInt networkAccess = *(widgetRegistry.GetWidgetPropertyValueL( |
|
690 iUid, EAllowNetworkAccess )); |
|
691 TInt fullAccess = *(widgetRegistry.GetWidgetPropertyValueL( |
|
692 iUid, EAllowFullAccess )); |
|
693 TInt blanketPermission = *(widgetRegistry.GetWidgetPropertyValueL( |
|
694 iUid, EBlanketPermGranted )); |
|
695 TInt inMiniView = widgetRegistry.IsWidgetInMiniView( iUid); |
|
696 if ( !( networkAccess || fullAccess ) || |
|
697 ( inMiniView && !blanketPermission )) |
|
698 { |
|
699 SetNetworkAccessGrant( EDeny ); |
|
700 User::Leave( KErrAccessDenied ); |
|
701 } |
|
702 SetNetworkAccessGrant( EAllow ); |
|
703 // end info.plist check |
|
704 return ETrue; |
|
705 } |
|
706 |
|
707 // ----------------------------------------------------------------------------- |
|
708 // CWidgetUiWindow::NetworkSecurityCheckL() |
|
709 // Prompt for netwrok security |
|
710 // |
|
711 // ----------------------------------------------------------------------------- |
|
712 // |
|
713 void CWidgetUiWindow::NetworkSecurityCheckL() |
|
714 { |
|
715 if ( EInvalid == NetworkAccessGrant() && CheckNetworkAccessL() |
|
716 && EDeny != NetworkAccessGrant()) |
|
717 { |
|
718 TInt prompt = 1 ; // default to prompt |
|
719 |
|
720 // CRepository KWidgetPomptForNetworkAccess: missing => prompt, |
|
721 // 0 => allow, 1 => prompt |
|
722 CRepository* rep( NULL ); |
|
723 |
|
724 // WidgetApp sharing WidgetInstaller cenrep |
|
725 TRAPD( cenrepError, rep = CRepository::NewL( TUid::Uid( KSWInstWidgetUIUid ) ) ); |
|
726 if ( !cenrepError ) |
|
727 { |
|
728 if ( rep->Get( KWidgetPomptForNetworkAccess, prompt ) ) |
|
729 { |
|
730 prompt = 1; // got error, force prompt |
|
731 } |
|
732 delete rep; |
|
733 } |
|
734 |
|
735 if ( prompt ) |
|
736 { |
|
737 CBrowserDialogsProvider* dialogProvider |
|
738 = iWindowManager.DialogsProvider(); |
|
739 TBool grant = EFalse; |
|
740 HBufC* message = StringLoader::LoadLC( R_WIDGETUI_NETWORK_ACCESS ); |
|
741 HBufC* yes = StringLoader::LoadLC( R_WIDGETUI_SOFTKEY_YES ); |
|
742 HBufC* no = StringLoader::LoadLC( R_WIDGETUI_SOFTKEY_NO ); |
|
743 grant = dialogProvider->DialogConfirmL( _L(""), *message, *yes, *no ); |
|
744 CleanupStack::PopAndDestroy( 3 ); |
|
745 // save prompt result for session |
|
746 SetNetworkAccessGrant( grant? EAllow : EDeny ); |
|
747 } |
|
748 else |
|
749 { |
|
750 // cenrep setting is no prompt for session |
|
751 SetNetworkAccessGrant( EAllow ); |
|
752 } |
|
753 } |
|
754 |
|
755 // after code above, which may have prompted user, perform a final access check |
|
756 if ( EAllow != NetworkAccessGrant( ) ) |
|
757 { |
|
758 User::Leave( KErrAccessDenied ); |
|
759 } |
|
760 } |
|
761 |
|
762 |
|
763 // ----------------------------------------------------------------------------- |
|
764 // CWidgetUiWindow::ConnectionManagement() |
|
765 // Set up the access point from browser setting |
|
766 // |
|
767 // ----------------------------------------------------------------------------- |
|
768 // |
|
769 void CWidgetUiWindow::ConnectionManagement() |
|
770 { |
|
771 if ( !iWindowManager.GetConnection()->Connected() ) |
|
772 { |
|
773 // setup a new connection depending on browser settings |
|
774 |
|
775 // 2.1. deal with access point settings |
|
776 TInt ask( 1 ); |
|
777 TInt wmlId( KWmlNoDefaultAccessPoint ); |
|
778 TInt snapId( KWmlNoDefaultSnapId ); |
|
779 CRepository* rep( NULL ); |
|
780 TRAPD( cenrepError, rep = CRepository::NewL( KCRUidBrowser ) ); |
|
781 if ( KErrNone == cenrepError ) |
|
782 { |
|
783 (void)rep->Get( KBrowserAccessPointSelectionMode, ask ); |
|
784 (void)rep->Get( KBrowserDefaultAccessPoint, wmlId ); |
|
785 (void)rep->Get( KBrowserNGDefaultSnapId, snapId ); |
|
786 } |
|
787 delete rep; |
|
788 if ( ask == EBrowserCenRepApSelModeDestination && |
|
789 ( snapId != KWmlNoDefaultSnapId) ) |
|
790 { |
|
791 iWindowManager.GetConnection()->SetRequestedSnap( snapId ); |
|
792 iWindowManager.GetConnection()->SetConnectionType( CMManager::EDestination ); |
|
793 } |
|
794 |
|
795 if ( !ask && (KWmlNoDefaultAccessPoint != wmlId) ) |
|
796 { |
|
797 // set the access point (ap) |
|
798 CApUtils* apUtils( NULL ); |
|
799 TInt apUtilError( KErrNone ); |
|
800 TRAP( apUtilError, |
|
801 apUtils = CApUtils::NewLC( *(iWindowManager.GetDb()->Database()) ); |
|
802 TUint32 iap = apUtils->IapIdFromWapIdL( wmlId ); |
|
803 CleanupStack::PopAndDestroy(); |
|
804 iWindowManager.GetConnection()->SetRequestedAP( iap ); |
|
805 ); |
|
806 } |
|
807 } |
|
808 } |
|
809 |
|
810 // ----------------------------------------------------------------------------- |
|
811 // CWidgetUiWindow::StartNetworkConnection() |
|
812 // Start network connection |
|
813 // |
|
814 // ----------------------------------------------------------------------------- |
|
815 // |
|
816 void CWidgetUiWindow::StartNetworkConnectionL(TBool* aNewConn) |
|
817 { |
|
818 *aNewConn = EFalse; |
|
819 if ( !iWindowManager.GetConnection()->Connected() ) |
|
820 { |
|
821 // 2.2. make a connection |
|
822 TInt connFailure = iWindowManager.GetConnection()->StartConnectionL( ETrue ); |
|
823 if (KErrCancel == connFailure) |
|
824 { |
|
825 // Only if user cancelled, do we treat this as |
|
826 // session deny permission to prevent repeated attempts |
|
827 SetNetworkAccessGrant( EDeny ); |
|
828 User::Leave( connFailure ); |
|
829 } |
|
830 else if ( KErrNone != connFailure ) |
|
831 { |
|
832 // Note: In case of no network signal, user may be prompted |
|
833 // multiple times to pick a connection. But that is likely the |
|
834 // least evil option, because they can pick another connection, |
|
835 // or hit cancel altogether in which case the KErrCancel block above |
|
836 // kicks in and sets a EDeny. |
|
837 User::Leave( connFailure ); |
|
838 } |
|
839 *aNewConn = ETrue; |
|
840 |
|
841 } |
|
842 } |
|
843 |
|
844 // ----------------------------------------------------------------------------- |
|
845 // CWidgetUiWindow::NetworkConnectionNeededL() |
|
846 // |
|
847 // ----------------------------------------------------------------------------- |
|
848 // |
|
849 void CWidgetUiWindow::NetworkConnectionNeededL( TInt* aConnectionPtr, |
|
850 TInt* aSockSvrHandle, |
|
851 TBool* aNewConn, |
|
852 TApBearerType* aBearerType ) |
|
853 |
|
854 { |
|
855 // default in case connection setup fails |
|
856 *aConnectionPtr = 0; |
|
857 |
|
858 if( EMiniViewEnabled == WidgetMiniViewState() || |
|
859 EMiniViewNotEnabled == WidgetMiniViewState()) |
|
860 { |
|
861 // step 1: session security check |
|
862 NetworkSecurityCheckL(); |
|
863 } |
|
864 else |
|
865 { |
|
866 CheckNetworkAccessL(); |
|
867 } |
|
868 if( EAllow == NetworkAccessGrant() ) |
|
869 { |
|
870 // step 2: manage the connection |
|
871 ConnectionManagement(); |
|
872 StartNetworkConnectionL(aNewConn); |
|
873 |
|
874 // retest connected status since above code may have started a connection |
|
875 if ( iWindowManager.GetConnection()->Connected() ) |
|
876 { |
|
877 // make leaving call first so if leaves, then do cleanup |
|
878 TRAPD( bearError, |
|
879 *aBearerType = iWindowManager.GetConnection()->CurrentBearerTypeL(); ); |
|
880 if ( bearError ) |
|
881 { |
|
882 // on error, close connection |
|
883 TRAP_IGNORE( iWindowManager.GetConnection()->StopConnectionL(); ); |
|
884 *aNewConn = EFalse; // force to false in case it was true |
|
885 } |
|
886 else |
|
887 { |
|
888 // non leaving code only |
|
889 *aConnectionPtr = reinterpret_cast<TInt>( &iWindowManager.GetConnection()->Connection() ); |
|
890 *aSockSvrHandle = iWindowManager.GetConnection()->SocketServer().Handle(); |
|
891 } |
|
892 } |
|
893 } |
|
894 } |
|
895 |
|
896 // ----------------------------------------------------------------------------- |
|
897 // CWidgetUiWindow::HandleRequestL() |
|
898 // |
|
899 // ----------------------------------------------------------------------------- |
|
900 // |
|
901 TBool CWidgetUiWindow::HandleRequestL( RArray<TUint>* aTypeArray, CDesCArrayFlat* aDesArray ) |
|
902 { |
|
903 TBool ret( ETrue ); |
|
904 TRAPD( err, DoHandleRequestL( aTypeArray, aDesArray ) ); |
|
905 if( KErrNone != err ) |
|
906 { |
|
907 iSchemeProcessing = EFalse; |
|
908 User::Leave( err ); |
|
909 } |
|
910 return ret; |
|
911 } |
|
912 |
|
913 // ----------------------------------------------------------------------------- |
|
914 // CWidgetUiWindow::HandleRequestL() |
|
915 // |
|
916 // ----------------------------------------------------------------------------- |
|
917 // |
|
918 |
|
919 TBool CWidgetUiWindow::HandleDownloadL(RArray<TUint>* aTypeArray, CDesCArrayFlat* aDesArray) |
|
920 { |
|
921 TBool paramFound( EFalse ); |
|
922 TPtrC fileName = ExtractBrCtlParam( |
|
923 EParamLocalFileName, |
|
924 aTypeArray, |
|
925 aDesArray, |
|
926 paramFound ); |
|
927 TPtrC contentType = ExtractBrCtlParam( |
|
928 EParamReceivedContentType, |
|
929 aTypeArray, |
|
930 aDesArray, |
|
931 paramFound ); |
|
932 |
|
933 HBufC8* contentType8 = 0; |
|
934 if ( !paramFound ) |
|
935 { |
|
936 contentType8 = KNullDesC8().AllocLC(); |
|
937 } |
|
938 else |
|
939 { |
|
940 contentType8 = HBufC8::NewLC( contentType.Length() ); |
|
941 // 16 bit buffer copied into 8 bit buffer. |
|
942 contentType8->Des().Copy( contentType ); |
|
943 } |
|
944 |
|
945 //Get the download Id of the transaction. |
|
946 //Because, resource loader will not delete the download |
|
947 //So after handling the download, it will be cleared. |
|
948 TPtrC dlId = ExtractBrCtlParam( |
|
949 EParamTransactionId, |
|
950 aTypeArray, |
|
951 aDesArray, |
|
952 paramFound ); |
|
953 |
|
954 TLex lex(dlId); |
|
955 User::LeaveIfError(lex.Val(iDlId)); |
|
956 |
|
957 TDataType dataType( *contentType8 ); |
|
958 CAiwGenericParamList* genericParamList = |
|
959 BrCtlParamList2GenericParamListL( aTypeArray, aDesArray ); |
|
960 CleanupStack::PushL( genericParamList ); |
|
961 RFile tempFile; |
|
962 |
|
963 iWindowManager.DocHandler().SetExitObserver(this); |
|
964 iWindowManager.DocHandler().OpenTempFileL( fileName, tempFile ); |
|
965 CleanupClosePushL( tempFile ); |
|
966 iWindowManager.DocHandler().OpenFileEmbeddedL( tempFile, |
|
967 dataType, |
|
968 *genericParamList ); |
|
969 |
|
970 |
|
971 CleanupStack::PopAndDestroy( &tempFile ); // tempFile |
|
972 CleanupStack::PopAndDestroy( genericParamList ); // genericParamList |
|
973 CleanupStack::PopAndDestroy( contentType8 ); // contentType8 |
|
974 return EFalse; |
|
975 } |
|
976 |
|
977 // --------------------------------------------------------- |
|
978 // CWidgetUiWindow::HandleServerAppExit() |
|
979 // |
|
980 // --------------------------------------------------------- |
|
981 // |
|
982 void CWidgetUiWindow::HandleServerAppExit( TInt /*aReason*/ ) |
|
983 { |
|
984 if(!iSchemeProcessing) |
|
985 { |
|
986 //Clear the download. |
|
987 iEngine->HandleDownloadCommandL(iDlId, TBrCtlDefs::EDownloadCmdCancel); |
|
988 iDlId = 0; |
|
989 return; |
|
990 } |
|
991 iSchemeProcessing = EFalse; |
|
992 } |
|
993 |
|
994 |
|
995 // ----------------------------------------------------------------------------- |
|
996 // CWidgetUiWindow::DoHandleRequestL |
|
997 // |
|
998 // ----------------------------------------------------------------------------- |
|
999 // |
|
1000 TBool CWidgetUiWindow::DoHandleRequestL( |
|
1001 RArray<TUint>* aTypeArray, CDesCArrayFlat* aDesArray ) |
|
1002 { |
|
1003 if( !iSchemeProcessing ) |
|
1004 { |
|
1005 iSchemeProcessing = ETrue; |
|
1006 TBool paramFound( EFalse ); |
|
1007 TPtrC requestUrl = ExtractBrCtlParam( |
|
1008 EParamRequestUrl, |
|
1009 aTypeArray, |
|
1010 aDesArray, |
|
1011 paramFound ); |
|
1012 |
|
1013 // pass to the CSchemaHandler |
|
1014 CSchemeHandler* newSH = CSchemeHandler::NewL( requestUrl ); |
|
1015 delete iSchemeHandler; |
|
1016 iSchemeHandler = newSH; |
|
1017 |
|
1018 // construct the current accesspoint |
|
1019 // if it's connected, always add it |
|
1020 if ( iWindowManager.GetConnection() && iWindowManager.GetConnection()->Connected() ) |
|
1021 { |
|
1022 CAiwGenericParamList* paramsList = CAiwGenericParamList::NewL(); |
|
1023 CleanupStack::PushL(paramsList); |
|
1024 TInt32 ap = iWindowManager.GetConnection()->CurrentAPId(); |
|
1025 |
|
1026 TAiwVariant paramVariant (ap); |
|
1027 TAiwGenericParam genericParam( EGenericParamAccessPoint, paramVariant ); |
|
1028 paramsList->AppendL (genericParam ); |
|
1029 |
|
1030 // set the parameter |
|
1031 iSchemeHandler->SetParameterList( paramsList ); |
|
1032 |
|
1033 CleanupStack::Pop(); |
|
1034 } |
|
1035 |
|
1036 iSchemeHandler->Observer( this ); |
|
1037 iSchemeHandler->HandleUrlEmbeddedL(); |
|
1038 } |
|
1039 |
|
1040 return ETrue; |
|
1041 } |
|
1042 |
|
1043 // --------------------------------------------------------- |
|
1044 // CWidgetUiWindow::ExtractBrCtlParam() |
|
1045 // --------------------------------------------------------- |
|
1046 // |
|
1047 TPtrC CWidgetUiWindow::ExtractBrCtlParam |
|
1048 ( TUint aParamTypeToFind, |
|
1049 RArray<TUint>* aTypeArray, |
|
1050 CDesCArrayFlat* aDesArray, |
|
1051 TBool& aParamFound ) const |
|
1052 { |
|
1053 |
|
1054 // initialize output parameter |
|
1055 aParamFound = EFalse; |
|
1056 TPtrC16 retParamValue; |
|
1057 |
|
1058 for( TInt j = 0; j < aTypeArray->Count(); j++ ) |
|
1059 { |
|
1060 const TUint paramType = (*aTypeArray)[j]; |
|
1061 if ( aParamTypeToFind == paramType ) |
|
1062 { |
|
1063 // That's we need |
|
1064 retParamValue.Set( aDesArray->MdcaPoint(j) ); |
|
1065 aParamFound = ETrue; // Indicate it in the out param |
|
1066 break; // break the loop - we found it |
|
1067 } |
|
1068 } |
|
1069 |
|
1070 return retParamValue; |
|
1071 } |
|
1072 |
|
1073 // --------------------------------------------------------- |
|
1074 // CWidgetUiWindow::BrCtlParamList2GenericParamListL() |
|
1075 // --------------------------------------------------------- |
|
1076 // |
|
1077 CAiwGenericParamList* CWidgetUiWindow::BrCtlParamList2GenericParamListL( |
|
1078 RArray<TUint>* /*aTypeArray*/, |
|
1079 CDesCArrayFlat* /*aDesArray*/ ) const |
|
1080 { |
|
1081 |
|
1082 //Creating generic param list |
|
1083 CAiwGenericParamList* genericParamList = CAiwGenericParamList::NewLC(); |
|
1084 |
|
1085 // Always add the access point, if currently connected |
|
1086 if( iWindowManager.GetConnection() && iWindowManager.GetConnection()->Connected() ) |
|
1087 { |
|
1088 TInt32 ap = iWindowManager.GetConnection()->CurrentAPId(); |
|
1089 TAiwVariant paramVariant (ap); |
|
1090 TAiwGenericParam genericParam( EGenericParamAccessPoint, paramVariant ); |
|
1091 genericParamList->AppendL (genericParam ); |
|
1092 } |
|
1093 CleanupStack::Pop( genericParamList ); // genericParamList |
|
1094 return genericParamList; |
|
1095 } |
|
1096 |
|
1097 // End of file |