homescreenapp/hsdomainmodel/inc/hswidgettoucharea.h
author hgs
Fri, 25 Jun 2010 19:19:22 +0300
changeset 62 341166945d65
child 69 87476091b3f5
permissions -rw-r--r--
201025

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