userguide/inc/HelpKeywordView.h
changeset 24 bce8d4d2cc72
child 26 97d7f0705d0a
equal deleted inserted replaced
15:c0dfc135a46c 24:bce8d4d2cc72
       
     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 HbGroupBox;
       
    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 initEmptyLabel();
       
    46 	void initVirtualKeyboard();
       
    47 	
       
    48 private:
       
    49 	HbGroupBox* groupBox();
       
    50     
       
    51 private:
       
    52 	void updateVisibleItems(bool visible);
       
    53 	void ResetSearchPanel();	
       
    54 
       
    55 private slots: // handle system event
       
    56     void onViewReady();
       
    57 
       
    58 private slots: // handle button action
       
    59     void onBackAction();
       
    60     
       
    61 private slots: // handle list event
       
    62     void onSearchListActivated(const QModelIndex& index);
       
    63 
       
    64 private slots: // handle search panel event
       
    65 	void onSearchPanelExitClicked();
       
    66 	void onSearchPanelCriteriaChanged(const QString &criteria);
       
    67 
       
    68 private slots: // handle virtual keyboard event
       
    69     void onHandleKeypadOpen();
       
    70     void onHandleKeypadClose();
       
    71 
       
    72 private:
       
    73 	HbListView*			mListSearch;
       
    74 	HbSearchPanel*		mSearchPanel;
       
    75 	HbAction*			mSoftKeyAction;
       
    76 	HbStaticVkbHost*	mVirtualKeyboard;
       
    77 };
       
    78 
       
    79 #endif //HELPKEYWORDVIEW_H