uifw/EikStd/coctlinc/touchtoolbardata.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 15:57:43 +0300
branchRCL_3
changeset 15 c52421ed5f07
parent 0 2f259fa3e83a
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2007 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:  Utility class for passing data between touchpane and toolbar.
*
*/


#ifndef __TOUCH_TOOLBAR_DATA_H__
#define __TOUCH_TOOLBAR_DATA_H__

#include <akntransitionutils.h>
  
// Data utility class for communication between the touchpane and the toolbar.
NONSHARABLE_CLASS( CTouchToolbarData ) : public MAknTransitionUtilsObserver
    {
    public:
    static TInt SetData( const CCoeControl* aControl, TRect aDemarcationRect,
                         TBool aDemarcationRectSet );
    static CTouchToolbarData* GetData( const CCoeControl* aControl );
    
    TRect& DemarcationRect();
    TBool DemarcationRectSet() const;    
    TBool BetweenRegisterAndBegin() const;
    TBool SelectPressed() const;
    
    void SetBetweenRegisterAndBegin( TBool aBetweenRegisterAndBegin );
    void SetSelectPressed( TBool aSelectPressed );
    void SetFocusedItem( CCoeControl* aItem );
    
    // From MAknTransitionUtilsObserver
    TInt AknTransitionCallback(TInt aEvent, TInt aState, const TDesC8* aParams);
    
    private:
    CTouchToolbarData();
    
    TRect iDemarcationRect;
    TBool iDemarcationRectSet;
    TBool iBetweenRegisterAndBegin;
    TBool iSelectPressed;
    CCoeControl* iFocusedItem;
    };

#endif // __TOUCH_TOOLBAR_DATA_H__