userguide/inc/HelpContentsView.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 14:53:45 +0300
changeset 13 1eb8015a8491
child 15 c0dfc135a46c
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/

#ifndef HELPCONTENTSVIEW_H
#define HELPCONTENTSVIEW_H

#include <QUrl.h>

#include <hbview.h>

#include "HelpCommon.h"

class BrowserWrapper;

class HelpContentsView : public HbView
{
	Q_OBJECT
	
public:
	HelpContentsView();
	~HelpContentsView();
	
public:
	void init();
	
private:
    void initBackAction();
	
signals:
    void activateView(HelpViewName viewName);
    
signals: // from tollbar event
    void showAllList();
    void showFindList();
    void showOnlineSupport();

private:
	bool openApplication(const QUrl& url);
	bool openExternalLink(const QUrl& url);
	void openHelpContent(const QUrl& url=QUrl());

private slots: // handle system event
    void onCurrentViewChanged(HbView *view);
    
private slots: // handle button action
    void onBackAction();
    
private slots: // handle tollbar event
    void onToolbarAll()             { emit showAllList(); };
    void onToolbarFind()            { emit showFindList(); };
    void onToolbarOnlineSupport()   { emit showOnlineSupport(); };

private slots: // handle browser event
	void onLinkClicked(const QUrl& url);
	void onUrlChanged(const QUrl& url);

private:
    BrowserWrapper*     mBrowser;
    HbAction* mSoftKeyAction;
};

#endif //HELPCONTENTSVIEW_H