homescreenapp/hsdomainmodel/inc/hswidgettoucharea.h
changeset 62 341166945d65
child 69 87476091b3f5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/homescreenapp/hsdomainmodel/inc/hswidgettoucharea.h	Fri Jun 25 19:19:22 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 <HbTouchArea>
+
+#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