|
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 HELPMAINWINDOW_H |
|
19 #define HELPMAINWINDOW_H |
|
20 |
|
21 #include <hbmainwindow.h> |
|
22 |
|
23 #include "HelpCommon.h" |
|
24 #include "HelpDocumentLoader.h" |
|
25 |
|
26 class HelpBaseView; |
|
27 class HelpCategoryView; |
|
28 class HelpKeywordView; |
|
29 class HelpContentsView; |
|
30 |
|
31 class HelpMainWindow : public HbMainWindow |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 public: |
|
36 HelpMainWindow(); |
|
37 ~HelpMainWindow(); |
|
38 |
|
39 private slots: |
|
40 void onActivateView(HelpViewName viewName); |
|
41 void saveActivity(); |
|
42 |
|
43 private: // activate views |
|
44 void activateCategoryView(); |
|
45 void activateKeywordView(); |
|
46 void activateContentsView(); |
|
47 |
|
48 private: |
|
49 void connectViewSignal(const HelpBaseView *view); |
|
50 |
|
51 private slots: // handle view event |
|
52 void onShowAllList(); |
|
53 void onShowFindList(); |
|
54 |
|
55 private: |
|
56 HelpCategoryView* mCategoryView; |
|
57 HelpKeywordView* mKeywordView; |
|
58 HelpContentsView* mContentsView; |
|
59 HelpViewName mPreviousViewName; |
|
60 }; |
|
61 |
|
62 #endif //HELPMAINWINDOW_H |