homescreenapp/hsdomainmodel/inc/hswidgettoucharea.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 14:06:53 +0300
changeset 61 2b1b11a301d2
child 69 87476091b3f5
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* 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