epoc32/include/mw/akntoolbarobserver.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/mw/akntoolbarobserver.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mw/akntoolbarobserver.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,62 @@
     1.4 -akntoolbarobserver.h
     1.5 +/*
     1.6 +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* 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
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:  Observer for avkon toolbar
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +
    1.24 +#ifndef __AKNTOOLBAROBSERVER_H__
    1.25 +#define __AKNTOOLBAROBSERVER_H__
    1.26 +
    1.27 +// INCLUDES
    1.28 +#include <e32def.h>
    1.29 +
    1.30 +// FORWARD DECLARATIONS
    1.31 +class CAknToolbar;
    1.32 +
    1.33 +// CLASS DECLARATION
    1.34 +
    1.35 +/**
    1.36 +*  The observer interface to handle toolbar events
    1.37 +*
    1.38 +*  @lib eikcoctl.lib
    1.39 +*  @since Series 60 3.1
    1.40 +*/
    1.41 +class MAknToolbarObserver
    1.42 +    {
    1.43 +    public:
    1.44 +        /**
    1.45 +         * Should be used to set the properties of some toolbar components 
    1.46 +         * before it is drawn.
    1.47 +         * @param aResourceId The resource ID for particular toolbar
    1.48 +         * @param aToolbar The toolbar object pointer
    1.49 +         */
    1.50 +        IMPORT_C virtual void DynInitToolbarL( TInt aResourceId, 
    1.51 +                                               CAknToolbar* aToolbar );
    1.52 +        
    1.53 +        /**
    1.54 +         * Handles toolbar events for a certain toolbar item.
    1.55 +         * @param aCommand The command ID of some toolbar item.
    1.56 +         */
    1.57 +        virtual void OfferToolbarEventL( TInt aCommand ) = 0;
    1.58 +    
    1.59 +    protected:
    1.60 +        IMPORT_C virtual TInt MAknToolbarObserver_Reserved_1();
    1.61 +        IMPORT_C virtual TInt MAknToolbarObserver_Reserved_2();
    1.62 +    };
    1.63 +    
    1.64 +#endif // __AKNTOOLBAROBSERVER_H__
    1.65 +
    1.66 +// end of file
    1.67 \ No newline at end of file