22 #include "locationpickertypes.h" |
22 #include "locationpickertypes.h" |
23 |
23 |
24 // Forward declarations |
24 // Forward declarations |
25 class LocationPickerSearchView; |
25 class LocationPickerSearchView; |
26 class LocationPickerDocumentLoader; |
26 class LocationPickerDocumentLoader; |
27 class LocationPickerPotraitView; |
27 class LocationPickerView; |
28 class LocationPickerService; |
28 class LocationPickerService; |
29 class LocationPickerProxyModel; |
29 class LocationPickerProxyModel; |
30 class LocationPickerLandscapeView; |
|
31 class LocationPickerContent; |
30 class LocationPickerContent; |
32 |
31 |
33 class LocationPickerAppWindow: public HbMainWindow |
32 class LocationPickerAppWindow: public HbMainWindow |
34 { |
33 { |
35 Q_OBJECT |
34 Q_OBJECT |
39 windowFlags=Hb::WindowFlagNone); |
38 windowFlags=Hb::WindowFlagNone); |
40 |
39 |
41 // destructor |
40 // destructor |
42 ~LocationPickerAppWindow(); |
41 ~LocationPickerAppWindow(); |
43 |
42 |
44 private: |
43 #ifdef LOCPICKER_UNIT_TEST |
45 //Loads the Potrait View |
44 public slots: |
46 void loadPotrait(); |
45 #else |
47 //Loads landscape View |
46 private slots: |
48 void loadLandscape(); |
47 #endif |
49 //Connect the slots for Potrait view |
48 //Connect the slots for Potrait view |
50 void connectPotraitSlots(); |
49 void connectSlots(); |
51 //Connect the slots for Landscape view |
|
52 void connectLandscapeSlots(); |
|
53 public slots: |
50 public slots: |
54 // a list item is selected |
51 // a list item is selected |
55 void itemSelected( quint32 aLm ); |
52 void itemSelected( quint32 aLm ); |
|
53 #ifdef LOCPICKER_UNIT_TEST |
|
54 public slots: |
|
55 #else |
56 private slots: |
56 private slots: |
|
57 #endif |
|
58 |
57 //activate search view |
59 //activate search view |
58 void activateSearchView(); |
60 void activateSearchView(); |
59 //activate locationpicker view |
61 //activate locationpicker view |
60 void activateLocationPickerView(); |
62 void activateLocationPickerView(); |
61 //changes the orientation |
63 //changes the orientation |
62 void changeOrientation( Qt::Orientation ); |
64 void changeOrientation( Qt::Orientation ); |
63 //complete the service |
65 //complete the service |
64 void serviceComplete(); |
66 void serviceComplete(); |
65 //sets the category ID during orientation change in collection content |
67 //slot to close details dialog (if open) |
66 void setCategoryId( quint32 acategoryId ); |
68 void closeDetailsDialog(); |
67 //handles orientation change in collection list |
69 |
68 void handleCollectionList(); |
70 #ifdef LOCPICKER_UNIT_TEST |
69 //handle all List |
71 public: |
70 void allListHandle(); |
72 #else |
71 //clear content models |
|
72 void clearContentModels(); |
|
73 private: |
73 private: |
|
74 #endif |
74 // search view |
75 // search view |
75 LocationPickerSearchView* mLocationPickerSearchView; |
76 LocationPickerSearchView* mLocationPickerSearchView; |
76 //document loader |
77 //document loader |
77 LocationPickerDocumentLoader* mLocationPickerDocumentLoader; |
78 LocationPickerDocumentLoader* mLocationPickerDocumentLoader; |
78 //location picker potrait view |
79 //location picker potrait view |
79 LocationPickerPotraitView* mLocationPickerPotraitView; |
80 LocationPickerView* mLocationPickerView; |
80 //location picker landscape view |
|
81 LocationPickerLandscapeView* mLocationPickerLandscapeView; |
|
82 //locationpicker content |
81 //locationpicker content |
83 LocationPickerContent* mLocationPickerContent; |
82 LocationPickerContent* mLocationPickerContent; |
84 //location picker service; |
83 //location picker service; |
85 LocationPickerService *mService; |
84 LocationPickerService *mService; |
86 //View Type |
|
87 TViewType mviewType; |
|
88 }; |
85 }; |
89 #endif // LOCATIONPICKERAPPWINDOW_H |
86 #endif // LOCATIONPICKERAPPWINDOW_H |