browsercore/core/webnavigation.h
changeset 3 0954f5dd2cd0
parent 1 b0dd75e285d2
child 4 d5cdb6bc139d
equal deleted inserted replaced
1:b0dd75e285d2 3:0954f5dd2cd0
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef WEBNAVIGATION_H
       
    20 #define WEBNAVIGATION_H
       
    21 
       
    22 #include "brtglobal.h"
       
    23 
       
    24 #include <qobject.h>
       
    25 #include "wrtBrowserDefs.h"
       
    26 
       
    27 class QWebPage;
       
    28 
       
    29 namespace WRT {
       
    30 
       
    31 class WebTouchNavigation;
       
    32 class WebCursorNavigation;
       
    33 class WebDirectionalNavigation;
       
    34 class WebHtmlTabIndexedNavigation;
       
    35 
       
    36 class WRT_BROWSER_EXPORT WebNavigation : public QObject
       
    37 {
       
    38 Q_OBJECT
       
    39 public:
       
    40     WebNavigation(QWebPage* webPage,QObject* view);
       
    41     virtual ~WebNavigation();
       
    42     void setPage( QWebPage * page);
       
    43 
       
    44 public slots:
       
    45     void setNavigationMode();
       
    46 
       
    47 signals:
       
    48         void longPressEvent();// mouse long press signal   
       
    49         void focusElementChanged(wrtBrowserDefs::BrowserElementType &);
       
    50         void pageScrollPositionZero();
       
    51 
       
    52 protected:
       
    53     WebTouchNavigation* m_webTouchNavigation;
       
    54     WebCursorNavigation* m_webCursorNavigation;
       
    55     WebDirectionalNavigation* m_webDirectionalNavigation;
       
    56     WebHtmlTabIndexedNavigation* m_webHtmlTabIndexNavigation;
       
    57 private:
       
    58     QWebPage* m_webPage;
       
    59     QObject* m_view;
       
    60 };
       
    61 
       
    62 };
       
    63 
       
    64 #endif