williamr@2: /* williamr@2: * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: CFbsBitmap change observer williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #ifndef AKN_ICON_OBSERVER_H williamr@2: #define AKN_ICON_OBSERVER_H williamr@2: williamr@2: // INCLUDES williamr@2: williamr@2: // CONSTANTS williamr@2: williamr@2: // FORWARD DECLARATIONS williamr@2: class CFbsBitmap; williamr@2: williamr@2: // FUNCTION PROTOTYPES williamr@2: williamr@2: williamr@2: // CLASS DECLARATION williamr@2: williamr@2: /** williamr@2: * MAknIconObserver. williamr@2: */ williamr@2: class MAknIconObserver williamr@2: { williamr@2: public: williamr@2: williamr@2: /** williamr@2: * This is an abstract class for specifying an interface for williamr@2: * receiving notifications when an icon's frame buffer has been updated. williamr@2: * An object of derived class implementing this interface should be registered williamr@2: * for a given icon to the AknIcon framework using williamr@2: * function AknIconUtils::SetObserver(). williamr@2: * williamr@2: * AknIcon framework calls this function whenever the frame buffer of the observed icon williamr@2: * changes. This observer mechanism is mainly useful in animated icons cases. williamr@2: * The observer e.g. can redraw the icon on the screen when the frame of the animated williamr@2: * icon has changed. williamr@2: * williamr@2: * @since 2.8 williamr@2: * @param aBitmap bitmap or mask of the icon williamr@2: */ williamr@2: virtual void BitmapChanged(CFbsBitmap *aBitmap)=0; williamr@2: }; williamr@2: williamr@2: /* williamr@2: * williamr@2: * This class is internal and not intended for use. williamr@2: * williamr@2: */ williamr@2: class MAknIconChangeObserver williamr@2: { williamr@2: public: williamr@2: virtual void BitmapChanged()=0; williamr@2: }; williamr@2: williamr@2: #endif // AKN_ICON_OBSERVER_H williamr@2: williamr@2: // End of File