|
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 HELPCONTENTSVIEW_H |
|
19 #define HELPCONTENTSVIEW_H |
|
20 |
|
21 #include <QUrl.h> |
|
22 |
|
23 #include <hbview.h> |
|
24 |
|
25 #include "HelpCommon.h" |
|
26 |
|
27 class BrowserWrapper; |
|
28 |
|
29 class HelpContentsView : public HbView |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 HelpContentsView(); |
|
35 ~HelpContentsView(); |
|
36 |
|
37 public: |
|
38 void init(); |
|
39 |
|
40 private: |
|
41 void initBackAction(); |
|
42 |
|
43 signals: |
|
44 void activateView(HelpViewName viewName); |
|
45 |
|
46 signals: // from tollbar event |
|
47 void showAllList(); |
|
48 void showFindList(); |
|
49 void showOnlineSupport(); |
|
50 |
|
51 private: |
|
52 bool openApplication(const QUrl& url); |
|
53 bool openExternalLink(const QUrl& url); |
|
54 void openHelpContent(const QUrl& url=QUrl()); |
|
55 |
|
56 private slots: // handle system event |
|
57 void onCurrentViewChanged(HbView *view); |
|
58 |
|
59 private slots: // handle button action |
|
60 void onBackAction(); |
|
61 |
|
62 private slots: // handle tollbar event |
|
63 void onToolbarAll() { emit showAllList(); }; |
|
64 void onToolbarFind() { emit showFindList(); }; |
|
65 void onToolbarOnlineSupport() { emit showOnlineSupport(); }; |
|
66 |
|
67 private slots: // handle browser event |
|
68 void onLinkClicked(const QUrl& url); |
|
69 void onUrlChanged(const QUrl& url); |
|
70 |
|
71 private: |
|
72 BrowserWrapper* mBrowser; |
|
73 HbAction* mSoftKeyAction; |
|
74 }; |
|
75 |
|
76 #endif //HELPCONTENTSVIEW_H |