equal
deleted
inserted
replaced
31 class CTsFswEntry; |
31 class CTsFswEntry; |
32 class CAknStylusPopUpMenu; |
32 class CAknStylusPopUpMenu; |
33 class CAknQueryDialog; |
33 class CAknQueryDialog; |
34 class CTsEventControler; |
34 class CTsEventControler; |
35 class MTsDataChangeObserver; |
35 class MTsDataChangeObserver; |
|
36 class CAknLongTapAnimation; |
36 |
37 |
37 /** |
38 /** |
38 * Taskswitcher Fast Swap area UI. |
39 * Taskswitcher Fast Swap area UI. |
39 */ |
40 */ |
40 class CTsFastSwapArea: public CCoeControl, |
41 class CTsFastSwapArea: public CCoeControl, |
108 * Brings the app corresponding to the item at given index into foreground. |
109 * Brings the app corresponding to the item at given index into foreground. |
109 */ |
110 */ |
110 void SwitchToApp( TInt aIndex ); |
111 void SwitchToApp( TInt aIndex ); |
111 |
112 |
112 /** |
113 /** |
|
114 * Brings the app with the give Uid into foreground |
|
115 */ |
|
116 void SwitchToApp( const TUid& aUid ); |
|
117 |
|
118 /** |
113 * Sends close msg to given app. |
119 * Sends close msg to given app. |
114 * @param aIndex index |
120 * @param aIndex index |
115 * @param aSuppressRendering content is not refreshed if ETrue |
121 * @param aSuppressRendering content is not refreshed if ETrue |
116 */ |
122 */ |
117 void TryCloseAppL( TInt aIndex, TBool aSuppressRendering = EFalse ); |
123 void TryCloseAppL( TInt aIndex, TBool aSuppressRendering = EFalse ); |
220 |
226 |
221 /** |
227 /** |
222 * Checks if the app with the given window group id is closing |
228 * Checks if the app with the given window group id is closing |
223 */ |
229 */ |
224 TBool IsAppClosing( TInt aWgId ); |
230 TBool IsAppClosing( TInt aWgId ); |
|
231 |
|
232 /** |
|
233 * Checks if app with the given window group id is present on taskswitcher |
|
234 * list. |
|
235 */ |
|
236 TBool WgOnTaskList( TInt aWgId ); |
225 |
237 |
226 public: |
238 public: |
227 // from CCoeControl |
239 // from CCoeControl |
228 TInt CountComponentControls() const; |
240 TInt CountComponentControls() const; |
229 CCoeControl* ComponentControl(TInt aIndex) const; |
241 CCoeControl* ComponentControl(TInt aIndex) const; |
251 void TimerCompletedL( CTsFastSwapTimer* aSource ); |
263 void TimerCompletedL( CTsFastSwapTimer* aSource ); |
252 |
264 |
253 // new functions |
265 // new functions |
254 |
266 |
255 /** |
267 /** |
|
268 * Switches to another application. |
|
269 */ |
|
270 void SwitchToApp( TInt aWgId, const TUid& aUid ); |
|
271 |
|
272 /** |
256 * Makes a copy of the given bitmap. |
273 * Makes a copy of the given bitmap. |
257 * Also scaled to the given size, but maintains aspect ratio, |
274 * Also scaled to the given size, but maintains aspect ratio, |
258 * so the size of the returned bitmap may be less then aSize. |
275 * so the size of the returned bitmap may be less then aSize. |
259 */ |
276 */ |
260 CFbsBitmap* CopyBitmapL( TInt aFbsHandle, TSize aSize ); |
277 CFbsBitmap* CopyBitmapL( TInt aFbsHandle, TSize aSize ); |
394 * value of 1 indicates landscape |
411 * value of 1 indicates landscape |
395 * @return ETrue if screen resolution differs from vale returned by |
412 * @return ETrue if screen resolution differs from vale returned by |
396 * layout meta data functions. |
413 * layout meta data functions. |
397 */ |
414 */ |
398 TBool GetVariety( TInt& aVariety ); |
415 TBool GetVariety( TInt& aVariety ); |
399 |
416 |
|
417 /** |
|
418 * Cancels long tap animation. |
|
419 */ |
|
420 void CancelLongTapAnimation( TBool aDisablePopup = ETrue ); |
|
421 |
|
422 /** |
|
423 * Checks if long tap animation should be shown in |
|
424 * a given point. |
|
425 * |
|
426 * @param aHitPoint point where tapped event is registered |
|
427 * @return ETrue if long animation is allowed for that position |
|
428 */ |
|
429 TBool LongTapAnimForPos( const TPoint& aHitPoint ); |
|
430 |
400 private: // Data |
431 private: // Data |
401 |
432 |
402 // parent control |
433 // parent control |
403 CCoeControl& iParent; |
434 CCoeControl& iParent; |
404 |
435 |
432 TInt iMaxItemsOnScreen; |
463 TInt iMaxItemsOnScreen; |
433 |
464 |
434 // Tap event |
465 // Tap event |
435 TPointerEvent iTapEvent; |
466 TPointerEvent iTapEvent; |
436 CTsFastSwapTimer* iHighlightTimer; |
467 CTsFastSwapTimer* iHighlightTimer; |
|
468 TPoint iActivateOnPointerRelease; |
|
469 TBool iHandlePointerCandidate; |
437 |
470 |
438 // View offset position, used by animation physics |
471 // View offset position, used by animation physics |
439 TInt iLogicalViewPosOffset; |
472 TInt iLogicalViewPosOffset; |
440 |
473 |
441 // Grid scrolling |
474 // Grid scrolling |
453 TBool iKeyEvent; |
486 TBool iKeyEvent; |
454 |
487 |
455 // App closing handling |
488 // App closing handling |
456 RArray<TInt> iIsClosing; |
489 RArray<TInt> iIsClosing; |
457 TInt iWidgetClosingCount; |
490 TInt iWidgetClosingCount; |
|
491 TInt iPrevAppCount; |
|
492 |
|
493 // Long tap animation |
|
494 CAknLongTapAnimation* iLongTapAnimation; |
|
495 CTsFastSwapTimer* iLongTapAnimationTimer; |
|
496 TBool iLongTapAnimationRunning; |
458 }; |
497 }; |
459 |
498 |
460 #endif // TSFASTSWAPAREA_H |
499 #endif // TSFASTSWAPAREA_H |