diff -r 759dc5235cdb -r bf7eb7911fc5 emailuis/nmailui/inc/nmviewerwebview.h --- a/emailuis/nmailui/inc/nmviewerwebview.h Fri Jun 11 13:27:14 2010 +0300 +++ b/emailuis/nmailui/inc/nmviewerwebview.h Wed Jun 23 18:00:21 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_*/