diff -r 30f14686fb04 -r 2b1b11a301d2 homescreenapp/hsdomainmodel/inc/hswidgettoucharea.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/homescreenapp/hsdomainmodel/inc/hswidgettoucharea.h Tue Jul 06 14:06:53 2010 +0300 @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2009 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: +* +*/ + +#ifndef HSWIDGETTOUCHAREA_H +#define HSWIDGETTOUCHAREA_H + +#include + +#include "hstest_global.h" + +HOMESCREEN_TEST_CLASS(TestHsDomainModel) + +class HsWidgetHost; + +class HsWidgetTouchArea : public HbTouchArea +{ + Q_OBJECT + +public: + HsWidgetTouchArea(HsWidgetHost *widgetHost); + ~HsWidgetTouchArea(); + + bool sceneEvent(QEvent *event); + QPainterPath shape() const; + +protected: + void gestureEvent(QGestureEvent *event); + +private: + Q_DISABLE_COPY(HsWidgetTouchArea) + +private: + HsWidgetHost *mWidgetHost; + + HOMESCREEN_TEST_FRIEND_CLASS(TestHsDomainModel) +}; + +#endif // HSWIDGETTOUCHAREA_H