equal
deleted
inserted
replaced
|
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 #ifndef BROWSERWRAPPER_H |
|
19 #define BROWSERWRAPPER_H |
|
20 |
|
21 #include <QStack> |
|
22 #include <QGraphicsWebView> |
|
23 |
|
24 #include <hbwidget.h> |
|
25 |
|
26 class BrowserWrapper : public HbWidget |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 BrowserWrapper(); |
|
32 ~BrowserWrapper(); |
|
33 |
|
34 public: |
|
35 void init(); |
|
36 |
|
37 public: |
|
38 void setHtml(const QString& html, const QUrl& baseUrl); |
|
39 void clearHistory(); |
|
40 bool canGoBack(); |
|
41 void back(); |
|
42 |
|
43 signals: |
|
44 void linkClicked(const QUrl &url); |
|
45 void urlChanged(const QUrl&); |
|
46 |
|
47 private: |
|
48 QGraphicsWebView* mWebView; |
|
49 QStack<QUrl> mHistory; |
|
50 |
|
51 }; |
|
52 |
|
53 #endif //MYTEXTBROWSER_H |