diff -r fb3763350a08 -r 4d54b72983ae taskswitcher/taskswitcherui/taskswitcherapp/inc/tseventcontrolerobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taskswitcher/taskswitcherui/taskswitcherapp/inc/tseventcontrolerobserver.h Tue Jan 26 11:48:23 2010 +0200 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2008 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: Define gesture observer interface + * +*/ + + +#ifndef TSGESTUREOBSERVER_H +#define TSGESTUREOBSERVER_H + +#include +#include + +/** + * MTsGestureObserver + * Define gesture observer interface + */ +NONSHARABLE_CLASS(MTsEventControlerObserver) + { +public: + /** + * Declare drag gesture handling. + * @param aOffset - drag distance + */ + virtual void MoveOffset(const TPoint& aOffset)=0; + + /** + * Declare tap gesture handling. + * @param aPoint - tap position + */ + virtual void TapL(const TPoint& aPoint)=0; + + /** + * Declare long tap gesture handling. + * @param aPoint - tap position + */ + virtual void LongTapL(const TPoint& aPoint)=0; + + /** + * Declare drag gesture handling. + * @param aEvent - drag event + */ + virtual void Drag(const AknTouchGestureFw::MAknTouchGestureFwDragEvent& aEvent) =0; + + /** + * Declare animation stop handling + */ + virtual void Stop()=0; + + /** + * Declare getter for view position + */ + virtual TPoint ViewPos() const =0; + }; + +#endif // TSGESTUREOBSERVER_H