emailuis/nmailuiwidgets/inc/nmbaseviewscrollarea.h
author hgs
Fri, 23 Jul 2010 19:09:50 +0300
changeset 56 15bc1d5d6267
parent 18 578830873419
permissions -rw-r--r--
201029

/*
* 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: Class for handling the background scrollarea of the
* mail editor and viewer
*
*/

#ifndef NMBASEVIEWSCROLLAREA_H_
#define NMBASEVIEWSCROLLAREA_H_

#include <hbscrollarea.h>
#include "nmailuiwidgetsdef.h"

class QGraphicsItem;

class NMAILUIWIDGETS_EXPORT NmBaseViewScrollArea : public HbScrollArea
{
    Q_OBJECT
public:
    NmBaseViewScrollArea(QGraphicsItem *parentView=0);
    virtual ~NmBaseViewScrollArea();

signals:
    void handleMousePressEvent(QGraphicsSceneMouseEvent *event);
    void handleMouseReleaseEvent(QGraphicsSceneMouseEvent *event);
    void handleMouseMoveEvent(QGraphicsSceneMouseEvent *event);
    void handleLongPressGesture(const QPointF &point);

public slots:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event);

protected:
    void longPressGesture(const QPointF &point);
};


#endif /* NMBASEVIEWSCROLLAREA_H_ */