uifw/AvKon/inc/aknAnimCtrl.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // AknAnimCtrl.H
       
    20 //
       
    21 // Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
       
    22 //
       
    23 
       
    24 // Animation Control
       
    25 
       
    26 #include <coecntrl.h>
       
    27 
       
    28 #if !defined(__AKNANIMCTRL_H__)
       
    29 #define __AKNANIMCTRL_H__
       
    30 
       
    31 
       
    32 class CAknAnimationData;
       
    33 class CAknAnimationCtrl;
       
    34 
       
    35 
       
    36 NONSHARABLE_CLASS(CAknAnimationKeyWatcher) : public CCoeControl
       
    37 	{
       
    38 public:
       
    39 	static CAknAnimationKeyWatcher* NewL();
       
    40 	~CAknAnimationKeyWatcher();
       
    41 	void SetAnimationControl(CAknAnimationCtrl* aAnimationCtrl);
       
    42 private:
       
    43 	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
       
    44 	CAknAnimationKeyWatcher();
       
    45 	void ConstructL();
       
    46 private:
       
    47 	CAknAnimationCtrl* iAnimationCtrl;
       
    48 	};
       
    49 
       
    50 NONSHARABLE_CLASS(CAknAnimationCtrl) : public CCoeControl
       
    51 	{
       
    52 public:
       
    53 	static CAknAnimationCtrl* NewL(CWindowGc& aWindowGc, CFbsBitmap& aViewBitmap, CFbsBitmap& aOriginalBitmap, CAknAnimationData* aAnimationData);
       
    54 	~CAknAnimationCtrl();
       
    55 	TBool DrawStep();
       
    56 	void CancelAnimation();
       
    57 protected:
       
    58 	CAknAnimationCtrl(CWindowGc& aWindowGc, CFbsBitmap& aViewBitmap, CFbsBitmap& aOriginalBitmap, CAknAnimationData* aData);
       
    59 	void ConstructL();
       
    60 	void Draw(const TRect& aRect) const;
       
    61 private:
       
    62 	CWindowGc& iWindowGc;
       
    63 	CFbsBitmap& iViewBitmap;
       
    64 	CFbsBitmap& iOriginalBitmap;
       
    65 	TBool iCancelled;
       
    66 	CAknAnimationData* iAnimationData;
       
    67 	};
       
    68 
       
    69 
       
    70 #endif