userguide/inc/HelpKeywordView.h
branchRCL_3
changeset 45 cbffe13eac63
parent 44 12f60d9a73b3
child 49 a7ccb69868af
equal deleted inserted replaced
44:12f60d9a73b3 45: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 HELPKEYWORDVIEW_H
       
    19 #define HELPKEYWORDVIEW_H
       
    20 
       
    21 #include <HelpBaseView.h>
       
    22 
       
    23 #include "HelpDocumentLoader.h"
       
    24 
       
    25 class HbListView;
       
    26 class HbSearchPanel;
       
    27 class HbStaticVkbHost;
       
    28 class HbLabel;
       
    29 
       
    30 class HelpKeywordView : public HelpBaseView
       
    31 {
       
    32 	Q_OBJECT
       
    33 	
       
    34 public:
       
    35 	HelpKeywordView();
       
    36 	~HelpKeywordView();
       
    37 	void init();
       
    38 	void loadAllContent();
       
    39 
       
    40 private:
       
    41 	void initDocMl();
       
    42 	void initSearchList();
       
    43 	void initSearchPanel();
       
    44 	void initBackAction();
       
    45 	void initVirtualKeyboard();
       
    46 
       
    47 private:
       
    48 	HbLabel* label();
       
    49     
       
    50 private:
       
    51 	void updateVisibleItems(bool visible);
       
    52 	void ResetSearchPanel();	
       
    53 	void updateLabelPos();
       
    54 	void showToolBar(bool visible);
       
    55 
       
    56 private slots:
       
    57 	void onOrientationChanged(Qt::Orientation orientation);
       
    58 
       
    59 private slots: // handle system event
       
    60     void onViewReady();
       
    61 
       
    62 private slots: // handle button action
       
    63     void onBackAction();
       
    64     
       
    65 private slots: // handle list event
       
    66     void onSearchListActivated(const QModelIndex& index);
       
    67 
       
    68 private slots: // handle search panel event
       
    69 	void onSearchPanelExitClicked();
       
    70 	void onSearchPanelCriteriaChanged(const QString &criteria);
       
    71 
       
    72 private slots: // handle virtual keyboard event
       
    73     void onHandleKeypadOpen();
       
    74     void onHandleKeypadClose();
       
    75 
       
    76 private:
       
    77 	HbListView*			mListSearch;
       
    78 	HbSearchPanel*		mSearchPanel;
       
    79 	HbAction*			mSoftKeyAction;
       
    80 	HbStaticVkbHost*	mVirtualKeyboard;
       
    81 };
       
    82 
       
    83 #endif //HELPKEYWORDVIEW_H