williamr@2: /* williamr@2: * Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #if !defined(__EIKSBOBS_H__) williamr@2: #define __EIKSBOBS_H__ williamr@2: williamr@2: /** williamr@2: * williamr@2: * Scroll bar events enumerations williamr@2: * williamr@2: * Touch events for scroll bar. Reported to scroll bar observer through williamr@2: * HandleScrollEventL method. williamr@2: * williamr@2: * @since S60 0.9 williamr@2: */ williamr@2: enum TEikScrollEvent williamr@2: { williamr@2: EEikScrollLeft=1, /** stulys was tapped on the left arrow of the scroll bar */ williamr@2: EEikScrollUp, /** stulys was tapped on the up arrow of the scroll bar */ williamr@2: EEikScrollRight, /** stulys was tapped on the right arrow of the scroll bar */ williamr@2: EEikScrollDown, /** stulys was tapped on the down arrow of the scroll bar */ williamr@2: EEikScrollPageLeft, /** stulys was tapped on left side of the scroll bar */ williamr@2: EEikScrollPageUp, /** stulys was tapped above the scroll bar */ williamr@2: EEikScrollPageRight, /** stulys was tapped on right side of the scroll bar */ williamr@2: EEikScrollPageDown, /** stulys was tapped below the scroll bar */ williamr@2: EEikScrollHome, /** @deprecated */ williamr@2: EEikScrollTop, /** @deprecated */ williamr@2: EEikScrollEnd, /** @deprecated */ williamr@2: EEikScrollBottom, /** @deprecated */ williamr@2: EEikScrollThumbDragHoriz, /** stulys is down on scroll bar thumb and dragged */ williamr@2: EEikScrollThumbDragVert, /** stulys is down on scroll bar thumb and dragged */ williamr@2: EEikScrollThumbReleaseHoriz, /** scrollbar thumb drag is stopped */ williamr@2: EEikScrollThumbReleaseVert /** scrollbar thumb drag is stopped */ williamr@2: }; williamr@2: williamr@2: class CEikScrollBar; williamr@2: williamr@2: /** williamr@2: * Scroll bar observer interface williamr@2: * williamr@2: * Scroll bar clients can registers itself to observe scroll bar events. williamr@2: * The scroll bar sends an event to the observer every time a touch event williamr@2: * happens for the scroll bar. williamr@2: * williamr@2: * Clients should derive from MEikScrollBarObserver interface to get scroll bar events. williamr@2: * williamr@2: * @lib eikcoctl.lib williamr@2: * @since S60 0.9 williamr@2: */ williamr@2: williamr@2: class MEikScrollBarObserver williamr@2: { williamr@2: public: williamr@2: williamr@2: /** williamr@2: * Callback method for scroll bar events williamr@2: * williamr@2: * Scroll bar observer should implement this method to get scroll bar events. williamr@2: * williamr@2: * @since S60 0.9 williamr@2: * @param aScrollBar A pointer to scrollbar which created the event williamr@2: * @param aEventType The event occured on the scroll bar williamr@2: */ williamr@2: virtual void HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType)=0; williamr@2: }; williamr@2: williamr@2: #endif // __EIKSBOBS_H__