userguide/inc/HelpContentsView.h
changeset 15 c0dfc135a46c
parent 13 1eb8015a8491
child 18 375271912456
child 24 bce8d4d2cc72
equal deleted inserted replaced
13:1eb8015a8491 15:c0dfc135a46c
    16 */
    16 */
    17 
    17 
    18 #ifndef HELPCONTENTSVIEW_H
    18 #ifndef HELPCONTENTSVIEW_H
    19 #define HELPCONTENTSVIEW_H
    19 #define HELPCONTENTSVIEW_H
    20 
    20 
    21 #include <QUrl.h>
    21 #include <QUrl>
    22 
    22 
    23 #include <hbview.h>
    23 #include <hbview.h>
    24 
    24 
    25 #include "HelpCommon.h"
    25 #include "HelpCommon.h"
       
    26 #include "HelpDocumentLoader.h"
    26 
    27 
    27 class BrowserWrapper;
    28 class BrowserWrapper;
    28 
    29 
    29 class HelpContentsView : public HbView
    30 class HelpContentsView : public HbView
    30 {
    31 {
    36 	
    37 	
    37 public:
    38 public:
    38 	void init();
    39 	void init();
    39 	
    40 	
    40 private:
    41 private:
       
    42 	void initDocMl();
    41     void initBackAction();
    43     void initBackAction();
    42 	
    44 	
    43 signals:
    45 signals:
    44     void activateView(HelpViewName viewName);
    46     void activateView(HelpViewName viewName);
    45     
    47     
    46 signals: // from tollbar event
       
    47     void showAllList();
       
    48     void showFindList();
       
    49     void showOnlineSupport();
       
    50 
       
    51 private:
    48 private:
    52 	bool openApplication(const QUrl& url);
    49 	bool openApplication(const QUrl& url);
    53 	bool openExternalLink(const QUrl& url);
    50 	bool openExternalLink(const QUrl& url);
    54 	void openHelpContent(const QUrl& url=QUrl());
    51 	void openHelpContent(const QUrl& url=QUrl());
    55 
    52 
    57     void onCurrentViewChanged(HbView *view);
    54     void onCurrentViewChanged(HbView *view);
    58     
    55     
    59 private slots: // handle button action
    56 private slots: // handle button action
    60     void onBackAction();
    57     void onBackAction();
    61     
    58     
    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
    59 private slots: // handle browser event
    68 	void onLinkClicked(const QUrl& url);
    60 	void onLinkClicked(const QUrl& url);
    69 	void onUrlChanged(const QUrl& url);
    61 	void onUrlChanged(const QUrl& url);
    70 
    62 
    71 private:
    63 private:
    72     BrowserWrapper*     mBrowser;
    64     BrowserWrapper*     mBrowser;
    73     HbAction* mSoftKeyAction;
    65     HbAction* mSoftKeyAction;
       
    66 	HelpUIBuilder mBuilder;
    74 };
    67 };
    75 
    68 
    76 #endif //HELPCONTENTSVIEW_H
    69 #endif //HELPCONTENTSVIEW_H