diff -r 99bcbff212ad -r c2d07d913565 emailuis/nmailui/inc/nmviewerwebview.h --- a/emailuis/nmailui/inc/nmviewerwebview.h Fri May 28 13:56:43 2010 +0300 +++ b/emailuis/nmailui/inc/nmviewerwebview.h Thu Jun 10 16:14:05 2010 +0300 @@ -1,19 +1,19 @@ /* -* 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: -* -*/ + * Copyright (c) 2009-2010 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 NMVIEWERWEBVIEW_H_ #define NMVIEWERWEBVIEW_H_ @@ -24,8 +24,7 @@ class NmViewerView; class NmMessage; - -class QMouseEvent; +class QGestureEvent; class NmMailViewerWkContentItem { @@ -48,12 +47,22 @@ virtual QVariant loadResource (int type, const QUrl &name, NmId &partId, bool &isFetched); void setParentView(NmViewerView *parentView); void addContent(QString key, QVariant val, NmId partId, bool isFetched); - void sendMousePressEvent(QGraphicsSceneMouseEvent *event); - void sendMouseReleaseEvent(QGraphicsSceneMouseEvent *event); private: QMap mContent; - NmViewerView *mParentView; // Not owned + NmViewerView *mParentView; // Not owned +}; + +class NmEventFilterWK : public QObject +{ + Q_OBJECT +public: + NmEventFilterWK(QObject* parent = 0); +protected: + bool eventFilter(QObject* object, QEvent* event); + bool gestureEvent(QGestureEvent* event); +private: + Q_DISABLE_COPY(NmEventFilterWK) }; #endif /* NMVIEWERWEBVIEW_H_*/