46 ~LocationPickerSearchView(); |
46 ~LocationPickerSearchView(); |
47 //initialize the action items and connect to slots |
47 //initialize the action items and connect to slots |
48 void init( QStandardItemModel *aModel ); |
48 void init( QStandardItemModel *aModel ); |
49 private: |
49 private: |
50 void getData( QModelIndex aIndex, quint32& aValue ); |
50 void getData( QModelIndex aIndex, quint32& aValue ); |
|
51 #ifdef LOCPICKER_UNIT_TEST |
|
52 public slots: |
|
53 #else |
51 private slots: |
54 private slots: |
|
55 #endif |
52 // slot to perform search |
56 // slot to perform search |
53 void doSearch( QString aCriteria ); |
57 void doSearch( QString aCriteria ); |
54 // slot to handle select event on a list item |
58 // slot to handle select event on a list item |
55 void handleActivated(const QModelIndex &aIndex); |
59 void handleActivated(const QModelIndex &aIndex); |
56 // slot to handle backbutton on search panel |
60 // slot to handle backbutton on search panel |
57 void handleExit(); |
61 void handleExit(); |
58 //launch context menu |
62 //launch context menu |
59 void launchPopUpMenu(HbAbstractViewItem *aItem, const QPointF &aPoint); |
63 void launchPopUpMenu(HbAbstractViewItem *aItem, const QPointF &aPoint); |
60 //handle long press |
64 //handle long press |
61 void handleLongPress(); |
65 void handleLongPress(); |
|
66 //delete context menu |
|
67 void deleteMenu(); |
62 signals: |
68 signals: |
63 //signals to switch current view |
69 //signals to switch current view |
64 void switchView(); |
70 void switchView(); |
65 //signals when any item is selected |
71 //signals when any item is selected |
66 void selectItem( quint32 aLm ); |
72 void selectItem( quint32 aLm ); |
|
73 #ifdef LOCPICKER_UNIT_TEST |
|
74 public: |
|
75 #else |
67 private: |
76 private: |
|
77 #endif |
68 //proxymodel used for sort and filter |
78 //proxymodel used for sort and filter |
69 LocationPickerProxyModel *mProxyModel; |
79 LocationPickerProxyModel *mProxyModel; |
70 // model for the view |
80 // model for the view |
71 QStandardItemModel *mModel; |
81 QStandardItemModel *mModel; |
72 // list view |
82 // list view |