userguide/inc/HelpContentsView.h
branchRCL_3
changeset 18 cbffe13eac63
parent 17 12f60d9a73b3
equal deleted inserted replaced
17:12f60d9a73b3 18:cbffe13eac63
     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>
       
    22 
       
    23 #include <HelpBaseView.h>
       
    24 
       
    25 #include "HelpDocumentLoader.h"
       
    26 
       
    27 class BrowserWrapper;
       
    28 
       
    29 class HelpContentsView : public HelpBaseView
       
    30 {
       
    31 	Q_OBJECT
       
    32 	
       
    33 public:
       
    34 	HelpContentsView();
       
    35 	~HelpContentsView();
       
    36 	
       
    37 public:
       
    38 	void init();
       
    39 	
       
    40 private:
       
    41 	void initDocMl();
       
    42     void initBackAction();	
       
    43  
       
    44 private:
       
    45 	bool openApplication(const QUrl& url);
       
    46 	bool openExternalLink(const QUrl& url);
       
    47 	void openHelpContent(const QUrl& url=QUrl());
       
    48 
       
    49 private slots: // handle system event
       
    50     void onViewReady();
       
    51     
       
    52 private slots: // handle button action
       
    53     void onBackAction();
       
    54     
       
    55 private slots: // handle browser event
       
    56 	void onLinkClicked(const QUrl& url);
       
    57 	void onUrlChanged(const QUrl& url);
       
    58 
       
    59 private:
       
    60     BrowserWrapper*     mBrowser;
       
    61     HbAction* mSoftKeyAction;
       
    62 };
       
    63 
       
    64 #endif //HELPCONTENTSVIEW_H