uifw/EikStd/coctlinc/touchtoolbardata.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Utility class for passing data between touchpane and toolbar.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __TOUCH_TOOLBAR_DATA_H__
       
    20 #define __TOUCH_TOOLBAR_DATA_H__
       
    21 
       
    22 #include <akntransitionutils.h>
       
    23   
       
    24 // Data utility class for communication between the touchpane and the toolbar.
       
    25 NONSHARABLE_CLASS( CTouchToolbarData ) : public MAknTransitionUtilsObserver
       
    26     {
       
    27     public:
       
    28     static TInt SetData( const CCoeControl* aControl, TRect aDemarcationRect,
       
    29                          TBool aDemarcationRectSet );
       
    30     static CTouchToolbarData* GetData( const CCoeControl* aControl );
       
    31     
       
    32     TRect& DemarcationRect();
       
    33     TBool DemarcationRectSet() const;    
       
    34     TBool BetweenRegisterAndBegin() const;
       
    35     TBool SelectPressed() const;
       
    36     
       
    37     void SetBetweenRegisterAndBegin( TBool aBetweenRegisterAndBegin );
       
    38     void SetSelectPressed( TBool aSelectPressed );
       
    39     void SetFocusedItem( CCoeControl* aItem );
       
    40     
       
    41     // From MAknTransitionUtilsObserver
       
    42     TInt AknTransitionCallback(TInt aEvent, TInt aState, const TDesC8* aParams);
       
    43     
       
    44     private:
       
    45     CTouchToolbarData();
       
    46     
       
    47     TRect iDemarcationRect;
       
    48     TBool iDemarcationRectSet;
       
    49     TBool iBetweenRegisterAndBegin;
       
    50     TBool iSelectPressed;
       
    51     CCoeControl* iFocusedItem;
       
    52     };
       
    53 
       
    54 #endif // __TOUCH_TOOLBAR_DATA_H__