homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsmenuview.h
changeset 63 52b0f64eeb51
parent 55 03646e8da489
child 69 87476091b3f5
equal deleted inserted replaced
62:341166945d65 63:52b0f64eeb51
    19 #define HSMENUVIEW_H
    19 #define HSMENUVIEW_H
    20 
    20 
    21 #include <QObject>
    21 #include <QObject>
    22 #include <QModelIndex>
    22 #include <QModelIndex>
    23 #include <QAbstractItemView>
    23 #include <QAbstractItemView>
       
    24 #include <QScopedPointer>
    24 #include <QSortFilterProxyModel>
    25 #include <QSortFilterProxyModel>
    25 #include <HbAbstractItemView>
    26 #include <HbAbstractItemView>
    26 #include "hsmenustates_global.h"
    27 #include "hsmenustates_global.h"
    27 #include "hsmenuviewbuilder.h"
    28 #include "hsmenuviewbuilder.h"
    28 #include "hsapp_defs.h"
    29 #include "hsapp_defs.h"
    34 class HbAction;
    35 class HbAction;
    35 class HbAbstractItemView;
    36 class HbAbstractItemView;
    36 class HbListView;
    37 class HbListView;
    37 class HbGroupBox;
    38 class HbGroupBox;
    38 class HbWidget;
    39 class HbWidget;
    39 class HbStaticVkbHost;
    40 class HbShrinkingVkbHost;
    40 class HsMenuItemModel;
    41 class HsMenuItemModel;
    41 
    42 
    42 
    43 
    43 HS_STATES_TEST_CLASS(MenuStatesTest)
    44 HS_STATES_TEST_CLASS(MenuStatesTest)
    44 
    45 
    87     void scrollToRow(int row,
    88     void scrollToRow(int row,
    88                      QAbstractItemView::ScrollHint hint =
    89                      QAbstractItemView::ScrollHint hint =
    89                          QAbstractItemView::PositionAtTop);
    90                          QAbstractItemView::PositionAtTop);
    90     void findItem(QString criteriaStr);
    91     void findItem(QString criteriaStr);
    91 
    92 
    92     void vkbOpened();
       
    93     void vkbClosed();
       
    94 
       
    95 private:
    93 private:
    96 
    94 
    97     QModelIndex firstVisibleItemIndex(const HbListView *view) const;
    95     QModelIndex firstVisibleItemIndex(const HbListView *view) const;
    98 
    96 
    99     void connectSearchPanelSignals();
    97     void connectSearchPanelSignals();
   121     HbListView *mListView;
   119     HbListView *mListView;
   122     HbGroupBox *mViewLabel;
   120     HbGroupBox *mViewLabel;
   123 
   121 
   124     HbListView *mSearchListView;
   122     HbListView *mSearchListView;
   125     HbSearchPanel *mSearchPanel;
   123     HbSearchPanel *mSearchPanel;
   126     HbStaticVkbHost* mVkbHost;
   124     QScopedPointer<HbShrinkingVkbHost> mVkbHost;
   127 
   125 
   128     HbPushButton *mCollectionButton;
   126     HbPushButton *mCollectionButton;
   129 
   127 
   130     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
   128     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
   131 };
   129 };