1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
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 * |
4 * |
9 * Initial Contributors: |
5 * This program is free software: you can redistribute it and/or modify |
10 * Nokia Corporation - initial contribution. |
6 * it under the terms of the GNU Lesser General Public License as published by |
|
7 * the Free Software Foundation, version 2.1 of the License. |
|
8 * |
|
9 * This program is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 * GNU Lesser General Public License for more details. |
11 * |
13 * |
12 * Contributors: |
14 * You should have received a copy of the GNU Lesser General Public License |
|
15 * along with this program. If not, |
|
16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
13 * |
17 * |
14 * Description: |
18 * Description: |
15 * |
19 * |
16 */ |
20 */ |
17 |
21 |
18 |
22 |
19 |
23 #include "webpagecontroller.h" |
20 #include "WrtPageManager.h" |
|
21 #include "FlowInterface.h" |
24 #include "FlowInterface.h" |
22 #include "HistoryView_p.h" |
25 #include "HistoryView_p.h" |
23 #include "HistoryView.h" |
26 #include "HistoryView.h" |
24 #include "HistoryViewEventContext.h" |
27 #include "HistoryViewEventContext.h" |
25 |
28 |
26 #include "qwebhistory.h" |
29 #include <QWebHistory> |
27 #include "qwebframe.h" |
30 #include <QWebFrame> |
28 #include "wrtbrowsercontainer.h" |
31 #include "wrtbrowsercontainer.h" |
29 #include "webpagedata.h" |
32 #include "webpagedata.h" |
30 #include "scriptobjects.h" |
33 #include "scriptobjects.h" |
31 |
34 |
32 #include <QDebug> |
35 #include <QDebug> |
33 |
36 |
34 namespace WRT { |
37 namespace WRT { |
35 |
38 |
36 HistoryViewPrivate::HistoryViewPrivate(WrtPageManager * pageMgr, |
39 HistoryViewPrivate::HistoryViewPrivate(WebPageController * pageMgr, |
37 QWidget* parent) : |
40 QWidget* parent) : |
38 m_flowInterface(0), |
41 m_flowInterface(0), |
39 m_widgetParent(parent), |
42 m_widgetParent(parent), |
40 m_graphicsWidgetParent(0), |
43 m_graphicsWidgetParent(0), |
41 m_pageManager(pageMgr), |
44 m_pageManager(pageMgr), |
45 { |
48 { |
46 Q_ASSERT(m_pageManager); |
49 Q_ASSERT(m_pageManager); |
47 init(); |
50 init(); |
48 } |
51 } |
49 |
52 |
50 HistoryViewPrivate::HistoryViewPrivate(WrtPageManager * pageMgr, |
53 HistoryViewPrivate::HistoryViewPrivate(WebPageController * pageMgr, |
51 QGraphicsWidget* parent) : |
54 QGraphicsWidget* parent) : |
52 m_flowInterface(0), |
55 m_flowInterface(0), |
53 m_widgetParent(0), |
56 m_widgetParent(0), |
54 m_graphicsWidgetParent(parent), |
57 m_graphicsWidgetParent(parent), |
55 m_pageManager(pageMgr), |
58 m_pageManager(pageMgr), |
95 |
98 |
96 /*! |
99 /*! |
97 Basic HistoryView constructor requires a PageManager to manage the pages |
100 Basic HistoryView constructor requires a PageManager to manage the pages |
98 and a parent QWidget |
101 and a parent QWidget |
99 */ |
102 */ |
100 HistoryView::HistoryView(WrtPageManager * pageMgr, |
103 HistoryView::HistoryView(WebPageController * pageMgr, |
101 QWidget* parent) : |
104 QWidget* parent) : |
102 d(new HistoryViewPrivate(pageMgr, parent)) |
105 d(new HistoryViewPrivate(pageMgr, parent)) |
103 { |
106 { |
104 } |
107 } |
105 |
108 |
106 /*! |
109 /*! |
107 Basic HistoryView constructor requires a PageManager to manage the pages |
110 Basic HistoryView constructor requires a PageManager to manage the pages |
108 and a parent QGraphicsWidget |
111 and a parent QGraphicsWidget |
109 */ |
112 */ |
110 HistoryView::HistoryView(WrtPageManager * pageMgr, |
113 HistoryView::HistoryView(WebPageController * pageMgr, |
111 QGraphicsWidget* parent) : |
114 QGraphicsWidget* parent) : |
112 d(new HistoryViewPrivate(pageMgr, parent)) |
115 d(new HistoryViewPrivate(pageMgr, parent)) |
113 { |
116 { |
114 } |
117 } |
115 |
118 |