locationpickerservice/inc/locationpickerappwindow.h
changeset 17 0f22fb80ebba
parent 15 13ae750350c9
child 20 cd10d5b85554
equal deleted inserted replaced
15:13ae750350c9 17:0f22fb80ebba
    16 */
    16 */
    17 
    17 
    18 #ifndef LOCATIONPICKERAPPWINDOW_H
    18 #ifndef LOCATIONPICKERAPPWINDOW_H
    19 #define LOCATIONPICKERAPPWINDOW_H
    19 #define LOCATIONPICKERAPPWINDOW_H
    20 #include <HbMainWindow>
    20 #include <HbMainWindow>
    21 #include <HbAction>
       
    22 
    21 
    23 #include "qlocationpickeritem.h"
    22 #include "locationpickertypes.h"
    24 
    23 
    25 // Forward declarations
    24 // Forward declarations
    26 class LocationPickerAllView;
       
    27 class LocationPickerSearchView;
    25 class LocationPickerSearchView;
    28 class LocationPickerCollectionListView;
    26 class LocationPickerDocumentLoader;
       
    27 class LocationPickerPotraitView;
    29 class LocationPickerService;
    28 class LocationPickerService;
       
    29 class LocationPickerProxyModel;
       
    30 class LocationPickerLandscapeView;
    30 
    31 
    31 class LocationPickerAppWindow: public HbMainWindow
    32 class LocationPickerAppWindow: public HbMainWindow
    32 {
    33 {
    33     Q_OBJECT
    34     Q_OBJECT
    34 public:
    35 public:
    35 
       
    36     // constructor
    36     // constructor
    37     LocationPickerAppWindow( QWidget* aParent = 0 );
    37     LocationPickerAppWindow(QWidget *parent=0, Hb::WindowFlags 
       
    38             windowFlags=Hb::WindowFlagNone);
    38     
    39     
    39     // destructor
    40     // destructor
    40     ~LocationPickerAppWindow();
    41     ~LocationPickerAppWindow();
    41 	
       
    42 	// deletes the collection content view
       
    43     void deleteCollectionContentView();
       
    44 
    42 
       
    43 private:
       
    44     //Loads the Potrait View
       
    45     void loadPotrait();
       
    46     //Loads landscape View
       
    47     void loadLandscape();
       
    48     //Connect the slots for Potrait view
       
    49     void connectPotraitSlots();
       
    50     //Connect the slots for Landscape view
       
    51     void connectLandscapeSlots();
    45 public slots:
    52 public slots:
    46     // a list item is selected
    53     // a list item is selected
    47     void itemSelected( quint32 aLm);
    54     void itemSelected( quint32 aLm );
    48 
    55 private slots:
    49 public slots:
    56     //activate search view
    50 	// slot used for back action on the top right corner
    57     void activateSearchView();
    51     void backButtonTriggered();
    58     //activate locationpicker view
    52 
    59     void activateLocationPickerView();
       
    60     //changes the orientation
       
    61     void changeOrientation(Qt::Orientation);
       
    62     //complete the service
       
    63     void serviceComplete();
       
    64     //sets the category ID during orientation change in collection content
       
    65     void setCategoryID( quint32 acategoryId );
       
    66     //handles orientation change in collection list
       
    67     void handleCollectionList();
       
    68     //handle all List
       
    69     void allListHandle();
    53 private:
    70 private:
    54     // all view
       
    55     LocationPickerAllView* mLocationPickerAllView;
       
    56     // search view
    71     // search view
    57     LocationPickerSearchView* mLocationPickerSearchView;
    72     LocationPickerSearchView* mLocationPickerSearchView;
    58     // collection list view
    73     //document loader
    59     LocationPickerCollectionListView* mLocationPickerCollectionListView;
    74     LocationPickerDocumentLoader* mLocationPickerDocumentLoader;
    60 
    75     //location picker potrait view
    61     // location picker service;
    76     LocationPickerPotraitView* mLocationPickerPotraitView;
       
    77     //location picker landscape view
       
    78     LocationPickerLandscapeView* mLocationPickerLandscapeView;
       
    79     //location picker service;
    62     LocationPickerService *mService;
    80     LocationPickerService *mService;
    63 
    81     //View Type
       
    82     TViewType mviewType;
    64 };
    83 };
    65 #endif // LOCATIONPICKERAPPWINDOW_H
    84 #endif // LOCATIONPICKERAPPWINDOW_H