locationpickerservice/inc/locationpickerlandscapeview.h
changeset 30 96df3ab41000
parent 20 cd10d5b85554
equal deleted inserted replaced
26:f3533f6eae3f 30:96df3ab41000
    25 #include "locationpickertypes.h"
    25 #include "locationpickertypes.h"
    26 
    26 
    27 //forward declarations
    27 //forward declarations
    28 class HbListView;
    28 class HbListView;
    29 class QStandardItemModel;
    29 class QStandardItemModel;
       
    30 class HbAction;
       
    31 class QGraphicsLinearLayout;
       
    32 class HbLabel;
       
    33 class HgWidgetDataModel;
       
    34 class HbTextItem;
       
    35 class HgMediawall;
       
    36 class QPoint;
       
    37 class HbMenu;
       
    38 
    30 class LocationPickerProxyModel;
    39 class LocationPickerProxyModel;
    31 class LocationPickerCollectionContent;
    40 class LocationPickerCollectionContent;
    32 class LocatipnPickerProxyModel;
    41 class LocatipnPickerProxyModel;
    33 class HbGridViewItem;
    42 
    34 class HbGridView;
    43 
    35 class HbAction;
       
    36 
    44 
    37 /**  
    45 /**  
    38  * Class defines the location picker view
    46  * Class defines the location picker view
    39  */
    47  */
    40 class LocationPickerLandscapeView : public HbView
    48 class LocationPickerLandscapeView : public HbView
    47     // destructor
    55     // destructor
    48     ~LocationPickerLandscapeView();
    56     ~LocationPickerLandscapeView();
    49 public:
    57 public:
    50     //get the items from docml and connect to respective slots
    58     //get the items from docml and connect to respective slots
    51     void init( Qt::Orientation aOrientation, QStandardItemModel *aModel );
    59     void init( Qt::Orientation aOrientation, QStandardItemModel *aModel );
    52     //Set the appropriate model on grid view
    60     //Set the appropriate model on hgwidget
    53     void manageGridView();
    61     void manageHgWidget();
    54     //Create collection list and sets to list view
    62     //Create collection list and sets to list view
    55     void setCollectionData( quint32 aCategoryId );
    63     void setCollectionData( quint32 aCategoryId );
    56     //Set Ctegory ID
    64     //Set Ctegory ID
    57     void setCategoryID( quint32 aCategoryId  );
    65     void setCategoryID( quint32 aCategoryId  );
    58     //Get the view type
    66     //Get the view type
    68     void sortDescending();
    76     void sortDescending();
    69     void sortAscending();
    77     void sortAscending();
    70     void backButtonTriggered();
    78     void backButtonTriggered();
    71     //slot to handle search tab
    79     //slot to handle search tab
    72     void searchTabTriggered();
    80     void searchTabTriggered();
       
    81 	//launch context menu
       
    82     void launchPopUpMenu(const QModelIndex &aIndex, const QPointF &aPoint);
       
    83 	//handle long press
       
    84     void handleLongPress();
    73 public slots:
    85 public slots:
    74     //slot to handle all tab
    86     //slot to handle all tab
    75     void allTabTriggered();
    87     void allTabTriggered();
    76     //slot to handle collection tab
    88     //slot to handle collection tab
    77     void colectionTabTriggered();
    89     void colectionTabTriggered();
    85 private:
    97 private:
    86     //document loader
    98     //document loader
    87     HbDocumentLoader* mDocumentLoader;
    99     HbDocumentLoader* mDocumentLoader;
    88     //locationPickerProxyModel
   100     //locationPickerProxyModel
    89     LocationPickerProxyModel *mProxyModel;
   101     LocationPickerProxyModel *mProxyModel;
    90     QStandardItemModel *mModel;
   102     QStandardItemModel *mStandardModel;
    91     //actions
   103     //actions
    92     HbAction *mAllAction;
   104     HbAction *mAllAction;
    93     HbAction *mCollectionAction;
   105     HbAction *mCollectionAction;
    94     HbAction *mSearchAction;
   106     HbAction *mSearchAction;
    95     HbAction *mAscendingAction;
   107     HbAction *mAscendingAction;
    96     HbAction *mDescendingAction;
   108     HbAction *mDescendingAction;
    97     //secondary back action
   109     //secondary back action
    98     HbAction *mLandscapeBackAction;
   110     HbAction *mLandscapeBackAction;
    99     HbGridView *mGridView;
       
   100     //collection content 
   111     //collection content 
   101     LocationPickerCollectionContent *mCollectionContent;
   112     LocationPickerCollectionContent *mCollectionContent;
   102     HbGridViewItem *mGridViewItem;
       
   103     //view type
   113     //view type
   104     TViewType mViewType ;
   114     TViewType mViewType ;
   105     //get the collection/category id
   115     //get the collection/category id
   106     quint32 mCategoryId;
   116     quint32 mCategoryId;
   107 
   117 	//model for hurriganes
       
   118     HgWidgetDataModel       *mModel;
       
   119 	//hurriganes 
       
   120     HgMediawall                *mWidget;
       
   121 	//Linear layout
       
   122     QGraphicsLinearLayout   *mLayout;
       
   123 	//text Item to display No Entry
       
   124     HbTextItem*             mEmptyLabel;
       
   125     QModelIndex mIndex;
       
   126     //context menu
       
   127     HbMenu* mLongPressMenu;
   108 };
   128 };
   109 
   129 
   110 #endif /* LOCATIONPICKERLANDSCAPEVIEW_H_ */
   130 #endif /* LOCATIONPICKERLANDSCAPEVIEW_H_ */