diff -r 000000000000 -r 05e9090e2422 uiresources_pub/scalable_icons_api/inc/AknIconObserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiresources_pub/scalable_icons_api/inc/AknIconObserver.h Thu Dec 17 09:14:12 2009 +0200 @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: CFbsBitmap change observer +* +*/ + + +#ifndef AKN_ICON_OBSERVER_H +#define AKN_ICON_OBSERVER_H + +// INCLUDES + +// CONSTANTS + +// FORWARD DECLARATIONS +class CFbsBitmap; + +// FUNCTION PROTOTYPES + + +// CLASS DECLARATION + +/** +* MAknIconObserver. +*/ +class MAknIconObserver + { +public: + + /** + * This is an abstract class for specifying an interface for + * receiving notifications when an icon's frame buffer has been updated. + * An object of derived class implementing this interface should be registered + * for a given icon to the AknIcon framework using + * function AknIconUtils::SetObserver(). + * + * AknIcon framework calls this function whenever the frame buffer of the observed icon + * changes. This observer mechanism is mainly useful in animated icons cases. + * The observer e.g. can redraw the icon on the screen when the frame of the animated + * icon has changed. + * + * @since 2.8 + * @param aBitmap bitmap or mask of the icon + */ + virtual void BitmapChanged(CFbsBitmap *aBitmap)=0; + }; + +/* +* +* This class is internal and not intended for use. +* +*/ +class MAknIconChangeObserver + { +public: + virtual void BitmapChanged()=0; + }; + +#endif // AKN_ICON_OBSERVER_H + +// End of File